Solved

Errors in header file ip.h on AIX

Posted on 1997-09-22
1
197 Views
Last Modified: 2013-12-26
I'm doing a make on "MySQL" on AIX 4.14 with GCC.

I'm getting module net.c errors in ip.h with "parse error for ip_xhl"

These are the orignial header files that came with the system, could these possibly be corrupted, just crap or does anybody have any ideas what the problem is.
0
Comment
Question by:Shaley
1 Comment
 
LVL 4

Accepted Solution

by:
jos010697 earned 100 total points
ID: 1294986
Some of AIX's header files need preprcocessor constants
to be defined. Most notorious is the _ALL_SOURCE constant.
(add a -D_ALL_SOURCE to the compilers' command line).

I peeked the netinet/ip.h file and I found a _NO_BITFIELDS
constant there which has to be UNdefined if you want to
have BSD compatibilty.

Without seeing your source code, I can't be more specific,
but I'll bet you need to (un)define one of those constants ...

kind regards,

Jos aka jos@and.nl

0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
mixString challenge 36 123
sum67 challenge 35 100
Modbus - whats the maximum I can store in one register? 4 80
How to convert MFC::CString to UTF8 wchar_t* 10 214
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question