X-Original-To: pgsql-ports-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 408619FA2C3 for ; Thu, 11 May 2006 16:42:10 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 58303-07 for ; Thu, 11 May 2006 16:42:04 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from ucsns.ucs.co.za (ucsns.ucs.co.za [196.23.43.2]) by postgresql.org (Postfix) with ESMTP id E75319FA278 for ; Thu, 11 May 2006 16:42:03 -0300 (ADT) Received: from ucspost.ucs.co.za (ucspost.ucs.co.za [196.23.43.3]) by ucsns.ucs.co.za (Postfix) with ESMTP id 0F9BC2BD56; Thu, 11 May 2006 21:42:02 +0200 (SAST) Received: from jhb.ucs.co.za (jhb.ucs.co.za [172.31.1.3]) by ucspost.ucs.co.za (Postfix) with ESMTP id 0B57ADC21F; Thu, 11 May 2006 21:42:02 +0200 (SAST) Received: from [192.168.0.241] (unknown [172.31.4.237]) by jhb.ucs.co.za (Postfix) with ESMTP id F2DFF97DB9; Thu, 11 May 2006 21:42:00 +0200 (SAST) Message-ID: <446394EF.8000509@ucs-software.co.za> Date: Thu, 11 May 2006 21:47:59 +0200 From: Mark Campbell User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tom Lane Cc: pgsql-ports@postgresql.org Subject: Re: Compiling on 8.1.3 on Openserver 5.05 References: <4463437E.5020108@ucs-software.co.za> <6844.1147359792@sss.pgh.pa.us> <44635654.6000904@ucs-software.co.za> <14842.1147368177@sss.pgh.pa.us> <44638C47.6010707@ucs-software.co.za> <26180.1147375495@sss.pgh.pa.us> In-Reply-To: <26180.1147375495@sss.pgh.pa.us> Content-Type: multipart/alternative; boundary="------------050105040204090801000607" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/12 X-Sequence-Number: 2393 This is a multi-part message in MIME format. --------------050105040204090801000607 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit I have the this bit of code in netdb.h /* * Error return codes from gethostbyname() and gethostbyaddr() (left in * extern int h_errno). */ #define NETDB_INTERNAL -1 /* see errno */ #define NETDB_SUCCESS 0 /* no problem */ #define HOST_NOT_FOUND 1 /* Authoritative Answer Host not found */ #define TRY_AGAIN 2 /* Non-Authoritive Host not found, or * SERVERFAIL */ #define NO_RECOVERY 3 /* Non recoverable errors, FORMERR, REFUSED, * NOTIMP */ #define NO_DATA 4 /* Valid name, no data record of requested * type */ #define NO_ADDRESS NO_DATA /* no address, look for MX record */ and this in resolv.h /* * This used to be defined in res_query.c, now it's in herror.c. It was * never extern'd by any *.h file before it was placed here. herror.c is * part of libresolv.a even though it might make more sense in libnetdb.a * or even libnet.a. */ extern int h_errno; Tom Lane wrote: >Mark Campbell writes: > > >>Looks correct as some of the errors seem to be gone, however where would >>I have to add/include the "h_errno" and the "warning: unreachable code >>at beginning of switch statement" worries me >> >> > >h_errno ought to be declared in according to the standard. >Can you find it on your machine? > > regards, tom lane > >---------------------------(end of broadcast)--------------------------- >TIP 1: if posting/reading through Usenet, please send an appropriate > subscribe-nomail command to majordomo@postgresql.org so that your > message can get through to the mailing list cleanly > > --------------050105040204090801000607 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit I have the this bit of code in netdb.h

/*
 * Error return codes from gethostbyname() and gethostbyaddr() (left in
 * extern int h_errno).
 */

#define NETDB_INTERNAL  -1      /* see errno */
#define NETDB_SUCCESS   0       /* no problem */

#define HOST_NOT_FOUND  1       /* Authoritative Answer Host not found */
#define TRY_AGAIN       2       /* Non-Authoritive Host not found, or
                                 * SERVERFAIL */
#define NO_RECOVERY     3       /* Non recoverable errors, FORMERR, REFUSED,
                                 * NOTIMP */
#define NO_DATA         4       /* Valid name, no data record of requested
                                 * type */
#define NO_ADDRESS      NO_DATA /* no address, look for MX record */

and this in resolv.h

/*
 * This used to be defined in res_query.c, now it's in herror.c.  It was
 * never extern'd by any *.h file before it was placed here.  herror.c is
 * part of libresolv.a even though it might make more sense in libnetdb.a
 * or even libnet.a.
 */

extern int h_errno;



Tom Lane wrote:
Mark Campbell <mark.campbell@ucs-software.co.za> writes:
  
Looks correct as some of the errors seem to be gone, however where would 
I have to add/include the "h_errno" and the "warning: unreachable code 
at beginning of switch statement" worries me
    

h_errno ought to be declared in <netdb.h> according to the standard.
Can you find it on your machine?

			regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
       subscribe-nomail command to majordomo@postgresql.org so that your
       message can get through to the mailing list cleanly
  

--------------050105040204090801000607--