[postgis-users] Solaris 8, postgis 0.8.0, pg 7.4 compile error
David Valentine
valentine at library.ucsb.edu
Wed Dec 3 13:44:16 PST 2003
Same error on different machine.
g++ line is missing '-fPIC' add this got it to compile (now dead at the
loader, which can be commented out)
#
g++ -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes -fPIC -g -fexception
s -I. -DFRONTEND -DSYSCONFDIR='"/usr/local/pgsql/etc"' -DUSE_VERSION=74 -I/u
sr/local/include/geos -DUSE_GEOS -I/usr/local/include -DUSE_PROJ -I../../src
/include -c -o postgis_geos_wrapper.o postgis_geos_wrapper.cpp
# make
ar crs libpostgis.a postgis_debug.o postgis_ops.o postgis_fn.o
postgis_inout.o postgis_proj.o postgis_chip.o postgis_transform.o
postgis_gist_72.o postgis_estimate.o postgis_geos.o postgis_geos_wrapper.o
postgis_algo.o
ranlib libpostgis.a
gcc -shared -h libpostgis.so.0 postgis_debug.o postgis_ops.o postgis_fn.o
postgis_inout.o postgis_proj.o postgis_chip.o postgis_transform.o
postgis_gist_72.o postgis_estimate.o postgis_geos.o postgis_geos_wrapper.o
postgis_algo.o -L../../src/port -L../../src/port -lstdc++ -L/usr/local/lib
-lgeos -L/usr/local/lib -lproj -R/usr/local/pgsql/lib -o libpostgis.so.0.8
rm -f libpostgis.so.0
ln -s libpostgis.so.0.8 libpostgis.so.0
rm -f libpostgis.so
ln -s libpostgis.so.0.8 libpostgis.so
[...]
-----------original output-----------------
[...]
g++ -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes -Wmissing-declaratio
ns -g -fexceptions -I. -DFRONTEND -DSYSCONFDIR='"/usr/local/pgsql/etc"' -
DUSE_VERSION=74 -I/usr/local/include/geos -DUSE_GEOS -I/usr/local/include -D
USE_PROJ -I../../src/include -c -o postgis_geos_wrapper.o
postgis_geos_wrapper.cpp
cc1plus: warning: "-Wmissing-declarations" is valid for C/ObjC but not for
C++
gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes -Wmissing-declaratio
ns -g -fexceptions -I. -DFRONTEND -DSYSCONFDIR='"/usr/local/pgsql/etc"' -
DUSE_VERSION=74 -I/usr/local/include/geos -DUSE_GEOS -I/usr/local/include -D
USE_PROJ -DUSE_STATS -fPIC -I../../src/include -c -o postgis_algo.o
postgis_algo.c
ar crs libpostgis.a postgis_debug.o postgis_ops.o postgis_fn.o
postgis_inout.o postgis_proj.o postgis_chip.o postgis_transform.o
postgis_gist_72.o postgis_estimate.o postgis_geos.o postgis_geos_wrapper.o
postgis_algo.o
ranlib libpostgis.a
gcc -shared -h libpostgis.so.0 postgis_debug.o postgis_ops.o postgis_fn.o
postgis_inout.o postgis_proj.o postgis_chip.o postgis_transform.o
postgis_gist_72.o postgis_estimate.o postgis_geos.o postgis_geos_wrapper.o
postgis_algo.o -L../../src/port -L../../src/port -lstdc++ -L/usr/local/lib
-lgeos -L/usr/local/lib -lproj -R/usr/local/pgsql/lib -o libpostgis.so.0.8
Text relocation remains referenced
against symbol offset in file
---------------------------------------
----- Original Message -----
From: "David Valentine" <valentine at library.ucsb.edu>
To: "PostGIS Users Discussion" <postgis-users at postgis.refractions.net>
Sent: Monday, December 01, 2003 11:45 PM
Subject: Re: [postgis-users] Solaris 8, postgis 0.8.0, pg 7.4 compile error
> all the latest goodies from sunfreeware.com
> gcc3.3.2, binutils, coreutils, bison, flex, m4, make
> libgcc 3.3 (even though it should not be needed)
>
> tried aliasing ld, ar,ranlib, as to /usr/ccs/bin versions,
>
> trying on a different machine on the next attempt.
>
>
> On Dec 1, 2003, at 9:04 PM, Paul Ramsey wrote:
>
> > Do you have the GNU stdc++ libraries installed?
> > Just guessing wildly here... I got a clean Solaris compile (Solaris
> > 6!) but I had to make sure I had *all* the GNU tools, linker,
> > compiler, libraries, etc, not just some.
> >
> > David Valentine wrote:
> >> solaris8
> >> gcc 3.3.2
> >> postgis 0.8.0
> >> pg 7.4
> >> geos-1.0
> >> proj-4.4.7
> >> LD_LIBRARY_PATH=/usr/local/ssl/lib:/usr/local/lib:/usr/lib:/lib:/usr/
> >> ccs/lib
> >> PATH=/usr/local/pgsql/bin:/usr/local/ant/bin:/usr/sbin:/usr/local/
> >> sbin: /usr/
> >> local/bin:/usr/bin:/usr/ccs/bin
> >> PG_HOME=/usr/local/pgsql
> >> GEOS_DIR=/usr/local
> >> I've done:
> >> LDFLAGS=-lstdc++ ./configure
> >> # cd /usr/local/src/postgresql-7.4/contrib/postgis-cvs
> >> # /usr/local/bin/make
> >> [snip]
> >> gcc -shared -h libpostgis.so.0 postgis_debug.o postgis_ops.o
> >> postgis_fn.o
> >> postgis_inout.o postgis_proj.o postgis_chip.o postgis_transform.o
> >> postgis_gist_72.o postgis_estimate.o postgis_geos.o
> >> postgis_geos_wrapper.o
> >> postgis_algo.o -L../../src/port -L../../src/port -lstdc++
> >> -L/usr/local/lib
> >> -lgeos -L/usr/local/lib -lproj -R/usr/local/pgsql/lib -o
> >> libpostgis.so.0.8
> >> Text relocation remains referenced
> >> against symbol offset in file
> >> <unknown> 0x2a28 postgis_geos_wrapper.o
> >> <unknown> 0x2a2c postgis_geos_wrapper.o
> >> <unknown> 0x2a30 postgis_geos_wrapper.o
> >> <unknown> 0x2a34 postgis_geos_wrapper.o
> >> <unknown> 0x2a38 postgis_geos_wrapper.o
> >> <unknown> 0x2a3c postgis_geos_wrapper.o
> >> <unknown> 0x2a40 postgis_geos_wrapper.o
> >> free 0x33d8 postgis_geos_wrapper.o
> >> NOTICE_MESSAGE 0x214 postgis_geos_wrapper.o
> >> [snip]
> >> _Unwind_Resume 0x414c postgis_geos_wrapper.o
> >> _Unwind_Resume 0x4258 postgis_geos_wrapper.o
> >> ld: fatal: relocations remain against allocatable but non-writable
> >> sections
> >> collect2: ld returned 1 exit status
> >> make: *** [libpostgis.so.0.8] Error 1
> >> _______________________________________________
> >> postgis-users mailing list
> >> postgis-users at postgis.refractions.net
> >> http://postgis.refractions.net/mailman/listinfo/postgis-users
> >
> >
> > --
> > __
> > /
> > | Paul Ramsey
> > | Refractions Research
> > | Email: pramsey at refractions.net
> > | Phone: (250) 885-0632
> > \_
> >
> >
> > _______________________________________________
> > postgis-users mailing list
> > postgis-users at postgis.refractions.net
> > http://postgis.refractions.net/mailman/listinfo/postgis-users
>
>
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
>
More information about the postgis-users
mailing list