[gdal-dev] Error linking srsinfo in 3.9.1 (rc1 or rc2)

Scott public at postholer.com
Mon Jun 24 09:39:58 PDT 2024


When building 3.9.1 rc1/r2 I get the following when linking. If I 
comment srsinfo out of the makefile, all other gdal/ogr apps build fine 
with no issues.

uname -a:
Linux MyHost 6.1.0-21-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.90-1 
(2024-05-03) x86_64 GNU/Linux

Thanks!

Build output below:

[ 98%] Building CXX object apps/CMakeFiles/gdalsrsinfo.dir/gdalsrsinfo.cpp.o
In file included from /usr/include/c++/12/ext/string_conversions.h:41,
                  from /usr/include/c++/12/bits/basic_string.h:3960,
                  from /usr/include/c++/12/string:53,
                  from 
/export/gis/local/src/gdal-3.9.1/port/cpl_error.h:256,
                  from 
/export/gis/local/src/gdal-3.9.1/port/cpl_string.h:35,
                  from 
/export/gis/local/src/gdal-3.9.1/apps/gdalsrsinfo.cpp:32:
/usr/include/c++/12/cstdlib:75:15: fatal error: stdlib.h: No such file 
or directory
    75 | #include_next <stdlib.h>
       |               ^~~~~~~~~~
compilation terminated.
make[2]: *** [apps/CMakeFiles/gdalsrsinfo.dir/build.make:76: 
apps/CMakeFiles/gdalsrsinfo.dir/gdalsrsinfo.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:10247: 
apps/CMakeFiles/gdalsrsinfo.dir/all] Error 2
make: *** [Makefile:146: all] Error 2



More information about the gdal-dev mailing list