[Gdal-dev] Problems Building gdal 1.2.0; 1.2.1 using SUN forte CC

Eric Dönges Eric.Doenges at rcs.ei.tum.de
Wed Jun 30 02:52:57 EDT 2004


Am 29.06.2004 um 17:39 schrieb Daniel Mac:

> 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

It looks like libtool isn't linking against the standard C++ library 
and you have to
include that manually as well.

> trying to build gdal 1.2.0 WITHOUT libtool, i get undefined symbol
> SetCSVFilenameHook                  /home/External/gdal-1.2.0/libgdal.a
> (geotiff.o)

You should probably get the CVS version of GDAL. port/cpl_cvs.cpp 
contains the
following commit log entry:

  * $Log: cpl_csv.cpp,v $
  * Revision 1.10  2004/04/27 14:28:49  warmerda
  * Avoid Solaris C++ problems with SetCSVFilenameHook().

If using the current CVS isn't an option for you, I can send you the 
current file per
private EMail if you want.

Obligatory disclaimer: it's been years since I've worked on a Solaris 
system, and I'm
no expert on GDAL, so I may be totally wrong.

With regards,
Eric




More information about the Gdal-dev mailing list