Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
Thread:
Lists: pgsql-generalpgsql-hackerspgsql-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

pgsql-ports by date

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

pgsql-hackers by date

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

pgsql-general by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group