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