[Gdal-dev] Compile latest cvs under Solaris 2.8

Oliver Wesp wesp at gdv.com
Wed Oct 8 05:07:28 EDT 2003


Dear List,

I'm trying to build latest cvs (gdal-cvs-031007) on my solaris 2.8 box 
which gives me the following error:

gmake[1]: Entering directory `/export/home/oliver/gdal-cvs-031007/ogr'
/bin/sh ../libtool --mode=compile g++ -Wall  -O2   -I../port 
-Iogrsf_frmts -I.  -c -o ogrinfo.o ogrinfo.cpp
 g++ -Wall -O2 -I../port -Iogrsf_frmts -I. -c ogrinfo.cpp  -fPIC -DPIC 
-o .libs/ogrinfo.o
 g++ -Wall -O2 -I../port -Iogrsf_frmts -I. -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 
/usr/local/lib/libjpeg.so -lpng -lz -ldl /usr/local/lib/./libstdc++.so 
-L/usr2/SOURCES/S8/gcc-3.2.2/objdir/sparc-sun-solaris2.8/libstdc++-v3/src 
-L/usr2/SOURCES/S8/gcc-3.2.2/objdir/sparc-sun-solaris2.8/libstdc++-v3/src/.libs 
-L/usr2/SOURCES/S8/gcc-3.2.2/objdir/gcc 
-L/usr/local/sparc-sun-solaris2.8/bin 
-L/usr/local/sparc-sun-solaris2.8/lib -Wl,-R -Wl,/usr/local/lib -Wl,-R 
-Wl,/usr/local/lib/.
ld: warning: file 
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.2.2/../../../libstdc++.so: 
linked to /usr/local/lib/./libstdc++.so: attempted multiple inclusion of 
file
Undefined                       first referenced
 symbol                             in file
OCICollAppend                       ../.libs/libgdal.so
OCIErrorGet                         ../.libs/libgdal.so
OCINumberToInt                      ../.libs/libgdal.so
OCIStmtPrepare                      ../.libs/libgdal.so
OCIHandleAlloc                      ../.libs/libgdal.so
OCIBindByName                       ../.libs/libgdal.so
OCICollTrim                         ../.libs/libgdal.so
OCIAttrGet                          ../.libs/libgdal.so
OCIDefineObject                     ../.libs/libgdal.so
GDALRasterBand::FreeClassNames(char**, int*)../.libs/libgdal.so
OCIObjectPin                        ../.libs/libgdal.so
OCICollGetElem                      ../.libs/libgdal.so
OCINumberToReal                     ../.libs/libgdal.so
OCIDescribeAny                      ../.libs/libgdal.so
OCIEnvCreate                        ../.libs/libgdal.so
OCIBindObject                       ../.libs/libgdal.so
OCIParamGet                         ../.libs/libgdal.so
OCINumberFromReal                   ../.libs/libgdal.so
OCINumberFromInt                    ../.libs/libgdal.so
OCIStmtExecute                      ../.libs/libgdal.so
OCILogoff                           ../.libs/libgdal.so
OCILogon                            ../.libs/libgdal.so
OCIStmtFetch                        ../.libs/libgdal.so
GDALRasterBand::GetClassNames(int*)   ../.libs/libgdal.so
OCICollSize                         ../.libs/libgdal.so
OCIObjectNew                        ../.libs/libgdal.so
OCIHandleFree                       ../.libs/libgdal.so
OCIDefineByPos                      ../.libs/libgdal.so
ld: fatal: Symbol referencing errors. No output written to .libs/ogrinfo
collect2: ld returned 1 exit status
gmake[1]: *** [ogrinfo] Error 1
gmake[1]: Leaving directory `/export/home/oliver/gdal-cvs-031007/ogr'
gmake: *** [ogr-apps] Error 2

Is anbody able to give a hint about what went wrong. Thanks in advance.

Oliver





More information about the Gdal-dev mailing list