[gdal-dev] Error in libjasper.a during 'make' in gdal 1.5.2: relocation R_X86_64_32 against `a local symbol' can not be used

Patton, Eric epatton at nrcan.gc.ca
Thu Sep 11 13:17:46 EDT 2008


I've recently compiled and installed proj 4.6.1, geos 3.0.0, and jasper 1.900.1 without any errors.

gdal configure progresses cleanly:

./configure \
--with-libz=internal \
--enable-largefile \
--with-pcraster=internal \
--with-png=internal \
--with-libtiff=internal \
--with-geotiff=internal \
--with-jpeg=internal \
--with-gif=internal \
--with-sqlite3=yes \
--with-jasper=/usr/local/

GDAL is now configured for x86_64-unknown-linux-gnu

  Installation directory:    /usr/local
  C compiler:                gcc -g -O2
  C++ compiler:              g++ -g -O2

  LIBTOOL support:           yes

  LIBZ support:              internal
  GRASS support:             no
  CFITSIO support:           no
  PCRaster support:          internal
  NetCDF support:            yes
  LIBPNG support:            internal
  LIBTIFF support:           internal (BigTIFF=yes)
  LIBGEOTIFF support:        internal
  LIBJPEG support:           internal
  LIBGIF support:            internal
  OGDI support:              no
  HDF4 support:              no
  HDF5 support:              no
  Kakadu support:            no
  JasPer support:            yes (GeoJP2=yes)
  ECW support:               no
  MrSID support:             no
  GRIB support:              no
  cURL support (wms/wcs/...):no
  PostgreSQL support:        yes
  MySQL support:             no
  Xerces-C support:            no
  Expat support:             yes
  ODBC support:              no
  PGeo support:              no
  OCI support:               no
  SDE support:               no
  DODS support:              no
  SQLite support:            yes
  DWGdirect support          no
  PANORAMA GIS support:      no
  INFORMIX DataBlade support:no
  GEOS support:              yes


  Old-gen python          no
  SWIG Bindings:          no

  Statically link PROJ.4:    no
  enable OGR building:       yes
  enable pthread support:    no
  hide internal symbols:     no

However, make fails with the following error:

/usr/bin/ld: /usr/local/lib/libjasper.a(jas_malloc.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/gdal-1.5.2'
make: *** [check-lib] Error 2

Any ideas on what this error means? If I were to recompile with '-fPIC', what would be the correct command invocation for this? 


Thanks,

~ Eric.




More information about the gdal-dev mailing list