[MapServer-users] strrstr error occure
Raivo Rebane
raivo at r-systems.ee
Mon Nov 27 07:10:24 PST 2023
Hi,
here is output of cmake :
raivo at Hydra:~$ cd mapserver-8.0.1/
raivo at Hydra:~/mapserver-8.0.1$ cd build/
raivo at Hydra:~/mapserver-8.0.1/build$ cmake ..
-- Requiring C++11
-- Requiring C++11 - done
-- Requiring C99
-- Requiring C99 - done
-- Could NOT find ProtobufC (missing: PROTOBUFC_LIBRARY
PROTOBUFC_COMPILER PROTOBUFC_INCLUDE_DIR)
CMake Error at CMakeLists.txt:93 (message):
PROTOBUFC library/component/dependency could not be found.
HINTS:
- disable PROTOBUFC support by adding -DWITH_PROTOBUFC=0
- add the PROTOBUFC install directory to the CMAKE_PREFIX_PATH
variable
(-DCMAKE_PREFIX_PATH="/path/to/PROTOBUFC-install-dir;/path/to/other/dirs"
Call Stack (most recent call first):
CMakeLists.txt:339 (report_optional_not_found)
-- Found Proj 9.4
-- Could NOT find FCGI (missing: FCGI_LIBRARY FCGI_INCLUDE_DIR)
CMake Error at CMakeLists.txt:93 (message):
FCGI library/component/dependency could not be found.
HINTS:
- disable FCGI support by adding -DWITH_FCGI=0
- add the FCGI install directory to the CMAKE_PREFIX_PATH variable
(-DCMAKE_PREFIX_PATH="/path/to/FCGI-install-dir;/path/to/other/dirs"
Call Stack (most recent call first):
CMakeLists.txt:598 (report_optional_not_found)
-- * Summary of configured options for this build
-- * Mandatory components
-- * GDAL: /usr/local/lib/libgdal.so
-- * PROJ: /usr/local/lib/libproj.so
-- * png: /usr/lib/x86_64-linux-gnu/libpng.so
-- * jpeg: /usr/lib/x86_64-linux-gnu/libjpeg.so
-- * freetype: /usr/lib/x86_64-linux-gnu/libfreetype.so
-- * Optional components
-- * GIF: /usr/lib/x86_64-linux-gnu/libgif.so
-- * MYSQL: disabled
-- * FRIBIDI: /usr/lib/x86_64-linux-gnu/libfribidi.so
-- * HARFBUZZ: /usr/lib/x86_64-linux-gnu/libharfbuzz.so
-- * GIF: /usr/lib/x86_64-linux-gnu/libgif.so
-- * CAIRO: /usr/lib/x86_64-linux-gnu/libcairo.so
-- * SVGCAIRO: disabled
-- * RSVG: disabled
-- * CURL: disabled
-- * PIXMAN: disabled
-- * LIBXML2: /usr/lib/x86_64-linux-gnu/libxml2.so
-- * POSTGIS: /usr/lib/libpq.so
-- * GEOS: /usr/local/lib/libgeos_c.so
-- * FastCGI: disabled
-- * PROTOBUFC: disabled
-- * Oracle Spatial: disabled
-- * Exempi XMP: disabled
-- * Optional features
-- * WMS SERVER: ENABLED
-- * WFS SERVER: ENABLED
-- * WCS SERVER: ENABLED
-- * SOS SERVER: disabled
-- * OGCAPI SERVER: ENABLED
-- * WMS CLIENT: disabled
-- * WFS CLIENT: disabled
-- * ICONV: ENABLED
-- * Thread-safety support: disabled
-- * KML output: disabled
-- * XML Mapfile support: disabled
-- * Mapscripts
-- * Python: disabled
-- * PHPNG: disabled
-- * PERL: disabled
-- * RUBY: disabled
-- * JAVA: disabled
-- * C#: disabled
-- * V8 Javascript: disabled
-- * Apache Module (Experimental): disabled
-- * Python MapScript Annotations: disabled
--
-- PROJECT_BINARY_DIR is set to /home/raivo/mapserver-8.0.1/build
-- Will install files to /usr/local
-- Will install libraries to /usr/local/lib
-- Configuring incomplete, errors occurred!
See also "/home/raivo/mapserver-8.0.1/build/CMakeFiles/CMakeOutput.log".
See also "/home/raivo/mapserver-8.0.1/build/CMakeFiles/CMakeError.log".
raivo at Hydra:~/mapserver-8.0.1/build$
Raivo
On 27.11.23 14:28, Even Rouault wrote:
> Hi,
>>
>> want to test of use the mapserver, but on insatllation I got errors :
>>
>> /usr/bin/ld: CMakeFiles/cmTC_e57a2.dir/CheckFunctionExists.c.o: in
>> function `main':
>> CheckFunctionExists.c:(.text+0x14): undefined reference to `strrstr'
>> collect2: error: ld returned 1 exit status
>> make[1]: *** [CMakeFiles/cmTC_e57a2.dir/build.make:87: cmTC_e57a2]
>> Error 1
>>
>> What's wrong ?
>
> Assuming this is not an error when building mapserver itself, but when
> just running cmake, such errors in CMakeOutput.log or CMakeError.log
> are totally legitimate. This is just CMake testing which features are
> available in your environments, and to do so it tries to build some
> small source files, and compilation errors are expected when the
> feature is not available.
>
> Even
>
>
More information about the MapServer-users
mailing list