[postgis-devel] Can't build postgis-2.0.0SVN raster on ubuntu

Christopher DeMars chdemars at ucdavis.edu
Tue Dec 13 16:13:27 PST 2011


I'm trying to build postgis 2.0 raster (latest snapshot downloaded
today) and am getting a linking error to the math library:

---------------------------------------
make[2]: Entering directory `/home/paradox/postgis-2.0.0SVN/raster/loader'
/bin/bash ../..//libtool --mode=link gcc -g -O2  -fPIC -DPIC
-I../rt_core -I/home/paradox/postgis-2.0.0SVN/liblwgeom
-I/usr/include/gdal -I/usr/include raster2pgsql.o
../rt_core/librtcore.a -lm ../rt_core/librtcore.a
/home/paradox/postgis-2.0.0SVN/liblwgeom/.libs/liblwgeom.a -L/usr/lib
-lgdal1.7.0 -L/usr/lib -lgeos_c -o raster2pgsql
gcc -g -O2 -fPIC -DPIC -I../rt_core
-I/home/paradox/postgis-2.0.0SVN/liblwgeom -I/usr/include/gdal
-I/usr/include raster2pgsql.o -o raster2pgsql  -lm
../rt_core/librtcore.a
/home/paradox/postgis-2.0.0SVN/liblwgeom/.libs/liblwgeom.a -L/usr/lib
-lgdal1.7.0 -lgeos_c
/usr/bin/ld: /home/paradox/postgis-2.0.0SVN/liblwgeom/.libs/liblwgeom.a(lwgeodetic.o):
undefined reference to symbol 'tan@@GLIBC_2.2.5'
/usr/bin/ld: note: 'tan@@GLIBC_2.2.5' is defined in DSO
/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../x86_64-linux-gnu/libm.so
so try adding it to the linker command line
/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../x86_64-linux-gnu/libm.so:
could not read symbols: Invalid operation
---------------------------------------

I've tried mucking around with configure.ac to add the path directly,
but to no avail.

Any hints on how to resolve this?

--Christopher



More information about the postgis-devel mailing list