Re: PostgreSQL 7.4beta3 does not compile on AIX 5 ...

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter Eisentraut <peter_e@gmx.net>
Cc: Hans-Jürgen Schönig <hs@cybertec.at>, eg@cybertec.at, pgsql-hackers@postgresql.org
Date: 2003-09-27T20:49:29Z
Lists: pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> The compatlib doesn't appear to use libpq though.  What is the error if
> you leave it off?

gcc -no-cpp-precomp -g -O2 -g -Wall -Wmissing-prototypes -Wmissing-declarations  -bundle informix.o -L../../../../src/port -L../ecpglib -lecpg -L../pgtypeslib -lpgtypes -lssl -lcrypto -lm   -o libecpg_compat.so.1.0
ld: Undefined symbols:
_PQclear
_PQexec
_PQerrorMessage
_PQresultErrorField
_PQfinish
_PQsetNoticeReceiver
_PQsetdbLogin
_PQstatus
_last_path_separator
make: *** [libecpg_compat.so.1.0] Error 1

compatlib doesn't require libpq directly --- but it requires libecpg,
which in turn requires libpq, and apparently this platform makes you
mention the indirect dependencies as well as the direct ones.
(But not, evidently, for -lm or -lc; there may be some other "magically
included" libs as well?)

			regards, tom lane