Re: [HACKERS] 7.4beta1 build problem on unixware
On Thu, Aug 07, 2003 at 05:20:58PM +0200, [EMAIL PROTECTED] wrote: Hi Tom, I have NI_NUMERICHOST defined in netdb.h That's for getnameinfo(). getnameinfo() is older than getaddrinfo() ... If you have that, I assume you have AI_NUMERICHOST in the same file too ... ? Kurt ---(end of broadcast)--- TIP 8: explain analyze is your friend
Re: [HACKERS] 7.4beta1 build problem on unixware
Kurt Roeckx [EMAIL PROTECTED] writes: If they don't have it defined, it's not going to do what we expect and we might be better of using our replacement functions. We will if we don't find struct addrinfo. See notes at top of getaddrinfo.h. regards, tom lane ---(end of broadcast)--- TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]
Re: [HACKERS] 7.4beta1 build problem on unixware
On Sat, Aug 09, 2003 at 11:48:31AM -0400, Tom Lane wrote: Kurt Roeckx [EMAIL PROTECTED] writes: On Thu, Aug 07, 2003 at 05:20:58PM +0200, [EMAIL PROTECTED] wrote: I have NI_NUMERICHOST defined in netdb.h If you have that, I assume you have AI_NUMERICHOST in the same file too ... ? Nope, they don't :-(. I committed fixes a day or two ago that seem to take care of this, though we won't know for sure till it's tried on more platforms ... If they don't have it defined, it's not going to do what we expect and we might be better of using our replacement functions. Kurt ---(end of broadcast)--- TIP 9: the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match
Re: [HACKERS] 7.4beta1 build problem on unixware
--On Saturday, August 09, 2003 18:57:10 -0400 Tom Lane [EMAIL PROTECTED] wrote: Larry Rosenman [EMAIL PROTECTED] writes: Ok, with using OUR src/port/getaddrinfo.c (by #undef'ing HAVE_GETADDRINFO and adding getaddrinfo.o to Makefile.global's LIBOBJS, it works again. We need to devise a configure test for broken/old getaddrinfo()'s. That seems Turing-complete in general :-(. It may well be that the problem is not so much that your getaddrinfo doesn't work, as that we're not interfacing to it correctly. Which of the macros in src/include/getaddrinfo.h are actually being absorbed from the system headers, and which are we using our own values for? Good question. Here's excerpts from UnixWare's /usr/include/netdb.h: /* * Flag values for getaddrinfo() */ #define AI_PASSIVE 0x01/* socket address is intended for bind() */ #define AI_CANONNAME0x02/* request for canonical name */ /* * Error values for getaddrinfo() */ #define EAI_BADFLAGS1 /* invalid value for ai_flags */ #define EAI_NONAME 2 /* neither name nor service provided/found */ #define EAI_AGAIN 3 /* temporary failure in name resolution */ #define EAI_FAIL4 /* non-recoverable failure in name resoln */ #define EAI_NODATA 5 /* no address associated with name */ #define EAI_FAMILY 6 /* ai_family not supported */ #define EAI_SOCKTYPE7 /* ai_socktype not supported */ #define EAI_SERVICE 8 /* service not supported for ai_socktype */ #define EAI_ADDRFAMILY 9 /* address family for name not supported */ #define EAI_MEMORY 10 /* memory allocation failure */ #define EAI_SYSTEM 11 /* system error */ /* * Structure used by getaddrinfo() */ struct addrinfo { int ai_flags; /* input flags */ int ai_family; /* protofamily for socket */ int ai_socktype;/* socket type */ int ai_protocol;/* protocol for socket */ int ai_addrlen; /* length of socket address */ struct sockaddr *ai_addr; /* socket address */ char*ai_canonname; /* canonical name for service locn */ struct addrinfo *ai_next; /* pointer to next in list */ }; a copy of the manpage is at: http://www.lerctr.org:8458/en/man/html.3N/getaddrinfo.3N.html I'm at a loss from here LER regards, tom lane -- Larry Rosenman http://www.lerctr.org/~ler Phone: +1 972-414-9812 E-Mail: [EMAIL PROTECTED] US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749 ---(end of broadcast)--- TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]
Re: [HACKERS] 7.4beta1 build problem on unixware
[EMAIL PROTECTED] writes: I've just tried the cvs on uw 7.13. It fails on compiling hba.c: UX:acomp: ERROR: hba.c, line 651: undefined symbol: AI_NUMERICHOST UX:acomp: ERROR: hba.c, line 1237: undefined symbol: AI_NUMERICHOST This seems similar to Weiping He's problem on AIX. As I said to him: Looking at src/include/getaddrinfo.h, it seems we assume we need to supply definitions of AI_NUMERICHOST and NI_NUMERICHOST if and only if not HAVE_STRUCT_ADDRINFO. That's probably a bogus assumption. Can you tell us what configure found for HAVE_STRUCT_ADDRINFO and HAVE_GETADDRINFO? Also, which of the macros defined in that file exist in your system headers? regards, tom lane ---(end of broadcast)--- TIP 4: Don't 'kill -9' the postmaster
Re: [HACKERS] 7.4beta1 build problem on unixware
--On Saturday, August 09, 2003 12:31:14 -0400 Tom Lane [EMAIL PROTECTED] wrote: Kurt Roeckx [EMAIL PROTECTED] writes: If they don't have it defined, it's not going to do what we expect and we might be better of using our replacement functions. We will if we don't find struct addrinfo. See notes at top of getaddrinfo.h. regards, tom lane and it BREAKS on UnixWare. I can connect on unix domain sockets, but NOT on an IP socket. I'm futzing with #undef'ing HAVE_GETADDRINFO for a test. -- Larry Rosenman http://www.lerctr.org/~ler Phone: +1 972-414-9812 E-Mail: [EMAIL PROTECTED] US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749 ---(end of broadcast)--- TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faqs/FAQ.html
Re: [HACKERS] 7.4beta1 build problem on unixware
Larry Rosenman [EMAIL PROTECTED] writes: Ok, with using OUR src/port/getaddrinfo.c (by #undef'ing HAVE_GETADDRINFO and adding getaddrinfo.o to Makefile.global's LIBOBJS, it works again. We need to devise a configure test for broken/old getaddrinfo()'s. That seems Turing-complete in general :-(. It may well be that the problem is not so much that your getaddrinfo doesn't work, as that we're not interfacing to it correctly. Which of the macros in src/include/getaddrinfo.h are actually being absorbed from the system headers, and which are we using our own values for? regards, tom lane ---(end of broadcast)--- TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]
Re: [HACKERS] 7.4beta1 build problem on unixware
Kurt Roeckx [EMAIL PROTECTED] writes: On Thu, Aug 07, 2003 at 05:20:58PM +0200, [EMAIL PROTECTED] wrote: I have NI_NUMERICHOST defined in netdb.h That's for getnameinfo(). getnameinfo() is older than getaddrinfo() ... If you have that, I assume you have AI_NUMERICHOST in the same file too ... ? Nope, they don't :-(. I committed fixes a day or two ago that seem to take care of this, though we won't know for sure till it's tried on more platforms ... regards, tom lane ---(end of broadcast)--- TIP 4: Don't 'kill -9' the postmaster
Re: [HACKERS] 7.4beta1 build problem on unixware
On Sat, 9 Aug 2003, Kurt Roeckx wrote: Date: Sat, 9 Aug 2003 17:45:55 +0200 From: Kurt Roeckx [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: Tom Lane [EMAIL PROTECTED], pgsql-hackers list [EMAIL PROTECTED], Larry Rosenman [EMAIL PROTECTED] Subject: Re: [HACKERS] 7.4beta1 build problem on unixware On Thu, Aug 07, 2003 at 05:20:58PM +0200, [EMAIL PROTECTED] wrote: Hi Tom, I have NI_NUMERICHOST defined in netdb.h That's for getnameinfo(). getnameinfo() is older than getaddrinfo() ... If you have that, I assume you have AI_NUMERICHOST in the same file too ... ? No Kurt -- Olivier PRENANT Tel: +33-5-61-50-97-00 (Work) 6, Chemin d'Harraud Turrou +33-5-61-50-97-01 (Fax) 31190 AUTERIVE +33-6-07-63-80-64 (GSM) FRANCE Email: [EMAIL PROTECTED] -- Make your life a dream, make your dream a reality. (St Exupery) ---(end of broadcast)--- TIP 3: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PROTECTED] so that your message can get through to the mailing list cleanly
Re: [HACKERS] 7.4beta1 build problem on unixware
Hi Tom, I have NI_NUMERICHOST defined in netdb.h I too can provide an account on my machine(s) if you need a few On Thu, 7 Aug 2003, Tom Lane wrote: Date: Thu, 07 Aug 2003 10:46:47 -0400 From: Tom Lane [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: pgsql-hackers list [EMAIL PROTECTED] Subject: Re: [HACKERS] 7.4beta1 build problem on unixware [EMAIL PROTECTED] writes: I've just tried the cvs on uw 7.13. It fails on compiling hba.c: UX:acomp: ERROR: hba.c, line 651: undefined symbol: AI_NUMERICHOST UX:acomp: ERROR: hba.c, line 1237: undefined symbol: AI_NUMERICHOST This seems similar to Weiping He's problem on AIX. As I said to him: Looking at src/include/getaddrinfo.h, it seems we assume we need to supply definitions of AI_NUMERICHOST and NI_NUMERICHOST if and only if not HAVE_STRUCT_ADDRINFO. That's probably a bogus assumption. Can you tell us what configure found for HAVE_STRUCT_ADDRINFO and HAVE_GETADDRINFO? Also, which of the macros defined in that file exist in your system headers? regards, tom lane -- Olivier PRENANT Tel: +33-5-61-50-97-00 (Work) 6, Chemin d'Harraud Turrou +33-5-61-50-97-01 (Fax) 31190 AUTERIVE +33-6-07-63-80-64 (GSM) FRANCE Email: [EMAIL PROTECTED] -- Make your life a dream, make your dream a reality. (St Exupery) ---(end of broadcast)--- TIP 9: the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match
Re: [HACKERS] 7.4beta1 build problem on unixware
--On Thursday, August 07, 2003 10:46:47 -0400 Tom Lane [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] writes: I've just tried the cvs on uw 7.13. It fails on compiling hba.c: UX:acomp: ERROR: hba.c, line 651: undefined symbol: AI_NUMERICHOST UX:acomp: ERROR: hba.c, line 1237: undefined symbol: AI_NUMERICHOST This seems similar to Weiping He's problem on AIX. As I said to him: Looking at src/include/getaddrinfo.h, it seems we assume we need to supply definitions of AI_NUMERICHOST and NI_NUMERICHOST if and only if not HAVE_STRUCT_ADDRINFO. That's probably a bogus assumption. Can you tell us what configure found for HAVE_STRUCT_ADDRINFO and HAVE_GETADDRINFO? Also, which of the macros defined in that file exist in your system headers? We (UnixWare) have getaddrinfo(), but it's probably to an older standard. We don't really have a IPv6 stack, just the API for it. Tom: Would an account on my box help? regards, tom lane ---(end of broadcast)--- TIP 4: Don't 'kill -9' the postmaster -- Larry Rosenman http://www.lerctr.org/~ler Phone: +1 972-414-9812 E-Mail: [EMAIL PROTECTED] US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749 ---(end of broadcast)--- TIP 4: Don't 'kill -9' the postmaster
[HACKERS] 7.4beta1 build problem on unixware
Hi, I've just tried the cvs on uw 7.13. It fails on compiling hba.c: UX:acomp: ERROR: hba.c, line 651: undefined symbol: AI_NUMERICHOST UX:acomp: ERROR: hba.c, line 1237: undefined symbol: AI_NUMERICHOST gmake[3]: *** [hba.o] Error 1 gmake[2]: *** [libpq-recursive] Error 2 gmake[1]: *** [all] Error 2 gmake: *** [all] Error 2 UX:make: ERROR: fatal error. Regards -- Olivier PRENANT Tel: +33-5-61-50-97-00 (Work) 6, Chemin d'Harraud Turrou +33-5-61-50-97-01 (Fax) 31190 AUTERIVE +33-6-07-63-80-64 (GSM) FRANCE Email: [EMAIL PROTECTED] -- Make your life a dream, make your dream a reality. (St Exupery) ---(end of broadcast)--- TIP 8: explain analyze is your friend