[Gdal-dev] Gdal compiling error
Frank Warmerdam
warmerdam at pobox.com
Fri Sep 8 22:30:07 EDT 2006
On 9/8/06, Yang, Richard <dyang at nrcan.gc.ca> wrote:
>
>
>
> I tried to build gdal-1.3.2 on solaris2.8 and encountered an error:
>
> ld: fatal: relocations remain against allocatable but non-writable sections
> collect2: ld returned 1 exit status
> make[1]: *** [libgdal.la] Error 1
> make[1]: Leaving directory `/data/lmn20/Emergy/gdal'
> make: *** [check-lib] Error 2
> 2257.53u 418.81s 49:32.25 90.0%
>
> What "non-writable sections collect2" means? How to walk around it?
Richard,
I'm not really sure what this means. Things to keep in mind
on Solaris are:
o Care with 32bit vs. 64bit environment.
o I believe -fPIC is manditory for shared libraries.
However, i'm not at all sure you are running into either of those.
All I can advise is:
1) Try configuring --without-libtool. In theory libtool helps work
around platform specific problems. But when it fails it can
be very hard (for me at least) to figure out why.
2) Try reducing he number of external libraries used. For
instance, if external postres libs are being picked up,
consider configuring --without-pg if only to narrow down
what may be the issue. Often some sort of mismatched
libraries getting linked in is an issue.
Some on else also recently mentioned configuring
--without-unix-stdio-64 which could help, though you
would presumably be limited to files up to 2GB.
Once you narrow down what change gets the build
working, we can consider how that feature can be
re-enabled if you need it.
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