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
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.
Created attachment 1646 [details] configure.in patch to fix netinet/tcp.h warning.
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 ?
Confirmed, no longer an issue. Bill