[postgis-users] Two solaris 10 compilation problems

Nick Bower nick_bower at fastmail.fm
Wed Jul 23 21:56:22 PDT 2008


Please someone update the docs;

http://postgis.refractions.net/documentation/manual-1.3/ch02.html#id2974241

with this a version reflecting this problem;

http://postgis.refractions.net/pipermail/postgis-users/2008-March/018708.html



On Thu, 24 Jul 2008 11:29:47 +0800, "Nick Bower"
<nick_bower at fastmail.fm> said:
> Hi.  Solaris 10 comes with a Postgresql 8.2 pre-installed, and I've used
> blastwave to obtain the proj4 and geos libraries.  Yet trying to compile
> with latest Sun developer tools fails;
> 
> $ ./configure --with-pgsql=/usr/postgres/8.2/bin/pg_config
> --with-proj=/opt/csw --without-geos
> 
> checking for gcc... /usr/bin/cc
> ...
>   SUMMARY
>  -------------------------------------------------------
> 
>  HOST_OS: solaris2.10
> 
>    PGSQL: /usr/postgres/8.2/bin/pg_config
>     PROJ: prefix=/opt/csw libdir=/opt/csw/lib
>    ICONV: 1
> 
>  PORTNAME: solaris
>    PREFIX: /usr/postgres/8.2
>   EPREFIX: ${prefix}
>       DOC: /usr/postgres/8.2/doc/contrib
>      DATA: ${datarootdir}
>       MAN: ${datarootdir}/man
>       BIN: /usr/postgres/8.2/bin
>       EXT: /usr/postgres/8.2/lib (\$$libdir)
>  -------------------------------------------------------
> 
> nick at sedastest% gmake
> 
> gmake -C lwgeom
> gmake[1]: Entering directory `/apps/src/postgis/postgis-1.3.3/lwgeom'
> cpp -P -traditional-cpp -DUSE_VERSION=82 -DUSE_PROJ lwpostgis.sql.in |
> sed -e 's:@MODULE_FILENAME@:\$libdir/liblwgeom:g;s:@POSTGIS_VERSION@:1.3
> USE_GEOS=0 USE_PROJ=1
> USE_STATS=1:g;s:@POSTGIS_SCRIPTS_VERSION@:1.3.3:g;s/@POSTGIS_BUILD_DATE@/2008-07-24
> 03:16:58/g' | grep -v '^#' > ../lwpostgis.sql
> cpp -P -traditional-cpp -DUSE_VERSION=82 -DUSE_PROJ lwpostgis.sql.in |
> sed -e 's#@MODULE_FILENAME@#\$libdir/liblwgeom#g;s#@POSTGIS_VERSION@#1.3
> USE_GEOS=0 USE_PROJ=1
> USE_STATS=1#g;s#@POSTGIS_SCRIPTS_VERSION@#1.3.3#g;s/@POSTGIS_BUILD_DATE@/2008-07-24
> 03:16:58/g' | grep -v '^#' > ../regress/lwpostgis.sql
> /opt/csw/bin/perl ../utils/postgis_proc_upgrade.pl ../lwpostgis.sql >
> ../lwpostgis_upgrade.sql
> /usr/bin/cc -DUSE_VERSION=82 -DPOSTGIS_LIB_VERSION='"1.3.3"'
> -DPOSTGIS_VERSION='"1.3 USE_GEOS=0 USE_PROJ=1 USE_STATS=1"'
> -DPOSTGIS_SCRIPTS_VERSION='"1.3.3"' -DPOSTGIS_BUILD_DATE='"2008-07-24
> 03:16:58"' -I/opt/csw/include -DUSE_PROJ 
> -I/usr/postgres/8.2/include/server -DAUTOCACHE_BBOX=1  -DUSE_STATS -Wall
> -g -O2 -fPIC -fexceptions    -c -o measures.o measures.c
> cc: illegal option -Wall
> gmake[1]: *** [measures.o] Error 1
> gmake[1]: Leaving directory `/apps/src/postgis/postgis-1.3.3/lwgeom'
> gmake: *** [liblwgeom] Error 2
> 
> cc is correctly detected, yet it's attempting a -Wall?  That's problem
> 1, so I switched over to gcc...
> 
> $ export CC=/usr/sfw/bin/gcc; ./configure....
> 
> $ gmake
> $ sudo gmake install
> [all ok]
> 
> yet when doing this...
> 
> $ /usr/postgres/8.2/bin/psql -d sedas -f ./lwpostgis.sql
> 
> psql:lwpostgis.sql:53: NOTICE:  type "histogram2d" is not yet defined
> DETAIL:  Creating a shell type definition.
> psql:lwpostgis.sql:53: ERROR:  could not load library
> "/usr/postgres/8.2/lib/lib
> lwgeom.so": ld.so.1: postgres: fatal: relocation error: file
> /usr/postgres/8.2/l
> ib/liblwgeom.so: symbol pj_set_searchpath: referenced symbol not found
> 
> $ crle
> 
> Configuration file [version 4]: /var/ld/ld.config
>   Default Library Path (ELF):  
>   /lib:/usr/lib:/apps/common/lib:/usr/postgres/8.2/lib:/opt/csw/lib:/usr/sfw/lib
>   Trusted Directories (ELF):    /lib/secure:/usr/lib/secure  (system
>   default)
> 
> Any ideas?  Thanks, Nick.
> 
> -- 
>   Nick Bower
>   nick_bower at fastmail.fm
> 
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
-- 
  Nick Bower
  nick_bower at fastmail.fm




More information about the postgis-users mailing list