[gdal-dev] build gdal-1.6.0 on CentOS Linux error
Frank Warmerdam
warmerdam at pobox.com
Tue Apr 21 00:27:08 EDT 2009
Gong, Shawn (Contractor) wrote:
> Hi list,
>
> I am trying to build gdal-1.6.0 on a 64-bit CentOS Linux.
>
> Error message shows that –fPIC must be used.
>
> However after I have added –fPIC in HDF4.2r4’s CFLAGS in Makefile and in
> Gdal CFLAGS in GDALmake.opt, the error persists:
>
> /usr/bin/ld: /home/sgong/build_openev/dist/lib/libmfhdf.a(mfsd.o):
> relocation R_X86_64_32 against `a local symbol' can not be used when
> making a shared object; recompile with -fPIC
>
> Would someone help?
Shawn,
I would guess you haven't rebuilt all portion of the HDF libraries with
-fPIC. I'd keep working on hdf makefiles.
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent
More information about the gdal-dev
mailing list