• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 210
  • Last Modified:

Errors in header file ip.h on AIX

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
Shaley
Asked:
Shaley
1 Solution
 
jos010697Commented:
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now