[gdal-dev] ESRI FileGDB driver causing issues with Postgis build due to packaged libstdc++

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[gdal-dev] ESRI FileGDB driver causing issues with Postgis build due to packaged libstdc++

Andrew Joseph
I'm updating a docker build of gdal/postgis with gdal 3.0.1 and postgis
3.0.0alpha4 on top of a docker image of debian:buster-slim

below is my FileGDB build:

FGDB_BUILD_DIR=/usr/local/FileGDB_API
FGDB_BUNDLE=$BUILD_DIR/fgdb.tar.gz
wget -q -O "$FGDB_BUNDLE"
https://github.com/Esri/file-geodatabase-api/raw/master/FileGDB_API_1.5.1/FileGDB_API_1_5_1-64gcc51.tar.gz
mkdir -p $FGDB_BUILD_DIR
tar -xzf "$FGDB_BUNDLE" -C "$FGDB_BUILD_DIR" --strip-components 1
chown -R root:root ${FGDB_BUILD_DIR}
cd ${FGDB_BUILD_DIR}
echo "$FGDB_BUILD_DIR/lib" > /etc/ld.so.conf.d/filegdbapi.conf
ldconfig
rm -rf ${FGDB_BUNDLE}

When building postgis, I get the following error:

/usr/bin/clang-7: /usr/local/FileGDB_API/lib/libstdc++.so.6: version
`GLIBCXX_3.4.22' not found (required by
/usr/lib/x86_64-linux-gnu/libLLVM-7.so.1)

I know about the issue with older versions of the API and am using the
latest version (1.5.1).
I cannot simply use the OpenFileGDB Driver as I need write support.

Is there any workaround for this?




--
Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html
_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev
Reply | Threaded
Open this post in threaded view
|

Re: ESRI FileGDB driver causing issues with Postgis build due to packaged libstdc++

Even Rouault-2
> /usr/bin/clang-7: /usr/local/FileGDB_API/lib/libstdc++.so.6: version
> `GLIBCXX_3.4.22' not found (required by

Try removing that /usr/local/FileGDB_API/lib/libstdc++.so.6 . It is likely
older than what the rest of your system expects.

--
Spatialys - Geospatial professional services
http://www.spatialys.com
_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev
Reply | Threaded
Open this post in threaded view
|

Re: ESRI FileGDB driver causing issues with Postgis build due to packaged libstdc++

Andrew Joseph
should I delete the libstdc++.so and libstdc++.so.6.0.2.1 files as well?
(sorry I'm unfamiliar with with C/C++)



--
Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html
_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev
Reply | Threaded
Open this post in threaded view
|

Re: ESRI FileGDB driver causing issues with Postgis build due to packaged libstdc++

Even Rouault-2
On jeudi 26 septembre 2019 15:44:11 CEST Andrew Joseph wrote:
> should I delete the libstdc++.so and libstdc++.so.6.0.2.1 files as well?
> (sorry I'm unfamiliar with with C/C++)

Yes any file with libstdc++ in its name (just in /usr/local/FileGDB_API/lib )

--
Spatialys - Geospatial professional services
http://www.spatialys.com
_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev
Reply | Threaded
Open this post in threaded view
|

Re: ESRI FileGDB driver causing issues with Postgis build due to packaged libstdc++

Andrew Joseph
Thanks, that worked!



--
Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html
_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev