Skip site navigation (1) Skip section navigation (2)

BUG #6038: configure warnings on sys/socket.h and netinet/in.h, make fails

From: "Jeff" <jeffadams78(at)gmail(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #6038: configure warnings on sys/socket.h and netinet/in.h, make fails
Date: 2011-05-25 21:03:27
Message-ID: 201105252103.p4PL3RCF094210@wwwmaster.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-bugs
The following bug has been logged online:

Bug reference:      6038
Logged by:          Jeff
Email address:      jeffadams78(at)gmail(dot)com
PostgreSQL version: 9.0.4
Operating system:   Windows XP 32bit
Description:        configure warnings on sys/socket.h and netinet/in.h,
make fails
Details: 

Building on MinGW/Msys on windows, here's the entire configure output. 
Configure completes (with the warnings you see below, which specifically
said to report as bugs) and then make fails.  

I would not be surprised if I'm missing some other dependency, but it isn't
immediately clear which one...


CONFIGURE OUTPUT ***********************************

checking build system type... i686-pc-mingw32
checking host system type... i686-pc-mingw32
checking which template to use... win32
checking whether to build with 64-bit integer date/time support... yes
checking whether NLS is wanted... no
checking for default port number... 5432
checking for block size... 8kB
checking for segment size... 1GB
checking for WAL block size... 8kB
checking for WAL segment size... 16MB
checking for gcc... gcc
checking for C compiler default output file name... a.exe
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... .exe
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking if gcc supports -Wdeclaration-after-statement... yes
checking if gcc supports -Wendif-labels... yes
checking if gcc supports -fno-strict-aliasing... yes
checking if gcc supports -fwrapv... yes
checking whether the C compiler still works... yes
checking how to run the C preprocessor... gcc -E
checking allow thread-safe client libraries... yes
checking whether to build with Tcl... no
checking whether to build Perl modules... no
checking whether to build Python modules... no
checking whether to build with GSSAPI support... no
checking whether to build with Kerberos 5 support... no
checking whether to build with PAM support... no
checking whether to build with LDAP support... no
checking whether to build with Bonjour support... no
checking whether to build with OpenSSL support... no
configure: WARNING: *** Readline does not work on MinGW --- disabling
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ld used by GCC... /bin/ld
checking if the linker (/bin/ld) is GNU ld... yes
checking for ranlib... ranlib
checking for strip... strip
checking whether it is possible to strip libraries... yes
checking for ar... ar
checking for dlltool... dlltool
checking for dllwrap... dllwrap
checking for windres... windres
checking for tar... /bin/tar
checking whether ln -s works... no, using cp -p
checking for gawk... gawk
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for bison... /bin/bison
configure: using bison (GNU Bison) 2.4.2
checking for flex... /bin/flex
configure: using flex 2.5.35
checking for perl... /bin/perl
configure: using perl 5.8.8
checking for main in -lm... yes
checking for library containing setproctitle... no
checking for library containing dlopen... none required
checking for library containing socket... none required
checking for library containing shl_load... no
checking for library containing getopt_long... none required
checking for library containing crypt... no
checking for library containing fdatasync... no
checking for library containing gethostbyname_r... no
checking for library containing shmget... no
checking for inflate in -lz... yes
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... no
checking for stdint.h... no
checking for unistd.h... yes
checking crypt.h usability... no
checking crypt.h presence... no
checking for crypt.h... no
checking dld.h usability... no
checking dld.h presence... no
checking for dld.h... no
checking fp_class.h usability... no
checking fp_class.h presence... no
checking for fp_class.h... no
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking ieeefp.h usability... yes
checking ieeefp.h presence... yes
checking for ieeefp.h... yes
checking ifaddrs.h usability... no
checking ifaddrs.h presence... no
checking for ifaddrs.h... no
checking langinfo.h usability... no
checking langinfo.h presence... no
checking for langinfo.h... no
checking poll.h usability... yes
checking poll.h presence... yes
checking for poll.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/ipc.h usability... no
checking sys/ipc.h presence... no
checking for sys/ipc.h... no
checking sys/poll.h usability... yes
checking sys/poll.h presence... yes
checking for sys/poll.h... yes
checking sys/pstat.h usability... no
checking sys/pstat.h presence... no
checking for sys/pstat.h... no
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/sem.h usability... no
checking sys/sem.h presence... no
checking for sys/sem.h... no
checking sys/shm.h usability... no
checking sys/shm.h presence... no
checking for sys/shm.h... no
checking sys/socket.h usability... no
checking sys/socket.h presence... yes
configure: WARNING: sys/socket.h: present but cannot be compiled
configure: WARNING: sys/socket.h:     check for missing prerequisite
headers?
configure: WARNING: sys/socket.h: see the Autoconf documentation
configure: WARNING: sys/socket.h:     section "Present But Cannot Be
Compiled"
configure: WARNING: sys/socket.h: proceeding with the preprocessor's result
configure: WARNING: sys/socket.h: in the future, the compiler will take
precedence
configure: WARNING:     ## ---------------------------------------- ##
configure: WARNING:     ## Report this to pgsql-bugs(at)postgresql(dot)org ##
configure: WARNING:     ## ---------------------------------------- ##
checking for sys/socket.h... yes
checking sys/sockio.h usability... no
checking sys/sockio.h presence... no
checking for sys/sockio.h... no
checking sys/tas.h usability... no
checking sys/tas.h presence... no
checking for sys/tas.h... no
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/un.h usability... yes
checking sys/un.h presence... yes
checking for sys/un.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking ucred.h usability... no
checking ucred.h presence... no
checking for ucred.h... no
checking utime.h usability... yes
checking utime.h presence... yes
checking for utime.h... yes
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking wctype.h usability... no
checking wctype.h presence... no
checking for wctype.h... no
checking kernel/OS.h usability... no
checking kernel/OS.h presence... no
checking for kernel/OS.h... no
checking kernel/image.h usability... no
checking kernel/image.h presence... no
checking for kernel/image.h... no
checking SupportDefs.h usability... no
checking SupportDefs.h presence... no
checking for SupportDefs.h... no
checking for net/if.h... no
checking netinet/in.h usability... no
checking netinet/in.h presence... yes
configure: WARNING: netinet/in.h: present but cannot be compiled
configure: WARNING: netinet/in.h:     check for missing prerequisite
headers?
configure: WARNING: netinet/in.h: see the Autoconf documentation
configure: WARNING: netinet/in.h:     section "Present But Cannot Be
Compiled"
configure: WARNING: netinet/in.h: proceeding with the preprocessor's result
configure: WARNING: netinet/in.h: in the future, the compiler will take
precedence
configure: WARNING:     ## ---------------------------------------- ##
configure: WARNING:     ## Report this to pgsql-bugs(at)postgresql(dot)org ##
configure: WARNING:     ## ---------------------------------------- ##
checking for netinet/in.h... yes
checking for netinet/tcp.h... no
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking whether byte ordering is bigendian... no
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for quiet inline (no complaint if unreferenced)... yes
checking for preprocessor stringizing operator... yes
checking for signed types... yes
checking for working volatile... yes
checking for __func__... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for struct tm.tm_zone... no
checking for tzname... yes
checking for union semun... no
checking for struct sockaddr_un... yes
checking for struct sockaddr_storage... yes
checking for struct sockaddr_storage.ss_family... yes
checking for struct sockaddr_storage.__ss_family... no
checking for struct sockaddr_storage.ss_len... no
checking for struct sockaddr_storage.__ss_len... no
checking for struct sockaddr.sa_len... no
checking for struct addrinfo... yes
checking for intptr_t... no
checking for uintptr_t... no
checking for long long int... yes
checking for struct cmsgcred... no
checking for struct fcred... no
checking for struct sockcred... no
checking for struct option... yes
checking for z_streamp... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... unknown
checking for _LARGE_FILES value needed for large files... unknown
checking size of off_t... 4
checking for int timezone... yes
checking types of arguments for accept()... unsigned int PASCAL, unsigned
int, struct sockaddr *, int *
checking whether gettimeofday takes only one argument... no
checking for cbrt... yes
checking for dlopen... yes
checking for fcvt... yes
checking for fdatasync... no
checking for getifaddrs... no
checking for getpeereid... no
checking for getpeerucred... no
checking for getrlimit... yes
checking for memmove... yes
checking for poll... yes
checking for pstat... no
checking for readlink... yes
checking for scandir... yes
checking for setproctitle... no
checking for setsid... yes
checking for sigprocmask... yes
checking for symlink... yes
checking for sysconf... yes
checking for towlower... no
checking for utime... yes
checking for utimes... yes
checking for waitpid... yes
checking for wcstombs... yes
checking for fseeko... no
checking for posix_fadvise... no
checking whether posix_fadvise is declared... no
checking whether fdatasync is declared... no
checking whether strlcat is declared... no
checking whether strlcpy is declared... no
checking whether F_FULLFSYNC is declared... no
checking for struct sockaddr_in6... no
checking for PS_STRINGS... no
checking whether snprintf is declared... yes
checking whether vsnprintf is declared... yes
checking for isinf... yes
checking for crypt... no
checking for erand48... yes
checking for getopt... yes
checking for getrusage... yes
checking for inet_aton... yes
checking for random... yes
checking for rint... yes
checking for srandom... yes
checking for strdup... yes
checking for strerror... yes
checking for strlcat... no
checking for strlcpy... no
checking for strtol... yes
checking for strtoul... yes
checking for getaddrinfo... no
checking for getopt_long... yes
checking for gettimeofday... yes
checking for sigsetjmp... yes
checking whether sys_siglist is declared... no
checking for syslog... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for opterr... yes
checking for optreset... yes
checking for strtoll... no
checking for strtoq... no
checking for strtoull... no
checking for strtouq... no
checking for atexit... yes
checking test program... ok
checking whether long int is 64 bits... no
checking whether long long int is 64 bits... yes
checking size of void *... 4
checking size of size_t... 4
checking size of long... 4
checking whether to build with float4 passed by value... yes
checking whether to build with float8 passed by value... no
checking alignment of short... 2
checking alignment of int... 4
checking alignment of long... 4
checking alignment of long long int... 8
checking alignment of double... 8
checking for int8... no
checking for uint8... no
checking for int64... no
checking for uint64... no
checking for sig_atomic_t... yes
checking for working memcmp... yes
checking for onsgmls... no
checking for nsgmls... no
checking for openjade... no
checking for jade... no
checking for DocBook V4.2... no
checking for DocBook stylesheets... no
checking for collateindex.pl... no
checking for xsltproc... no
checking for osx... no
checking for sgml2xml... no
checking for sx... no
configure: WARNING: *** skipping thread test on Win32
checking if gcc supports -Wl,--as-needed... yes
configure: using CFLAGS=-O2 -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv
configure: using CPPFLAGS= -I./src/include/port/win32 -DEXEC_BACKEND
configure: using LDFLAGS=-Wl,--allow-multiple-definition  -Wl,--as-needed
configure: creating ./config.status
config.status: creating GNUmakefile
config.status: creating src/Makefile.global
config.status: creating src/include/pg_config.h
config.status: src/include/pg_config.h is unchanged
config.status: creating src/interfaces/ecpg/include/ecpg_config.h
config.status: src/interfaces/ecpg/include/ecpg_config.h is unchanged
config.status: linking src/backend/port/tas/dummy.s to
src/backend/port/tas.s
config.status: linking src/backend/port/dynloader/win32.c to
src/backend/port/dynloader.c
config.status: linking src/backend/port/win32_sema.c to
src/backend/port/pg_sema.c
config.status: linking src/backend/port/win32_shmem.c to
src/backend/port/pg_shmem.c
config.status: linking src/backend/port/dynloader/win32.h to
src/include/dynloader.h
config.status: linking src/include/port/win32.h to
src/include/pg_config_os.h
config.status: linking src/makefiles/Makefile.win32 to src/Makefile.port
config.status: executing check_win32_symlinks commands


MAKE OUTPUT ******************************************
make -C src all
make[1]: Entering directory
`/c/cygwin171/home/jadams/postgis/postgresql-9.0.4/src'
make -C port all
make[2]: Entering directory
`/c/cygwin171/home/jadams/postgis/postgresql-9.0.4/src/port'
gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv
-I../../src/port -DFRONTEND -I../../src/include -I./src/include/port/win32
-DEXEC_BACKEND  "-I../../src/include/port/win32"  -c -o crypt.o crypt.c
In file included from ../../src/include/pg_config_os.h:37,
                 from ../../src/include/c.h:90,
                 from crypt.c:44:
/usr/lib/gcc/i686-pc-msys/3.4.4/../../../../include/w32api/winsock2.h:103:2:
warning: #warning "fd_set and associated macros have been defined in
sys/types.      This may cause runtime problems with W
32 sockets"
In file included from ../../src/include/c.h:90,
                 from crypt.c:44:
../../src/include/pg_config_os.h:44:20: direct.h: No such file or directory
../../src/include/pg_config_os.h:106:1: warning: "EIDRM" redefined
In file included from /usr/include/errno.h:1,
                 from ../../src/include/c.h:80,
                 from crypt.c:44:
/usr/include/sys/errno.h:64:1: warning: this is the location of the previous
definition
In file included from ../../src/include/c.h:90,
                 from crypt.c:44:
../../src/include/pg_config_os.h:181:1: warning: "SIGABRT" redefined
In file included from /usr/include/signal.h:8,
                 from ../../src/include/pg_config_os.h:42,
                 from ../../src/include/c.h:90,
                 from crypt.c:44:
/usr/include/sys/signal.h:225:1: warning: this is the location of the
previous definition
In file included from ../../src/include/c.h:90,
                 from crypt.c:44:
../../src/include/pg_config_os.h:238: error: conflicting types for 'uid_t'
/usr/include/sys/types.h:133: error: previous declaration of 'uid_t' was
here
../../src/include/pg_config_os.h:239: error: conflicting types for 'gid_t'
/usr/include/sys/types.h:134: error: previous declaration of 'gid_t' was
here
In file included from ../../src/include/c.h:90,
                 from crypt.c:44:
../../src/include/pg_config_os.h:267:1: warning: "EMSGSIZE" redefined
In file included from /usr/include/errno.h:1,
                 from ../../src/include/c.h:80,
                 from crypt.c:44:
/usr/include/sys/errno.h:132:1: warning: this is the location of the
previous definition
In file included from ../../src/include/c.h:90,
                 from crypt.c:44:
../../src/include/pg_config_os.h:268:1: warning: "EAFNOSUPPORT" redefined
In file included from /usr/include/errno.h:1,
                 from ../../src/include/c.h:80,
                 from crypt.c:44:
/usr/include/sys/errno.h:116:1: warning: this is the location of the
previous definition
In file included from ../../src/include/c.h:90,
                 from crypt.c:44:
../../src/include/pg_config_os.h:269:1: warning: "EWOULDBLOCK" redefined
In file included from /usr/include/errno.h:1,
                 from ../../src/include/c.h:80,
                 from crypt.c:44:
/usr/include/sys/errno.h:150:1: warning: this is the location of the
previous definition
In file included from ../../src/include/c.h:90,
                 from crypt.c:44:
../../src/include/pg_config_os.h:270:1: warning: "ECONNRESET" redefined
In file included from /usr/include/errno.h:1,
                 from ../../src/include/c.h:80,
                 from crypt.c:44:
/usr/include/sys/errno.h:114:1: warning: this is the location of the
previous definition
In file included from ../../src/include/c.h:90,
                 from crypt.c:44:
../../src/include/pg_config_os.h:271:1: warning: "EINPROGRESS" redefined
In file included from /usr/include/errno.h:1,
                 from ../../src/include/c.h:80,
                 from crypt.c:44:
/usr/include/sys/errno.h:129:1: warning: this is the location of the
previous definition
In file included from ../../src/include/c.h:90,
                 from crypt.c:44:
../../src/include/pg_config_os.h:272:1: warning: "ENOBUFS" redefined
In file included from /usr/include/errno.h:1,
                 from ../../src/include/c.h:80,
                 from crypt.c:44:
/usr/include/sys/errno.h:115:1: warning: this is the location of the
previous definition
In file included from ../../src/include/c.h:90,
                 from crypt.c:44:
../../src/include/pg_config_os.h:273:1: warning: "EPROTONOSUPPORT"
redefined
In file included from /usr/include/errno.h:1,
                 from ../../src/include/c.h:80,
                 from crypt.c:44:
/usr/include/sys/errno.h:133:1: warning: this is the location of the
previous definition
In file included from ../../src/include/c.h:90,
                 from crypt.c:44:
../../src/include/pg_config_os.h:274:1: warning: "ECONNREFUSED" redefined
In file included from /usr/include/errno.h:1,
                 from ../../src/include/c.h:80,
                 from crypt.c:44:
/usr/include/sys/errno.h:121:1: warning: this is the location of the
previous definition
In file included from ../../src/include/c.h:90,
                 from crypt.c:44:
../../src/include/pg_config_os.h:275:1: warning: "EBADFD" redefined
In file included from /usr/include/errno.h:1,
                 from ../../src/include/c.h:80,
                 from crypt.c:44:
/usr/include/sys/errno.h:100:1: warning: this is the location of the
previous definition
In file included from ../../src/include/c.h:90,
                 from crypt.c:44:
../../src/include/pg_config_os.h:276:1: warning: "EOPNOTSUPP" redefined
In file included from /usr/include/errno.h:1,
                 from ../../src/include/c.h:80,
                 from crypt.c:44:
/usr/include/sys/errno.h:112:1: warning: this is the location of the
previous definition
In file included from ../../src/include/c.h:851,
                 from crypt.c:44:
../../src/include/port.h:433: warning: "struct passwd" declared inside
parameter list
../../src/include/port.h:433: warning: its scope is only this definition or
declaration, which is probably not what you want
make[2]: *** [crypt.o] Error 1
make[2]: Leaving directory
`/c/cygwin171/home/jadams/postgis/postgresql-9.0.4/src/port'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/c/cygwin171/home/jadams/postgis/postgresql-9.0.4/src'
make: *** [all] Error 2
FAILED: make

Responses

pgsql-bugs by date

Next:From: Bruce MomjianDate: 2011-05-25 21:47:14
Subject: Re: [BUGS] BUG #6034: pg_upgrade fails when it should not.
Previous:From: Tom LaneDate: 2011-05-25 20:42:03
Subject: Re: [BUGS] BUG #6034: pg_upgrade fails when it should not.

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group