Re: CVS -Tip compile issue -- FreeBSD 4.8

From: Rod Taylor <rbt(at)rbt(dot)ca>
To: PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: CVS -Tip compile issue -- FreeBSD 4.8
Date: 2003-06-12 13:51:35
Message-ID: 1055425893.64954.18.camel@jester
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

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(at)rbt(dot)ca>

PGP Key: http://www.rbt.ca/rbtpub.asc

Attachment Content-Type Size
socket.h.gz application/x-gzip 5.5 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Manfred Koizar 2003-06-12 13:59:27 Re: [HACKERS] MARKED_FOR_UPDATE && XMAX_COMMITTED == XMAX_INVALID ?
Previous Message Rod Taylor 2003-06-12 13:30:23 CVS -Tip compile issue -- FreeBSD 4.8

Browse pgsql-patches by date

  From Date Subject
Next Message Manfred Koizar 2003-06-12 13:59:27 Re: [HACKERS] MARKED_FOR_UPDATE && XMAX_COMMITTED == XMAX_INVALID ?
Previous Message Rod Taylor 2003-06-12 13:30:23 CVS -Tip compile issue -- FreeBSD 4.8