[gdal-dev] Compilation error

gary lists at lazygranch.com
Fri Mar 28 01:10:14 EDT 2008


I did the configure --with-fPIC, though it didn't show up as an option. 
Anyway, any idea why gdal isn't compiling?
---------------------------------------------------------------------

make[1]: Leaving directory `/usr/local/src/gdal/gdal-1.5.1/ogr'
make libgdal.la
make[1]: Entering directory `/usr/local/src/gdal/gdal-1.5.1'
/bin/sh /usr/local/src/gdal/gdal-1.5.1/libtool --mode=link      g++ 
-L/usr/local/lib -lgeos_c -L/usr/local/lib -lexpat -ljasper -lpng -lz 
-lm -lrt -ldl      -o libgdal.la 
/usr/local/src/gdal/gdal-1.5.1/frmts/o/*.lo 
/usr/local/src/gdal/gdal-1.5.1/gcore/*.lo 
/usr/local/src/gdal/gdal-1.5.1/port/*.lo 
/usr/local/src/gdal/gdal-1.5.1/alg/*.lo 
/usr/local/src/gdal/gdal-1.5.1/ogr/ogrsf_frmts/o/*.lo 
./ogr/ogrgeometryfactory.lo ./ogr/ogrpoint.lo ./ogr/ogrcurve.lo 
./ogr/ogrlinestring.lo ./ogr/ogrlinearring.lo ./ogr/ogrpolygon.lo 
./ogr/ogrutils.lo ./ogr/ogrgeometry.lo ./ogr/ogrgeometrycollection.lo 
./ogr/ogrmultipolygon.lo ./ogr/ogrsurface.lo ./ogr/ogrmultipoint.lo 
./ogr/ogrmultilinestring.lo ./ogr/ogr_api.lo ./ogr/ogrfeature.lo 
./ogr/ogrfeaturedefn.lo ./ogr/ogrfeaturequery.lo 
./ogr/ogrfeaturestyle.lo ./ogr/ogrfielddefn.lo 
./ogr/ogrspatialreference.lo ./ogr/ogr_srsnode.lo ./ogr/ogr_srs_proj4.lo 
./ogr/ogr_fromepsg.lo ./ogr/ogrct.lo ./ogr/ogr_opt.lo 
./ogr/ogr_srs_esri.lo ./ogr/ogr_srs_pci.lo ./ogr/ogr_srs_usgs.lo 
./ogr/ogr_srs_dict.lo ./ogr/ogr_srs_panorama.lo ./ogr/ogr_srs_erm.lo 
./ogr/swq.lo ./ogr/ogr_srs_validate.lo ./ogr/ogr_srs_xml.lo 
./ogr/ograssemblepolygon.lo ./ogr/ogr2gmlgeometry.lo 
./ogr/gml2ogrgeometry.lo \
             -rpath /usr/local/lib \
             -no-undefined \
             -version-info 13:1:12
libtool: link: rm -fr  .libs/libgdal.la.lnkscript
libtool: link: creating GNU ld script: .libs/libgdal.la.lnkscript
libtool: link: g++ -shared -nostdlib 
/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../lib64/crti.o 
/usr/lib64/gcc/x86_64-suse-linux/4.1.2/crtbeginS.o 
.libs/libgdal.la.lnkscript  -L/usr/local/lib /usr/local/lib/libgeos_c.so 
/usr/local/lib/libgeos.so /usr/local/lib/libexpat.so 
/usr/local/lib/libjasper.a /usr/lib64/libpng12.so -lz -lrt -ldl 
-L/usr/lib64/gcc/x86_64-suse-linux/4.1.2 
-L/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../lib64 
-L/lib/../lib64 -L/usr/lib/../lib64 
-L/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/lib 
-L/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../.. -lstdc++ -lm -lc 
-lgcc_s /usr/lib64/gcc/x86_64-suse-linux/4.1.2/crtendS.o 
/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../lib64/crtn.o 
   -Wl,-soname -Wl,libgdal.so.1 -o .libs/libgdal.so.1.12.1
/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/ld: 
/usr/local/lib/libjasper.a(jas_image.o): relocation R_X86_64_32 against 
`a local symbol' can not be used when making a shared object; recompile 
with -fPIC
/usr/local/lib/libjasper.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[1]: *** [libgdal.la] Error 1
make[1]: Leaving directory `/usr/local/src/gdal/gdal-1.5.1'
make: *** [check-lib] Error 2
suse:/usr/local/src/gdal/gdal-1.5.1 #


More information about the gdal-dev mailing list