[postgis-users] Solaris 8, postgis 0.8.0, pg 7.4 compile error

Paul Ramsey pramsey at refractions.net
Mon Dec 1 21:04:04 PST 2003


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
      \_




More information about the postgis-users mailing list