Re: Compiling on 8.1.3 on Openserver 5.05

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Mark Campbell <mark(dot)campbell(at)ucs-software(dot)co(dot)za>
Cc: pgsql-ports(at)postgresql(dot)org
Subject: Re: Compiling on 8.1.3 on Openserver 5.05
Date: 2006-05-11 15:03:12
Message-ID: 6844.1147359792@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers pgsql-ports

Mark Campbell <mark(dot)campbell(at)ucs-software(dot)co(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tony Caduto 2006-05-11 15:14:23 Re: Debugging SQL queries
Previous Message Scott Marlowe 2006-05-11 14:59:44 Re: Feature-Request: Login-Procedure

Browse pgsql-hackers by date

  From Date Subject
Next Message Mark Campbell 2006-05-11 15:20:52 Re: Compiling on 8.1.3 on Openserver 5.05
Previous Message Tom Lane 2006-05-11 15:00:01 Upcoming releases

Browse pgsql-ports by date

  From Date Subject
Next Message Mark Campbell 2006-05-11 15:20:52 Re: Compiling on 8.1.3 on Openserver 5.05
Previous Message Mark Campbell 2006-05-11 14:00:30 Compiling on 8.1.3 on Openserver 5.05