[GRASS-dev] GRASS 7 compile error: undefined reference to `OSRMorphFromESRI'

Markus Neteler neteler at osgeo.org
Sat Feb 13 05:52:12 EST 2010


Hi,

I have checked why the GRASS 7 progman is no longer compiled (last
semi-successfull attempt 16 Jan):

[neteler at xblade14 d.grid]$ make
gcc -L/home/neteler/grass7_svn_head_progmanual/grass7/dist.i686-pc-linux-gnu/lib
-L/home/neteler/grass7_svn_head_progmanual/grass7/dist.i686-pc-linux-gnu/lib
-Wl,--export-dynamic
-Wl,-rpath-link,/home/neteler/grass7_svn_head_progmanual/grass7/dist.i686-pc-linux-gnu/lib
  -o /home/neteler/grass7_svn_head_progmanual/grass7/dist.i686-pc-linux-gnu/bin/d.grid
OBJ.i686-pc-linux-gnu/fiducial.o OBJ.i686-pc-linux-gnu/main.o
OBJ.i686-pc-linux-gnu/plotborder.o OBJ.i686-pc-linux-gnu/plot.o
-lgrass_display -lgrass_gproj -lgrass_symb -lgrass_gis -lm   -lm
/usr/bin/ld: warning: libgdal.so.1, needed by
/home/neteler/grass7_svn_head_progmanual/grass7/dist.i686-pc-linux-gnu/lib/libgrass_gproj.so,
not found (try using -rpath or -rpath-link)
/home/neteler/grass7_svn_head_progmanual/grass7/dist.i686-pc-linux-gnu/lib/libgrass_gproj.so:
undefined reference to `OSRMorphFromESRI'

this affect a lot of modules of course (70 or so).

The configuration looks like this:

cat myconf.sh
#!/bin/sh
MYBIN=$HOME/binaries
MYNAD2BIN=$MYBIN/bin/nad2bin
NAD2BIN=$MYNAD2BIN  ./configure  --prefix=/home/neteler/binaries
--with-gdal=/home/neteler/binaries/bin/gdal-config
--with-includes=/home/neteler/binaries/include --with-proj
--with-proj-includes=/home/neteler/binaries/include
--with-proj-libs=/home/neteler/binaries/lib
--with-proj-share=/home/neteler/binaries/share/proj --with-freetype
--with-freetype-includes=/usr/include/freetype2 --without-fftw
--with-python=/home/neteler/binaries/bin/python-config --with-cxx

[neteler at xblade14 lib]$ cd /home/neteler/binaries/lib
[neteler at xblade14 lib]$ nm libgdal.so | grep Morph
00310e68 T OSRMorphFromESRI
00311a74 T OSRMorphToESRI

Any ideas?

Markus


More information about the grass-dev mailing list