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 D88139FA176 for ; Thu, 11 May 2006 12:25:31 -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 28393-04 for ; Thu, 11 May 2006 12:25:22 -0300 (ADT) X-Greylist: delayed 01:20:30.810072 by SQLgrey- Received: from ucsns.ucs.co.za (ucsns.ucs.co.za [196.23.43.2]) by postgresql.org (Postfix) with ESMTP id D1DD89FA432 for ; Thu, 11 May 2006 12:25:18 -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 359E92BD54; Thu, 11 May 2006 17:25:17 +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 26870D9F2B; Thu, 11 May 2006 17:25:17 +0200 (SAST) Received: from [172.31.1.156] (mdc.ucs.co.za [172.31.1.156]) by jhb.ucs.co.za (Postfix) with ESMTP id 15EA397DB9; Thu, 11 May 2006 17:25:17 +0200 (SAST) Message-ID: <44635654.6000904@ucs-software.co.za> Date: Thu, 11 May 2006 17:20:52 +0200 From: Mark Campbell User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) 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> In-Reply-To: <6844.1147359792@sss.pgh.pa.us> Content-Type: multipart/alternative; boundary="------------060805030305060207040204" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/8 X-Sequence-Number: 2389 This is a multi-part message in MIME format. --------------060805030305060207040204 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Searching through /usr/include with the following script: for i in `find . *` do egrep "htonl|htons|ntohs" $i if [ $? = 0 ] then echo $i fi done I found the following: extern u_short mdi_htons(u_short); extern u_short mdi_ntohs(u_short); in /usr/include/sys/mdi.h u_long ntohl __P((u_long)), htonl __P((u_long)); u_short ntohs __P((u_short)), htons __P((u_short)); #define htonl(x) (x) #define ntohs(x) (x) #define htons(x) (x) in /usr/include/sys/byteorder.h #define IXDR_PUT_LONG(buf, v) (*(buf)++ = (long)htonl((ulong)v)) in /usr/include/rpc/xdr.h Nothing was found in /usr/local/include The problem I had with configure, was that gcc could not find cc1 Mark Campbell Confidentiality Notice: http://ucs.co.za/conf.html Tom Lane wrote: > Mark Campbell writes: > >> getaddrinfo.c: In function `pg_getaddrinfo': >> getaddrinfo.c:189: warning: implicit declaration of function `htonl' >> getaddrinfo.c:211: `h_errno' undeclared (first use in this function) >> getaddrinfo.c:211: (Each undeclared identifier is reported only once >> getaddrinfo.c:211: for each function it appears in.) >> getaddrinfo.c:215: warning: unreachable code at beginning of switch >> statement >> getaddrinfo.c:238: warning: implicit declaration of function `htons' >> getaddrinfo.c: In function `pg_getnameinfo': >> getaddrinfo.c:416: warning: implicit declaration of function `ntohs' >> > > Hmm, looks like your system declares htonl() and friends in some other > header file than where getaddrinfo.c is expecting. Grep through > everything under /usr/include and see where these symbols are declared. > > BTW, what problems did you have with configure? > > regards, tom lane > > ---------------------------(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 > --------------060805030305060207040204 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Searching through /usr/include with the following script:

for i in `find . *`
do
   egrep "htonl|htons|ntohs" $i
   if [ $? = 0 ]
   then
      echo $i
   fi
done

I found the following:

extern u_short  mdi_htons(u_short);
extern u_short  mdi_ntohs(u_short);
in /usr/include/sys/mdi.h

u_long ntohl __P((u_long)), htonl __P((u_long));
u_short ntohs __P((u_short)), htons __P((u_short));
#define htonl(x)        (x)
#define ntohs(x)        (x)
#define htons(x)        (x)
in /usr/include/sys/byteorder.h

#define IXDR_PUT_LONG(buf, v)           (*(buf)++ = (long)htonl((ulong)v))
in /usr/include/rpc/xdr.h

Nothing was found in /usr/local/include

The problem I had with configure, was that gcc could not find cc1

Mark Campbell

Confidentiality Notice: http://ucs.co.za/conf.html


Tom Lane wrote:
Mark Campbell <mark.campbell@ucs-software.co.za> writes:
  
getaddrinfo.c: In function `pg_getaddrinfo':
getaddrinfo.c:189: warning: implicit declaration of function `htonl'
getaddrinfo.c:211: `h_errno' undeclared (first use in this function)
getaddrinfo.c:211: (Each undeclared identifier is reported only once
getaddrinfo.c:211: for each function it appears in.)
getaddrinfo.c:215: warning: unreachable code at beginning of switch 
statement
getaddrinfo.c:238: warning: implicit declaration of function `htons'
getaddrinfo.c: In function `pg_getnameinfo':
getaddrinfo.c:416: warning: implicit declaration of function `ntohs'
    

Hmm, looks like your system declares htonl() and friends in some other
header file than where getaddrinfo.c is expecting.  Grep through
everything under /usr/include and see where these symbols are declared.

BTW, what problems did you have with configure?

			regards, tom lane

---------------------------(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
  
--------------060805030305060207040204--