[redland-dev] 1.0.4 can't find libpq.so.4 during make?

Eric Hanson elh at cs.pdx.edu
Mon Jul 10 03:58:53 BST 2006


Hi,

I'm getting a compile error, while trying to make redland 1.0.4:

gcc -DLIBRDF_INTERNAL=1 -g -O2 -DLIBRDF_INTERNAL=1 -g -O2 -o
.libs/redland-db-upgrade db_upgrade.o  ../librdf/.libs/librdf.so
/usr/lib/gcc-lib/i486-slackware-linux/3.3.6/../../../../i486-slackware-linux/bin/ld:
warning: libpq.so.4, needed by ../librdf/.libs/librdf.so, not found (try
using -rpath or -rpath-link)
../librdf/.libs/librdf.so: undefined reference to `PQbackendPID'
../librdf/.libs/librdf.so: undefined reference to `PQresultErrorMessage'
../librdf/.libs/librdf.so: undefined reference to `PQconnectdb'
../librdf/.libs/librdf.so: undefined reference to `PQexec'
../librdf/.libs/librdf.so: undefined reference to `PQntuples'
../librdf/.libs/librdf.so: undefined reference to `PQgetlength'
../librdf/.libs/librdf.so: undefined reference to `PQclear'
../librdf/.libs/librdf.so: undefined reference to `PQresultStatus'
../librdf/.libs/librdf.so: undefined reference to `PQgetvalue'
../librdf/.libs/librdf.so: undefined reference to `PQstatus'
../librdf/.libs/librdf.so: undefined reference to `PQnfields'
../librdf/.libs/librdf.so: undefined reference to `PQescapeString'
../librdf/.libs/librdf.so: undefined reference to `PQfinish'
../librdf/.libs/librdf.so: undefined reference to `PQerrorMessage'
collect2: ld returned 1 exit status
make[1]: *** [redland-db-upgrade] Error 1
make[1]: Leaving directory `/root/src/redland-1.0.4/utils'
make: *** [all-recursive] Error 1
root at vector:~/src/redland-1.0.4#


I've got postgres installed and on the path:

root at vector:~/src/redland-1.0.4# pg_config
BINDIR = /usr/local/pgsql/bin
DOCDIR = /usr/local/pgsql/doc
INCLUDEDIR = /usr/local/pgsql/include
PKGINCLUDEDIR = /usr/local/pgsql/include
INCLUDEDIR-SERVER = /usr/local/pgsql/include/server
LIBDIR = /usr/local/pgsql/lib
PKGLIBDIR = /usr/local/pgsql/lib
LOCALEDIR =
MANDIR = /usr/local/pgsql/man
SHAREDIR = /usr/local/pgsql/share
SYSCONFDIR = /usr/local/pgsql/etc
PGXS = /usr/local/pgsql/lib/pgxs/src/makefiles/pgxs.mk
CONFIGURE =
CC = gcc
CPPFLAGS = -D_GNU_SOURCE
CFLAGS = -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Winline
-Wendif-labels -fno-strict-aliasing
CFLAGS_SL = -fpic
LDFLAGS = -Wl,-rpath,/usr/local/pgsql/lib
LDFLAGS_SL =
LIBS = -lpgport -lz -lreadline -ltermcap -lcrypt -lresolv -lnsl -ldl -lm
VERSION = PostgreSQL 8.1.3


I've also tried with the --with-pgsql=... line, no luck there either.

Thanks,
Eric



More information about the redland-dev mailing list