Bug 3344 - Configure warning for netinet/tcp.h on AIX5.3
Summary: Configure warning for netinet/tcp.h on AIX5.3
Status: RESOLVED FIXED
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: Build environment (show other bugs)
Version: 3.0.21
Hardware: PPC AIX
: P3 minor
Target Milestone: none
Assignee: Tim Potter
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-20 13:32 UTC by Claus Lund
Modified: 2007-04-11 15:09 UTC (History)
1 user (show)

See Also:


Attachments
configure.in patch to fix netinet/tcp.h warning. (970 bytes, patch)
2006-01-05 19:07 UTC, William Jojo
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Claus Lund 2005-12-20 13:32:01 UTC
I am using a fresh default install of AIX5.3 ML3 and "C for AIX" version 6 with the latest updates (September 2005). I am configuring and compiling 3.0.21rc2.

 # ./configure CPPFLAGS="-I/usr/local/include -I/usr/local/include/openssl" --prefix=/usr/local --with-syslog

checking netinet/tcp.h usability... no
checking netinet/tcp.h presence... yes
configure: WARNING: netinet/tcp.h: present but cannot be compiled
configure: WARNING: netinet/tcp.h:     check for missing prerequisite headers?
configure: WARNING: netinet/tcp.h: see the Autoconf documentation
configure: WARNING: netinet/tcp.h:     section "Present But Cannot Be Compiled"
configure: WARNING: netinet/tcp.h: proceeding with the preprocessor's result
configure: WARNING: netinet/tcp.h: in the future, the compiler will take precedence
configure: WARNING:     ## ------------------------------------------ ##
configure: WARNING:     ## Report this to the AC_PACKAGE_NAME lists.  ##
configure: WARNING:     ## ------------------------------------------ ##
checking for netinet/tcp.h... yes
Comment 1 William Jojo 2006-01-05 19:04:42 UTC
configure:8594: checking netinet/tcp.h usability
configure:8606: gcc -D_LINUX_SOURCE_COMPAT -c -O -D_SAMBA_BUILD_ -I/usr/local/in
clude -I/usr/local/BerkeleyDB.4.3/include conftest.c >&5
In file included from /usr/include/netinet/tcp.h:78,
                 from conftest.c:103:
/usr/include/netinet/ip.h:119: error: parse error before "ip_xhl"
/usr/include/netinet/ip.h:125: error: parse error before '}' token
/usr/include/netinet/ip.h:132: error: parse error before '}' token
In file included from conftest.c:103:
/usr/include/netinet/tcp.h:94: error: field `ip_ff' has incomplete type
In file included from /usr/include/netinet/tcp.h:113,
                 from conftest.c:103:
/usr/include/netinet/ip.h:142: error: field `ip_ff' has incomplete type
configure:8612: $? = 1

tcp.h defined _IP_FIRSTFOUR_ONLY. This screws up the include of /usr/include/netinet/in.h for the additionally included netinet/ip.h.

This is why ip.h checks ok. (it's also a robust test)

Problem is BYTE_ORDER is not being defined so the conditional bit field falls apart. You must include <sys/machine.h> for BYTE_ORDER to be defined. This is accomplished by successfully including netinet/in.h.
Comment 2 William Jojo 2006-01-05 19:07:47 UTC
Created attachment 1646 [details]
configure.in patch to fix netinet/tcp.h warning.
Comment 3 Gerald (Jerry) Carter (dead mail address) 2007-04-03 23:19:05 UTC
Seems this patch is no longer necessary and we don't look for tcp.h anymore.  

Bill, can you confirm this in the current SAMBA_3_0_25 tree ?
Comment 4 William Jojo 2007-04-11 15:09:50 UTC
Confirmed, no longer an issue.

Bill