Home > Archive > PostgreSQL Bugs > January 2006 > BUG #2205: Compilation error on Tru64: socklen_t in pqcomm.c









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author BUG #2205: Compilation error on Tru64: socklen_t in pqcomm.c

2006-01-24, 11:24 am


The following bug has been logged online:

Bug reference: 2205
Logged by:
Email address: agattik@gmail.com
PostgreSQL version: 8.1.2
Operating system: alphaev68-dec-osf5.1a
Description: Compilation error on Tru64: socklen_t in pqcomm.c
Details:

pqcomm.c: In function `pq_getkeepalivesidl
e':
pqcomm.c:1186: `socklen_t' undeclared (first use in this function)
pqcomm.c:1186: (Each undeclared identifier is reported only once
pqcomm.c:1186: for each function it appears in.)
pqcomm.c:1186: parse error before "size"
pqcomm.c:1190: `size' undeclared (first use in this function)
pqcomm.c: In function `pq_getkeepalivesint
erval':
pqcomm.c:1258: `socklen_t' undeclared (first use in this function)
pqcomm.c:1258: parse error before "size"
pqcomm.c:1262: `size' undeclared (first use in this function)
pqcomm.c: In function `pq_getkeepalivescou
nt':
pqcomm.c:1330: `socklen_t' undeclared (first use in this function)
pqcomm.c:1330: parse error before "size"



/usr/include/sys/socket.h contains:

/*
* This data type is needed for both UNIX98 and POSIX support.
*/
#if (defined (_XOPEN_SOURCE) && (_XOPEN_SOURCE>=500)) || \
defined(_POSIX_PII_S
OCKET)
typedef unsigned long socklen_t; /* 64-bits */
#endif



No ./configure options given except --prefix.

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

Tom Lane

2006-01-24, 11:24 am

"" <agattik@gmail.com> writes:
> pqcomm.c: In function `pq_getkeepalivesidl
e':
> pqcomm.c:1186: `socklen_t' undeclared (first use in this function)
> pqcomm.c:1186: (Each undeclared identifier is reported only once
> pqcomm.c:1186: for each function it appears in.)


Thanks for the report. socklen_t should be ACCEPT_TYPE_ARG3 here :-(

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org

Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com