[Ubuntu] “libSFCGAL.so.1: undefined symbol” with Postgis 2.2.1

Sebastiaan Couwenberg sebastic at xs4all.nl
Mon Aug 8 02:24:40 PDT 2016


Hi all,

For those of you not aware of the previous discussion on the postgis
list, see:

 https://lists.osgeo.org/pipermail/postgis-devel/2016-August/025887.html

And the issue on StackExachange:

 https://gis.stackexchange.com/questions/204575/libsfcgal-so-1-undefined-symbol-upgrading-to-postgis-2-2-2-and-2-2-1

On 08/08/2016 11:11 AM, Luí­s de Sousa wrote:
> Dear all,
> 
> I have recently upgraded a workstation to Ubuntu 16.04 and since then I am not able to use PostGis. I have the following set up (from the unstable PPA):
> 
> - postgresql-9.5
> 
> - postgresql-9.5-postgis-2.2 (2.2.1+dfsg-3~xenial0)
> 
> - postgis (2.2.1+dfsg-3~xenial0)
> 
> 
> 
> Whenever I try to create the extension or use anything related to PostGIS I get this error:
> # CREATE EXTENSION postgis; ERROR: could not load library "/usr/lib/postgresql/9.5/lib/postgis-2.2.so": /usr/lib/x86_64-linux-gnu/libSFCGAL.so.1: undefined symbol: _ZN5osgDB13writeNodeFileERKN3osg4NodeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKNS_7OptionsE
> 
> However, I have the SFCGAL headers and debug symbols installed:
> 
> $ dpkg -l | grep sfcgal ii libsfcgal-dev 1.2.2-1 amd64 Library for ISO 19107:2013 and OGC SFA 1.2 for 3D operations (dev part) ii libsfcgal1 1.2.2-1 amd64 Library for ISO 19107:2013 and OGC SFA 1.2 for 3D operations (runtime part) ii sfcgal-bin 1.2.2-1 amd64 Simple viewer for SFCGAL library ii sfcgal-dbg 1.2.2-1 amd64 Debug symbols for SFCGAL
> 
> 
> What is going wrong? Thank you,

You have not answered the OpenSceneGraph related question on
StackExchange. Please post the output for:

 ldd /usr/lib/x86_64-linux-gnu/libSFCGAL.so

And:

 dpkg -l | egrep "open(scenegraph|threads)"

You probably have the xenial OSG packages installed instead of those
rebuild with the GDAL packages from UbuntuGIS.

Kind Regards,

Bas

-- 
 GPG Key ID: 4096R/6750F10AE88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146  50D1 6750 F10A E88D 4AF1


More information about the Ubuntu mailing list