dbTalk Databases Forums  

[BUGS] BUG #2205: Compilation error on Tru64: socklen_t in pqcomm.c

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] BUG #2205: Compilation error on Tru64: socklen_t in pqcomm.c in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
 
Posts: n/a

Default [BUGS] BUG #2205: Compilation error on Tru64: socklen_t in pqcomm.c - 01-24-2006 , 09:41 AM







The following bug has been logged online:

Bug reference: 2205
Logged by:
Email address: agattik (AT) gmail (DOT) 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_getkeepalivesidle':
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_getkeepalivesinterval':
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_getkeepalivescount':
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_SOCKET)
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

Reply With Quote
  #2  
Old   
Tom Lane
 
Posts: n/a

Default Re: [BUGS] BUG #2205: Compilation error on Tru64: socklen_t in pqcomm.c - 01-24-2006 , 09:48 AM






"" <agattik (AT) gmail (DOT) com> writes:
Quote:
pqcomm.c: In function `pq_getkeepalivesidle':
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


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.