[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: (ITS#4312) Problem in netinet/tcp.h on AIX



As you asked, here is the output I got from running ./configure:

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

the ouput from config.log is as follows:
configure:14089: checking for locale.h
configure:14096: result: yes
configure:13973: checking netinet/tcp.h usability
configure:13985: cc_r -c -g  conftest.c >&5
"/usr/include/netinet/ip.h", line 119.25: 1506-046 (S) Syntax error.
configure:13991: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define OPENLDAP_PACKAGE "OpenLDAP"
| #define OPENLDAP_VERSION "2.3.11"
| #define LDAP_VENDOR_VERSION 20311
| #define LDAP_VENDOR_VERSION_MAJOR 2
| #define LDAP_VENDOR_VERSION_MINOR 3
| #define LDAP_VENDOR_VERSION_PATCH 11
| #define HAVE_MKVERSION 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define EXEEXT ""
| #define HAVE_AIX_SECURITY 1
| #define STDC_HEADERS 1
| #define HAVE_DIRENT_H 1
| #define HAVE_SYS_WAIT_H 1
| #define GWINSZ_IN_SYS_IOCTL 1
| #define HAVE_ARPA_INET_H 1
| #define HAVE_ARPA_NAMESER_H 1
| #define HAVE_ASSERT_H 1
| #define HAVE_CRYPT_H 1
| #define HAVE_ERRNO_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_GRP_H 1
| #define HAVE_LIMITS_H 1
| #define HAVE_LOCALE_H 1
| /* end confdefs.h.  */
| #include <stdio.h>
| #if HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #if HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #if STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # if HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #if HAVE_STRING_H
| # if !STDC_HEADERS && HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #if HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #if HAVE_INTTYPES_H
| # include <inttypes.h>
| #else
| # if HAVE_STDINT_H
| #  include <stdint.h>
| # endif
| #endif
| #if HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <netinet/tcp.h>
configure:14014: result: no
configure:14018: checking netinet/tcp.h presence
configure:14028: cc_r -E  conftest.c
configure:14034: $? = 0
configure:14054: result: yes
configure:14067: WARNING: netinet/tcp.h: present but cannot be compiled
configure:14069: WARNING: netinet/tcp.h:     check for missing prerequisite head
ers?
configure:14071: WARNING: netinet/tcp.h: see the Autoconf documentation
configure:14073: WARNING: netinet/tcp.h:     section "Present But Cannot Be Comp
iled"
configure:14075: WARNING: netinet/tcp.h: proceeding with the preprocessor's resu
lt
configure:14077: WARNING: netinet/tcp.h: in the future, the compiler will take p
recedence
configure:14089: checking for netinet/tcp.h
configure:14096: result: yes
configure:13973: checking malloc.h usability


As I told you, I solved the problem by inserting the following line in /usr/include/netinet/tpc.h:

#include <netinet/ip.h>