[geos-devel] 3.9.0beta + GEOSwift + Linux

Andrew Hershberger andrew.d.hershberger at gmail.com
Mon Nov 30 19:15:24 PST 2020


Found another issue with the beta when testing GEOSwift on Linux
(specifically, compiling in a Docker container using the Swift Docker
image). Here's what I'm doing:

$ sudo docker run -it --rm swift /bin/bash
# cd home
# git clone https://github.com/GEOSwift/GEOSwift.git
# cd GEOSwift
# git checkout geos-3.9.0-testing
# swift test --enable-test-discovery -v

Among other things, this yields the following line for LineLimiter.cpp:

/usr/bin/clang -target x86_64-unknown-linux-gnu -fPIC -g -O0
-DSWIFT_PACKAGE=1 -DDEBUG=1 -fblocks -fmodules -fmodule-name=geos -I
/home/GEOSwift/.build/checkouts/geos/Sources/geos/public
-fmodules-cache-path=/home/GEOSwift/.build/x86_64-unknown-linux-gnu/debug/ModuleCache
-DUSE_UNSTABLE_GEOS_CPP_API
-I/home/GEOSwift/.build/checkouts/geos/Sources/geos/include -MD -MT
dependencies -MF
/home/GEOSwift/.build/x86_64-unknown-linux-gnu/debug/geos.build/src/operation/overlayng/LineLimiter.cpp.d
-std=c++11 -c
/home/GEOSwift/.build/checkouts/geos/Sources/geos/src/operation/overlayng/LineLimiter.cpp
-o
/home/GEOSwift/.build/x86_64-unknown-linux-gnu/debug/geos.build/src/operation/overlayng/LineLimiter.cpp.o

And this corresponding error:

/home/GEOSwift/.build/checkouts/geos/Sources/geos/src/operation/overlayng/LineLimiter.cpp:121:24:
error: no member named 'unique' in namespace 'std'
    ptList->erase(std::unique(ptList->begin(), ptList->end()),
ptList->end());
                  ~~~~~^

Here's some clang version info:

clang version 10.0.0 (git at github.com:apple/llvm-project.git
3093af41dd65ad466dcd5603e9289244edfee4f5)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin

Any idea what might be going on here?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geos-devel/attachments/20201130/140b7a58/attachment.html>


More information about the geos-devel mailing list