It would seem the configure test isn't picking up on the structure.
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
<--snip-->
checking for struct sockaddr_storage... no
FreeBSD sys/socket.h is attached.
Failing configure test below from config/c-library.m4 (line wrapped)
# PGAC_STRUCT_SOCKADDR_STORAGE
# ----------------------------
# If `struct sockaddr_storage' exists, define
HAVE_STRUCT_SOCKADDR_STORAGE. If
# it is missing then one could define it.
AC_DEFUN([PGAC_STRUCT_SOCKADDR_STORAGE],
[AC_CHECK_TYPES([struct sockaddr_storage], [], [],
[#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
])])# PGAC_STRUCT_SOCKADDR_STORAGE
On Thu, 2003-06-12 at 09:30, Rod Taylor wrote:
> gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -g -Wall
> -Wmissing-prototypes -Wmissin g-declarations -I../../../../src/include
> -c -o printtup.o printtup.c -MMD
> In file included from ../../../../src/include/libpq/libpq-be.h:22,
> from ../../../../src/include/libpq/libpq.h:21,
> from printtup.c:20:
> ../../../../src/include/libpq/pqcomm.h:41: warning: `_SS_ALIGNSIZE'
> redefined
> /usr/include/sys/socket.h:182: warning: this is the location of the
> previous definition
> ../../../../src/include/libpq/pqcomm.h:46: warning: `_SS_PAD1SIZE'
> redefined
> /usr/include/sys/socket.h:183: warning: this is the location of the
> previous definition
> ../../../../src/include/libpq/pqcomm.h:48: warning: `_SS_PAD2SIZE'
> redefined
> /usr/include/sys/socket.h:185: warning: this is the location of the
> previous definition
> In file included from ../../../../src/include/libpq/libpq-be.h:22,
> from ../../../../src/include/libpq/libpq.h:21,
> from printtup.c:20:
> ../../../../src/include/libpq/pqcomm.h:50: redefinition of `struct
> sockaddr_storage'
> gmake[4]: *** [printtup.o] Error 1
--
Rod Taylor <rbt@rbt.ca>
PGP Key: http://www.rbt.ca/rbtpub.asc