[Slackbuilds-users] postgis and CGAL 4.12

Willy Sudiarto Raharjo willysr at slackbuilds.org
Wed May 23 00:49:20 UTC 2018

> I was holding back until I could figure it out for myself but due to the
> gdal reversion I thought maybe I should let fly with my email anyway.
> Anyhow I was unable to rebuild postgis with the newest gdal-2.2.4 and
> CGAL-4.12 ( and a rebuilt SFCGAL-1.3.5 ).
> I consistently ran into a boost issue when compiling postgis-2.4.4:
> make[2]: Entering directory '/tmp/SBo/postgis-2.4.4/raster/loader'
> gcc -O2 -fPIC  -fPIC -DPIC  -Wall -Wmissing-prototypes -I../rt_core
> -I../../liblwgeom  -I/usr/include -I/usr/include   -c raster2pgsql.c
> /bin/sh ../../libtool --mode=link gcc -O2 -fPIC  -fPIC -DPIC  -Wall
> -Wmissing-prototypes -I../rt_core -I../../liblwgeom  -I/usr/include
> -I/usr/include   ../rt_core/librtcore.a raster2pgsql.o
> ../../liblwgeom/liblwgeom.la <http://liblwgeom.la> -L/usr/lib64 -lgdal 
> -L/usr/lib64 -lgeos_c  -lc -lm -o raster2pgsql
> libtool: link: gcc -O2 -fPIC -fPIC -DPIC -Wall -Wmissing-prototypes
> -I../rt_core -I../../liblwgeom -I/usr/include -I/usr/include
> raster2pgsql.o -o .libs/raster2pgsql  ../rt_core/librtcore.a
> ../../liblwgeom/.libs/liblwgeom.so -L/usr/lib64 /usr/lib64/libgdal.so
> /usr/lib64/libgeos_c.so -lc -lm -pthread
> /usr/lib64/libSFCGAL.so.1: undefined reference to `typeinfo for
> boost::archive::detail::basic_oserializer'
> I reverted to CGAL-4.11.1 and rebuilt SFCGAL-1.3.5 and postgis-2.4.4
> builds fine and `cd /tmp/SBo/postgis-2.4.4 ; make check` passes all tests.
> Looking at the CGAL-4.12 README there is a note about boost:
> ### Compiler Support
> -   The Microsoft Visual C++ 2017 version 15.3 has introduced support for
>     C++17, with the compilation flag `/std:c++17`. CGAL 4.12 has an initial
>     support for that flag: the code will compile, but a lot of deprecation
>     warnings will remain. Note that Boost version 1.67 is the first version
>     of Boost supporting `/std:c++17`.
> I've got several compiler logs based on various versions of Hard and
> Soft ( Optional ) Dependencies for postgis-2.2.4 if that would help.
> I the meantime, postgis does work with everything updated EXCEPT
> CGAL-4.12 ...

I don't know if this is the case, but can you look on this commit by Ben?

Willy Sudiarto Raharjo

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: OpenPGP digital signature
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20180523/a18dbae0/attachment.asc>

More information about the SlackBuilds-users mailing list