Subject: Re: gdal on amd64 needs -fPIC? - msg#00231
List: gis.gdal.devel
Vincent Schut wrote:
More info:
both netcdf/hdf and gdal need -fPIC. I tried compiling gdal with -fPIC while
having hdf4 compiled without, and that didn't work out.
Might be that gdal when compiled without hdf4 support doesn't need -fPIC, but
as I need hdf4 support I didn't try that yet.
Vincent,
The -fPIC causes object files to be produced using Position Independent Code.
Basically, all jump instructions are relative instead of absolute jumps.
This isn't normally an issue on Intel, but is required for shared libraries
on Space and several other platforms. I'm not sure why it is required for
AMD 64bit; however, given that it is I am surprised that libtool doesn't
already take care of it.
In non-libtool builds we automatically try and add -fPIC and use it if it
doesn't cause a problem.
Alessandro, do we need to update our libtool to address this?
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@xxxxxxxxx
light and sound - activate the windows |
http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent
Was this page helpful?
Thread at a glance:
Previous Message by Date:
click to view message preview
Re: gdal on amd64 needs -fPIC?
More info:
both netcdf/hdf and gdal need -fPIC. I tried compiling gdal with -fPIC while
having hdf4 compiled without, and that didn't work out.
Might be that gdal when compiled without hdf4 support doesn't need -fPIC, but
as I need hdf4 support I didn't try that yet.
Vincent.
On Tuesday 30 March 2004 12:50, Vincent Schut wrote:
> I just tried to compile gdal on my new amd64. It complained about needing
> -fPIC in the final install phase (where all libs are archived together into
> one I think). After I recompiled netcdf and hdf4 with -fPIC, I tried to
> compile gdal with -fPIC and then it compiled fine. To do this, I both
> changed GDALmake.opt and libtool.
> I will investigate some more, e.g. do only hdf/netcdf need -fPIC or also
> GDAL (this seemed to be the case, but I'm not yet sure).
> Does it sound likely that gdal needs -fPIC on amd64? I really need to check
> out what this -fPIC thing does...
> Frank and other developers, your comments please...?
> If you need some amd64 testing, please inform me.
>
> Cheers,
--
-----------------------------
Vincent Schut
SarVision B.V.
Wageningen, The Netherlands
www.sarvision.com
Next Message by Date:
click to view message preview
Re: GDAL_INCLUDE needs -I$(GDAL_ROOT)/alg for usgsdem format
Vincent Schut wrote:
Appears that in GDALmake.opt GDAL_INCLUDE needs -I$(GDAL_ROOT)/alg for usgsdem
format, because it wants to include gdalwarper.h which is in gcore/alg.
Vincent,
Fixed in CVS. Sorry about that.
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@xxxxxxxxx
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent
Previous Message by Thread:
click to view message preview
Re: gdal on amd64 needs -fPIC?
More info:
both netcdf/hdf and gdal need -fPIC. I tried compiling gdal with -fPIC while
having hdf4 compiled without, and that didn't work out.
Might be that gdal when compiled without hdf4 support doesn't need -fPIC, but
as I need hdf4 support I didn't try that yet.
Vincent.
On Tuesday 30 March 2004 12:50, Vincent Schut wrote:
> I just tried to compile gdal on my new amd64. It complained about needing
> -fPIC in the final install phase (where all libs are archived together into
> one I think). After I recompiled netcdf and hdf4 with -fPIC, I tried to
> compile gdal with -fPIC and then it compiled fine. To do this, I both
> changed GDALmake.opt and libtool.
> I will investigate some more, e.g. do only hdf/netcdf need -fPIC or also
> GDAL (this seemed to be the case, but I'm not yet sure).
> Does it sound likely that gdal needs -fPIC on amd64? I really need to check
> out what this -fPIC thing does...
> Frank and other developers, your comments please...?
> If you need some amd64 testing, please inform me.
>
> Cheers,
--
-----------------------------
Vincent Schut
SarVision B.V.
Wageningen, The Netherlands
www.sarvision.com
Next Message by Thread:
click to view message preview
Re: gdal on amd64 needs -fPIC?
Frank,
> I'm not sure why it is
> required for AMD 64bit; however, given that it is I am surprised that
> libtool doesn't already take care of it.
>
> In non-libtool builds we automatically try and add -fPIC and use it if it
> doesn't cause a problem.
>
> Alessandro, do we need to update our libtool to address this?
i'll have a look, however grep x86.64 says that at least some support is
already present in the version of libtool in cvs (and released).
cheers,
alessandro