[Mapserver-users] GDAL build errors

we wei mapgisnewbies at yahoo.com
Wed Mar 3 14:01:12 EST 2004


Hi all,

I have a question about building gdal-cvs version. 

When i do a configure as follow:
./configure --prefix=/usr/local/gdal --with-xerces
--with-xerces-inc=/usr/local/include/xerces/include/xercesc
--with-xerces-lib=/usr/local/lib/xerces/libxerces-c1_6_0.so
--with-odbc --with-ogr --without-python

It got compiled alright.  But when I tried to make I
got the following error:

g++ -Wall -O2 -I/usr/local/easysoft
-I/usr/local/easysoft/include -Iogrsf_frmts -I.
-I../port -I../gcore -I../og
r -I../port -c ogrinfo.cpp  -fPIC -DPIC -o
.libs/ogrinfo.o
 g++ -Wall -O2 -I/usr/local/easysoft
-I/usr/local/easysoft/include -Iogrsf_frmts -I.
-I../port -I../gcore -I../og
r -I../port -c ogrinfo.cpp -o ogrinfo.o >/dev/null
2>&1
/bin/sh ../libtool --mode=link  g++  ogrinfo.o
../libgdal.la -o ogrinfo
g++ ogrinfo.o -o .libs/ogrinfo  ../.libs/libgdal.so
-L/usr/local/easysoft -L/usr/local/easysoft/lib -lodbc
/usr/l
ib/libjpeg.so -lpng -lz -ldl -L/usr/local/pgsql/lib
-lpq -Wl,--rpath -Wl,/usr/local/gdal/lib
../.libs/libgdal.so: undefined reference to
`SAXParseException::~SAXParseException(void)'
../.libs/libgdal.so: undefined reference to
`SAX2XMLReaderImpl::SAX2XMLReaderImpl(void)'
../.libs/libgdal.so: undefined reference to
`XMLString::transcode(char const *)'
../.libs/libgdal.so: undefined reference to
`XMLPlatformUtils::Initialize(void)'
../.libs/libgdal.so: undefined reference to
`SAXParseException::SAXParseException(SAXParseException
const &)'
../.libs/libgdal.so: undefined reference to
`XMLException type_info function'
../.libs/libgdal.so: undefined reference to
`SAXParseException type_info function'
collect2: ld returned 1 exit status
make[1]: *** [ogrinfo] Error 1
make[1]: Leaving directory
`/tmp/autotmp7/mapserver/gdal-cvs-040129/ogr'
make: *** [ogr-apps] Error 2
# exit

I have already put my xerces include and lib in
ld.so.conf and I can find them by ldconfig.  I am
running out of idea actually.  Could anyone help me on
this build problem.  Any help would be greatly
appreciated.

Thanks in advance!

__________________________________
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster
http://search.yahoo.com



More information about the mapserver-users mailing list