[PROJ] fliemanager.cpp build issue

Even Rouault even.rouault at spatialys.com
Mon Jan 17 09:35:55 PST 2022


Gordon,

can you try adding #define _GNU_SOURCE at the top of filemanager.cpp ?

Even

Le 17/01/2022 à 18:30, gordon frisbie a écrit :
>
> While building PROJ the compilation crashes while trying to build 
> filemanager.cpp.      I'm using Cygwin on a Windows Server 2012 
> machine. It appears that the build is bypassing the "#if 
> __GNU_VISIBLE" condition in Cygwin's dlfcn.h file.
>
> filemanager.cpp:1344:5: error: ‘Dl_info’ was not declared in this scope
>
> 1344 |     Dl_info info;
>
>       |     ^~~~~~~
>
> filemanager.cpp:1345:60: error: ‘info’ was not declared in this scope
>
> 1345 |     if (!dladdr((const void *)pj_get_relative_share_proj, &info)) {
>
> | ^~~~
>
> filemanager.cpp:1345:10: error: ‘dladdr’ was not declared in this scope
>
> 1345 |     if (!dladdr((const void *)pj_get_relative_share_proj, &info)) {
>
>       |          ^~~~~~
>
> filemanager.cpp:1348:21: error: ‘info’ was not declared in this scope
>
> 1348 |     std::string out(info.dli_fname);
>
>       |                     ^~~~
>
> Thanks,
>
> Gordon
>
>
> _______________________________________________
> PROJ mailing list
> PROJ at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/proj

-- 
http://www.spatialys.com
My software is free, but my time generally not.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/proj/attachments/20220117/af799cd1/attachment.html>


More information about the PROJ mailing list