[postgis-users] Fatal: Symbol pj_set_searchpath

Christian Schaffer christian.schaffer at muenchen.de
Thu Mar 6 01:42:29 PST 2008


Hi list,
hello Mark and Frank,

thanks for your replies.
I backed out the precompiled proj 4.4.8, compiled the latest version of 
proj (4.6.0) from scratch and adapted the LD_LIBRARY_PATH. After that, I 
configured and compiled postgis anew with minimal options:
./configure \
--with-pgsql=/opt/csw/postgresql/bin/pg_config \
--with-proj=/usr/local/proj-4.6.0 \
--prefix=/usr/local/postgis-1.3.2

Trying to import lwpostgis.sql now throws the following error:
# /opt/csw/postgresql/bin/psql -d template_postgis -f test.txt -U postgres
psql:test.txt:4: NOTICE:  type "histogram2d" is not yet defined
DETAIL:  Creating a shell type definition.
psql:test.txt:4: ERROR:  could not load library 
"/usr/local/postgis-1.3.2/lib/liblwgeom.so": ld.so.1: postgres: Schwerer 
Fehler: libproj.so.0: Öffnen fehlgeschlagen: Datei oder Verzeichnis 
nicht gefunden

If I issue ldd against liblwgeom.so, it knows where to find libproj.so.0:
# ldd liblwgeom.so
        libproj.so.0 =>  /usr/local/proj-4.6.0/lib/libproj.so.0
        libgcc_s.so.1 =>         /opt/csw/lib/libgcc_s.so.1
        libm.so.2 =>     /lib/libm.so.2
        libc.so.1 =>     /lib/libc.so.1

I?d really appreciate, if you gave me some hints on what I might be 
doing wrong here.
Thanks in advance, best regards,
Chris

Frank Warmerdam schrieb:
> Christian Schaffer wrote:
>> Hi list,
>>
>> compiling Postgis 1.3.2 on a Solaris 10 x86_64, I?m running into a 
>> fatal error while executing lwpostgis.sql.
>> My prerequisites are:
>> Solaris 10, x86_64
>> Postgres 8.2.6 (packaged for Solaris by www.blastwave.org)
>> proj 4.4.8 (packaged for Solaris by www.blastwave.org)
>> geos 3.0.0 (compiled myself)
> ...
>> This is the output:
>> # psql -d template_postgis -f test.txt -U postgres
>> psql:test.txt:4: NOTICE:  type "histogram2d" is not yet defined
>> DETAIL:  Creating a shell type definition.
>> psql:test.txt:4: ERROR:  could not load library 
>> "/usr/local/postgis-1.3.2/lib/liblwgeom.so": ld.so.1: postgres: 
>> Schwerer Fehler: Verschiebungsfehler: Datei 
>> /usr/local/postgis-1.3.2/lib/liblwgeom.so: Symbol pj_set_searchpath: 
>> referenziertes Symbol nicht gefunden
>>
>> Google didn?t tell me much about this error. So I?d appreciate, if 
>> you were able to help.
>
> Chris,
>
> It appears that pj_searchpath() was added to PROJ.4 in 4.4.9 (back in 
> 2004!)
>
> I think you will need to either upgrade to a newer PROJ.4 or comment 
> out this
> call which may impede finding datum shift files.
>
> Best regards 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20080306/5ecff9e6/attachment.html>


More information about the postgis-users mailing list