rhayhow <rhayhow(at)cs(dot)nmsu(dot)edu> writes:
> I get the following errors...
> /usr/local/postgresql/lib/libpq.a(fe-connect.o): In function `connectDB':
> fe-connect.o(.text+0xf6c): undefined reference to `gethostbyname'
> fe-connect.o(.text+0x10e0): undefined reference to `socket'
> fe-connect.o(.text+0x116c): undefined reference to `connect'
> fe-connect.o(.text+0x1218): undefined reference to `getprotobyname'
> fe-connect.o(.text+0x127c): undefined reference to `setsockopt'
> fe-connect.o(.text+0x12e0): undefined reference to `getsockname'
On some systems, these network-related functions are not in the regular
C library, but in other libraries. Likely you need to add "-lsocket"
or something like that to the link command.
The Postgres configure script presumably got it right, if you were able
to install a working psql. Try looking at what the makefile for psql
regards, tom lane
pgsql-interfaces by date
|Next:||From: 9sun||Date: 1998-09-04 09:08:17|
|Previous:||From: Chris Hardie||Date: 1998-09-03 21:52:23|
|Subject: DBI w/Postgres|