[GRASS5] Darwin: postgresql
Markus Neteler
neteler at geog.uni-hannover.de
Mon Jun 11 03:56:58 EDT 2001
Hi Jeshua,
On Sun, Jun 10, 2001 at 11:29:36PM -0700, Jeshua Lacock wrote:
> Ok,
>
> I successfully built and installed postgresql 7.1 here in Mac OS X
> land. When I attempt to compile grass.postgresql, it appears it can't
> find a header or something.
>
> Here's the output:
>
> #################################################################
> /usr/src/grass/src.garden/grass.postgresql/d.rast.pg
> make -f OBJ.powerpc-apple-darwin1.3.3/make.rules
>
> gcc -o /usr/src/grass/dist.powerpc-apple-
> darwin1.3.3/etc/bin/cmd/d.rast.pg OBJ.powerpc-apple-darwin1.3.3/main.o
> OBJ.powerpc-apple-darwin1.3.3/getAllOpts.o OBJ.powerpc-apple-
> darwin1.3.3/getSopts.o OBJ.powerpc-apple-darwin1.3.3/buildInfxQry.o
> OBJ.powerpc-apple-darwin1.3.3/runInfxFile.o
> /usr/src/grass/src/libes/LIB.powerpc-apple-darwin1.3.3/libdisplay.a
> /usr/src/grass/src/libes/LIB.powerpc-apple-darwin1.3.3/libraster.a
> /usr/src/grass/src/libes/LIB.powerpc-apple-darwin1.3.3/libgis.a
> -L/usr/local/pgsql/lib
> /usr/src/grass/src/libes/LIB.powerpc-apple-darwin1.3.3/libdatetime.a
> -I/usr/include -L/usr/local/lib -lz
> /usr/bin/ld: Undefined symbols:
> _PQclear
> _PQerrorMessage
> _PQexec
> _PQfinish
> _PQgetvalue
> _PQntuples
> _PQresultStatus
> _PQsetdbLogin
> _PQstatus
> make[1]: *** [/usr/src/grass/dist.powerpc-apple-
> darwin1.3.3/etc/bin/cmd/d.rast.pg] Error 1
> make: *** [all] Error 2
>
> Does anyone know where these symbols are defined?
It seems that
-lpq
is missing in above CC line.
My head entry is (src/CMD/head/head.i686-pc-linux-gnu):
#PostgreSQL:
PQINCPATH = -I/usr/include/pgsql
PQLIBPATH = -L/usr/lib
PQLIB = -lpq
Please check if PQLIB is set properly.
Regards
Markus
More information about the grass-dev
mailing list