[Gdal-dev] Problems Building gdal 1.2.0; 1.2.1 using SUN forte CC
Daniel Mac
daniel.mac at elantech-inc.com
Tue Jun 29 11:39:00 EDT 2004
Hello,
I was able to build gdal 1.1.9 using the latest version of SUN forte CC, but i
am running into trouble when I try to build gdal 1.2.0 or later (mainly
linking)...
I am using the libtool feature in the makefile, and i set my configure line as
such:
./configure --prefix=/home/External/gdal-1.2.1/ --with-libz=internal
however, upon linking i get undefined symbols
Undefined first referenced
symbol in file
void*operator new[](unsigned) ./frmts/o/.libs/ddfrecord.o
gmtime ./frmts/o/.libs/pngwrite.o (symbol
belongs to implicit dependency /usr/lib/libc.so.1)
calloc ./frmts/o/.libs/EnvisatFile.o (symbol
belongs to implicit dependency /usr/lib/libc.so.1)
atof ./frmts/o/.libs/EnvisatFile.o (symbol
belongs to implicit dependency /usr/lib/libc.so.1)
atoi ./frmts/o/.libs/EnvisatFile.o (symbol
belongs to implicit dependency /usr/lib/libc.so.1)
(there are more, but generally in teh same format)
so I edit the GDALmake.opt file to include -lc for the c standard
libraries...the resultant undefined symbols are:
Undefined first referenced
symbol in file
void*operator new[](unsigned) ./frmts/o/.libs/ddfrecord.o
void __Crun::vector_con(void*,unsigned,unsigned,void(*)(void*),void(*)
(void*)) ./frmts/o/.libs/atlsci_spheroid.o
void operator delete
(void*) ./frmts/o/.libs/aaigriddataset.o
void __Crun::pure_error() ./frmts/o/.libs/pcidskdataset.o
void __Crun::ex_rethrow_q() ./frmts/o/.libs/aaigriddataset.o
void*operator new
(unsigned) ./frmts/o/.libs/aaigriddataset.o
CPLCreateThread ./alg/.libs/gdalwarpoperation.o
void operator delete[](void*) ./frmts/o/.libs/ddfrecord.o
void __Crun::vector_des(void*,unsigned,unsigned,void(*)
(void*)) ./frmts/o/.libs/atlsci_spheroid.o
trying to build gdal 1.2.0 WITHOUT libtool, i get undefined symbol
SetCSVFilenameHook /home/External/gdal-1.2.0/libgdal.a
(geotiff.o)
again I am using cc and CC instead of gcc g++...any help or ideas are greatly
appreciated, thanks...
Dan
More information about the Gdal-dev
mailing list