#4068 closed defect (fixed)
sfcgal 1.3.3 with CGAL 4.11 doesn't compile against PostGIS
Reported by: | robe | Owned by: | robe |
---|---|---|---|
Priority: | blocker | Milestone: | PostGIS 2.2.8 |
Component: | postgis | Version: | 2.4.x |
Keywords: | Cc: |
Description
I assume this is caused by patch upgrades I did recently.
My recent changes to 2.4 were just script changes for winnie so shouldn't caused this.
Lately debbie is having problems. It's showing just on 2.4, but expect it to show for 2.5 and 2.3 whenever next changes happen.
-------------- Dependencies -------------- GEOS config: /var/lib/jenkins/workspace/geos/rel-3.7.0devw64/bin/geos-config GEOS version: 3.7.0dev GDAL config: /var/lib/jenkins/workspace/gdal/rel-2.1w64/bin/gdal-config GDAL version: 2.1.4 SFCGAL config: /usr/bin/sfcgal-config SFCGAL version: 1.3.1 PostgreSQL config: /var/lib/jenkins/workspace/pg/rel/pg10w64/bin/pg_config PostgreSQL version: PostgreSQL 10.3 PROJ4 version: 50 Libxml2 config: /usr/bin/xml2-config Libxml2 version: 2.9.4 JSON-C support: yes protobuf-c support: yes PCRE support: yes Perl: /usr/bin/perl --------------- Extensions --------------- PostGIS Raster: enabled PostGIS Topology: enabled SFCGAL support: enabled Address Standardizer support: enabled -------- Documentation Generation -------- xsltproc: /usr/bin/xsltproc xsl style sheets: /usr/share/xml/docbook/stylesheet/docbook-xsl dblatex: /usr/bin/dblatex convert: /usr/bin/convert mathml2.dtd: http://www.w3.org/Math/DTD/mathml2/mathml2.dtd /lib/libgeos_c.so -lc -lm -Wl,-rpath -Wl,/var/lib/jenkins/workspace/pg/rel/pg10w64/lib -Wl,-rpath -Wl,/var/lib/jenkins/workspace/gdal/rel-2.1w64/lib -Wl,-rpath -Wl,/var/lib/jenkins/workspace/geos/rel-3.7.0devw64/lib //usr/lib/x86_64-linux-gnu/libSFCGAL.so.1: undefined reference to `operator>>(std::istream&, __mpz_struct*)' //usr/lib/x86_64-linux-gnu/libSFCGAL.so.1: undefined reference to `CORE::BigFloatRep::operator new(unsigned long)' //usr/lib/x86_64-linux-gnu/libSFCGAL.so.1: undefined reference to `CORE::BigFloatRep::toDouble() const' //usr/lib/x86_64-linux-gnu/libSFCGAL.so.1: undefined reference to `CGAL::is_binary(std::basic_ios<char, std::char_traits<char> >&)' //usr/lib/x86_64-linux-gnu/libSFCGAL.so.1: undefined reference to `CGAL::Random::Random(unsigned int)' //usr/lib/x86_64-linux-gnu/libSFCGAL.so.1: undefined reference to `CGAL::ORIGIN' //usr/lib/x86_64-linux-gnu/libSFCGAL.so.1: undefined reference to `operator<<(std::ostream&, __mpz_struct const*)' //usr/lib/x86_64-linux-gnu/libSFCGAL.so.1: undefined reference to `CGAL::is_pretty(std::basic_ios<char, std::char_traits<char> >&)' //usr/lib/x86_64-linux-gnu/libSFCGAL.so.1: undefined reference to `CGAL::assertion_fail(char const*, char const*, int, char const*)' //usr/lib/x86_64-linux-gnu/libSFCGAL.so.1: undefined reference to `CORE::BigIntRep::operator delete(void*, unsigned long)' //usr/lib/x86_64-linux-gnu/libSFCGAL.so.1: undefined reference to `CGAL::Random::Random()' //usr/lib/x86_64-linux-gnu/libSFCGAL.so.1: undefined reference to `CGAL::NULL_VECTOR' //usr/lib/x86_64-linux-gnu/libSFCGAL.so.1: undefined reference to `CORE::BigFloatRep::sqrt(CORE::BigFloatRep const&, CORE::extLong const&)' //usr/lib/x86_64-linux-gnu/libSFCGAL.so.1: undefined reference to `CORE::BigFloatRep::operator delete(void*, unsigned long)' //usr/lib/x86_64-linux-gnu/libSFCGAL.so.1: undefined reference to `CGAL::File_header_OFF::File_header_OFF(bool, bool, bool, bool)' //usr/lib/x86_64-linux-gnu/libSFCGAL.so.1: undefined reference to `CGAL::get_mode(std::basic_ios<char, std::char_traits<char> >&)' //usr/lib/x86_64-linux-gnu/libSFCGAL.so.1: undefined reference to `CORE::BigIntRep::operator new(unsigned long)' //usr/lib/x86_64-linux-gnu/libSFCGAL.so.1: undefined reference to `CORE::defBFsqrtAbsPrec' //usr/lib/x86_64-linux-gnu/libSFCGAL.so.1: undefined reference to `CORE::BigFloatRep::BigFloatRep(double)' //usr/lib/x86_64-linux-gnu/libSFCGAL.so.1: undefined reference to `CGAL::File_writer_OFF::write_header(std::ostream&, unsigned long, unsigned long, unsigned long, bool)' collect2: error: ld returned 1 exit status make[2]: *** [Makefile:85: raster2pgsql] Error 1 make[2]: Leaving directory '/var/lib/jenkins/workspace/postgis/branches/2.4/raster/loader' make[1]: *** [Makefile:31: rtloader] Error 2 make[1]: Leaving directory '/var/lib/jenkins/workspace/postgis/branches/2.4/raster' make: *** [GNUmakefile:16: all] Error 1 Build step 'Execute shell' marked build as failure An attempt to send an e-mail to empty list of recipients, ignored.
I suspect something to do with CGAL perhaps incompatible with the SFCGAL installed.
Change History (14)
comment:1 by , 7 years ago
comment:3 by , 7 years ago
Component: | buildbots → postgis |
---|---|
Owner: | changed from | to
Summary: | Debbie chocking on sfcgal/CGAL → sfcgal 1.3.3 with CGAL 4.11 doesn't compile against PostGIS |
okay this turns out to be a different problem debbie was using SFCGAL 1.3.3 but that doesn't compile with PostGIS.
comment:4 by , 7 years ago
Owner: | changed from | to
---|
comment:7 by , 7 years ago
Milestone: | PostGIS 2.4.5 → PostGIS 2.2.8 |
---|
comment:13 by , 6 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
As Bas noted in http://lists.osgeo.org/pipermail/postgis-devel/2018-June/027168.html debian SFCGAL issue is fixed.
So I went ahead and reinstalled sfcgal on debbie (got 1.3.5) and renabled the sfcgal tests on 2.5 branch at r16634. Looks to be working so I'll go ahead and do the same for 2.2, 2.3, and 2.4 branches.
Bah evidentally there is some incompatibility on debian (with GMP on) building SFCGAL against CGAL 4.11 the 1.3.1 and 1.3.2
noted here: https://github.com/Oslandia/SFCGAL/issues/145
Looks like issue is fixed in master (upcoming 1.3.3) I'll try to compile a version for debbie from master to get around the issue and if not just disable SFCGAL until 1.3.3. comes out and update from debian sid.