On Fri, 15 Oct 2021, Paul Ramsey wrote:



On Oct 15, 2021, at 8:05 AM, Roger Bivand <roger.biv...@nhh.no> wrote:

On Fri, 15 Oct 2021, Paul Ramsey wrote:



On Oct 15, 2021, at 2:00 AM, Roger Bivand <roger.biv...@nhh.no> wrote:

/usr/bin/ld: /home/rsb/static/lib64/libgeos.a(WKTWriter.cpp.o): in function 
`geos::io::WKTWriter::writeNumber[abi:cxx11](double) const':
WKTWriter.cpp:(.text+0xe39): undefined reference to `geos_d2sfixed_buffered_n'
collect2: error: ld returned 1 exit status

Somehow the ryu dependency is missing in the final library... I wonder if the "object library" trick is having deleterious effects in the case of building static libs.

Thanks; do you need me to check anything now? Happy to check when you advise.


I think your recipe gives me enough to reproduce, which is what I'll check first. If I cannot reproduce I'll be back for more.

Good. I moved libryu.a to the installed lib64 directory and added -lryu to the g++ command, and there immediate failure is gone. I added libtinyxlm2.a too, because it was in the lib build directory. Adding -lryu and -lstdc++ to geos-config manually for --static-cclibs and --static-clibs permits the full check of the rgeos package to succeed. But please double-check, these are tricks I'm not at all familiar with.

Roger


P.


Roger


P

--
Roger Bivand
Emeritus Professor
Department of Economics, Norwegian School of Economics,
Postboks 3490 Ytre Sandviken, 5045 Bergen, Norway.
e-mail: roger.biv...@nhh.no
https://orcid.org/0000-0003-2392-6140
https://scholar.google.no/citations?user=AWeghB0AAAAJ&hl=en



--
Roger Bivand
Emeritus Professor
Department of Economics, Norwegian School of Economics,
Postboks 3490 Ytre Sandviken, 5045 Bergen, Norway.
e-mail: roger.biv...@nhh.no
https://orcid.org/0000-0003-2392-6140
https://scholar.google.no/citations?user=AWeghB0AAAAJ&hl=en
_______________________________________________
geos-devel mailing list
geos-devel@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/geos-devel

Reply via email to