[mapserver-users] Mapserver 6.4 errors compilation
Damien ZINS
damien.zins at intitek.fr
Tue Mar 27 05:15:49 PDT 2018
can I answer1). No, it's not a problem that those functions aren't found. That’s normal. Why normal ? texte is not found : *-- Looking for strlcat - not found*in file CMakeError.log , you see ld stop with errorDetermining if the function strrstr exists failed with the following output:
Change Dir: /gldev/gcitest/src/mapserver-6.4.5/CMakeFiles/CMakeTmp
Run Build Command:/usr/bin/gmake "cmTryCompileExec2623477746/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec2623477746.dir/build.make CMakeFiles/cmTryCompileExec2623477746.dir/build
gmake[1] : on entre dans le répertoire « /gldev/gcitest/src/mapserver-6.4.5/CMakeFiles/CMakeTmp »
/usr/bin/cmake -E cmake_progress_report /gldev/gcitest/src/mapserver-6.4.5/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec2623477746.dir/CheckFunctionExists.c.o
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=strrstr -I/gldev/gcitest/src/mapserver-6.4.5/CMakeFiles/CMakeTmp/math.h -o CMakeFiles/cmTryCompileExec2623477746.dir/CheckFunctionExists.c.o -c /usr/share/cmake/Modules/CheckFunctionExists.c
Linking C executable cmTryCompileExec2623477746
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec2623477746.dir/link.txt --verbose=1
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=strrstr CMakeFiles/cmTryCompileExec2623477746.dir/CheckFunctionExists.c.o -o cmTryCompileExec2623477746 -rdynamic -lm
CMakeFiles/cmTryCompileExec2623477746.dir/CheckFunctionExists.c.o: dans la fonction « main »:
CheckFunctionExists.c:(.text+0x15): référence indéfinie vers « strrstr »
collect2: erreur: ld a retourné 1 code d'état d'exécution
gmake[1] : on quitte le répertoire « /gldev/gcitest/src/mapserver-6.4.5/CMakeFiles/CMakeTmp »
gmake[1]: *** [cmTryCompileExec2623477746] Erreur 1
gmake: *** [cmTryCompileExec2623477746/fast] Erreur 2
2) for freetype , there is no development version : https://sourceforge.net/projects/freetype/files/
I find the problem : add this option -DCMAKE_PREFIX_PATH="${INSTALL_PATH};/gldev/gcitest/install/lib"
De: "Michael Smith" <michael.smith.erdc at gmail.com>
À: "DamienZINS" <damien.zins at intitek.fr>, mapserver-users at lists.osgeo.org
Envoyé: Lundi 26 Mars 2018 11:56:34
Objet: Re: [mapserver-users] Mapserver 6.4 error compilation
1). No, it's not a problem that those functions aren't found. That’s normal.
2). It looks like you might not have installed the development versions of freetype and libjpeg as the errors are that the headers in the include dirs aren't being found. Also for Oracle, you should set an env variable to the ORACLE_HOME dir, something like:
export ORACLE_HOME=/opt/instantclient
export LD_LIBRARY_PATH=${ORACLE_HOME}:/usr/lib
You'll also need to make sure you've setup the symlinks on the oracle client, eg:
ln -s libclntsh.so.12.1 libclntsh.so
ln -s libocci.so.12.1 libocci.so
And installed libaio.
Mike
--
Michael Smith
Remote Sensing/GIS Center
US Army Corps of Engineers
On 3/26/18, 4:13 AM, "mapserver-users on behalf of DamienZINS" <mapserver-users-bounces at lists.osgeo.org on behalf of damien.zins at intitek.fr> wrote:
Hi
i want compile maprserver 6.4 on CentOS 7
the command is
cmake -DCMAKE_INSTALL_PREFIX="/" -DCMAKE_PREFIX_PATH=""
-DINSTALL_LIB_DIR=/gldev/gcidev/install/lib:$gldev/gcidev/install/bin:gldev/gcidev/install/include:/usr:/gldev/gcitest/install/include/freetype2/freetype:/usr/include/
-DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_BUILD_TYPE="debug" -DWITH_GEOS=OFF
-DWITH_FCGI=OFF -DWITH_FREETYPE=ON -DWITH_JPEG=ON -DWITH_CLIENT_WMS=OFF
-DWITH_CLIENT_WFS=OFF -DWITH_RSVG=OFF -DWITH_POSTGIS=OFF -DWITH_FRIBIDI=OFF
-DWITH_HARFBUZZ=OFF -DWITH_CAIRO=OFF -DWITH_GEOS=OFF -DWITH_CURL=OFF
-DWITH_SOS=OFF -DWITH_GIF=OFF -DWITH_EXEMPI=OFF -DWITH_ICONV=ON
-DWITH_GDAL=ON -DWITH_OGR=ON -DWITH_ORACLESPATIAL=ON -DWITH_PHP=ON
-DWITH_PROJ=ON >>${LOG_FILE}
In .log
-- The C compiler identification is GNU 4.8.5
-- The CXX compiler identification is GNU 4.8.5
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for strrstr
-*- Looking for strrstr - not found*
-- Looking for strcasecmp
-- Looking for strcasecmp - found
-- Looking for strcasestr
-- Looking for strcasestr - found
-- Looking for strdup
-- Looking for strdup - found
-- Looking for strlcat
*-- Looking for strlcat - not found*
-- Looking for strlcpy
*-- Looking for strlcpy - not found*
-- Looking for strlen
-- Looking for strlen - found
-- Looking for strncasecmp
-- Looking for strncasecmp - found
-- Looking for vsnprintf
-- Looking for vsnprintf - found
-- Looking for lrintf
-- Looking for lrintf - found
-- Looking for lrint
-- Looking for lrint - found
-- Looking for dlfcn.h
-- Looking for dlfcn.h - found
-- Performing Test HAVE_SYNC_FETCH_AND_ADD
-- Performing Test HAVE_SYNC_FETCH_AND_ADD - Success
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.7")
-- Found PNG: /usr/lib64/libpng.so (found version "1.5.13")
-- Could NOT find JPEG (missing: JPEG_LIBRARY JPEG_INCLUDE_DIR)
-- Could NOT find Freetype (missing: FREETYPE_LIBRARY FREETYPE_INCLUDE_DIR)
-- Could NOT find PROJ (missing: PROJ_LIBRARY PROJ_INCLUDE_DIR)
-- Looking for iconv
-- Looking for iconv - found
-- Found iconv library:
-- Could NOT find ORACLE (missing: ORACLE_LIBRARY ORACLE_INCLUDE_DIR)
-- Found GDAL: /usr/local/lib/libgdal.so
-- Found LibXml2: /usr/lib64/libxml2.so (found version "2.9.1")
-- * Summary of configured options for this build
-- * Mandatory components
-- * png: /usr/lib64/libpng.so
*-- * jpeg: JPEG_LIBRARY-NOTFOUND*
*-- * freetype: FREETYPE_LIBRARY-NOTFOUND*
-- * Optional components
-- * GDAL: /usr/local/lib/libgdal.so
-- * OGR: /usr/local/lib/libgdal.so
-- * GD: disabled
-- * GIF: disabled
-- * MYSQL: disabled
-- * FRIBIDI: disabled
-- * GIF: disabled
-- * CAIRO: disabled
-- * SVGCAIRO: disabled
-- * RSVG: disabled
-- * CURL: disabled
-- * PROJ: disabled
-- * LIBXML2: /usr/lib64/libxml2.so
-- * POSTGIS: disabled
-- * GEOS: disabled
-- * FastCGI: disabled
-- * Oracle Spatial: disabled
-- * SDE: disabled
-- * Exempi XMP: disabled
-- * Optional features
-- * WMS SERVER: disabled
-- * WFS SERVER: disabled
-- * WCS SERVER: disabled
-- * SOS SERVER: disabled
-- * WMS CLIENT: disabled
-- * WFS CLIENT: disabled
-- * ICONV: ENABLED
-- * Thread-safety support: disabled
-- * KML output: disabled
-- * Z+M point coordinate support: disabled
-- * XML Mapfile support: disabled
-- * Mapscripts
-- * Python: disabled
-- * PHP: ENABLED
-- * PERL: disabled
-- * RUBY: disabled
-- * JAVA: disabled
-- * C#: disabled
-- * Apache Module (Experimental): disabled
--
-- Will install files to /
-- Will install libraries to //lib64
-- Configuring incomplete, errors occurred!
See also "/gldev/gcitest/src/mapserver-6.4.5/CMakeFiles/CMakeOutput.log".
See also "/gldev/gcitest/src/mapserver-6.4.5/CMakeFiles/CMakeError.log".
in the directory gldev/gcitest/install/lib/ , i put the lib compiled
[root at localhost lib64]# cd /gldev/gcitest/install/lib/
[root at localhost lib]# ll *.so
lrwxrwxrwx. 1 root root 17 21 févr. 17:19 libapr-1.so ->
libapr-1.so.0.6.2
lrwxrwxrwx. 1 root root 21 21 févr. 17:27 libaprutil-1.so ->
libaprutil-1.so.0.6.0
lrwxrwxrwx. 1 root root 19 21 févr. 16:21 libcharset.so ->
libcharset.so.1.0.0
lrwxrwxrwx. 1 root root 21 21 févr. 16:19 libfreetype.so ->
libfreetype.so.6.14.0
lrwxrwxrwx. 1 root root 17 4 mars 13:16 libgdal.so ->
libgdal.so.20.3.0
lrwxrwxrwx. 1 root root 14 21 févr. 16:22 libgd.so -> libgd.so.3.0.5
lrwxrwxrwx. 1 root root 17 21 févr. 16:21 libiconv.so ->
libiconv.so.2.6.0
lrwxrwxrwx. 1 root root 16 21 févr. 16:21 libjpeg.so ->
libjpeg.so.9.2.0
lrwxrwxrwx. 1 root root 19 21 févr. 17:28 libpcre2-8.so ->
libpcre2-8.so.0.6.0
lrwxrwxrwx. 1 root root 23 21 févr. 17:28 libpcre2-posix.so ->
libpcre2-posix.so.2.0.0
lrwxrwxrwx. 1 root root 19 22 févr. 10:38 libpcrecpp.so ->
libpcrecpp.so.0.0.1
lrwxrwxrwx. 1 root root 21 22 févr. 10:38 libpcreposix.so ->
libpcreposix.so.0.0.5
lrwxrwxrwx. 1 root root 16 22 févr. 10:38 libpcre.so ->
libpcre.so.1.2.9
lrwxrwxrwx. 1 root root 19 21 févr. 16:20 libpng16.so ->
libpng16.so.16.32.0
lrwxrwxrwx. 1 root root 11 21 févr. 16:20 libpng.so -> libpng16.so
lrwxrwxrwx. 1 root root 17 21 févr. 16:20 libproj.so ->
libproj.so.12.0.0
lrwxrwxrwx. 1 root root 14 21 févr. 16:19 libz.so -> libz.so.1.2.11
-rw-r--r--. 1 root root 1393528 21 févr. 16:21 preloadable_libiconv.so
my questions are :
1) in which library are the function strrstr strlcpy strlcat
2) I put the option -DINSTALL_LIB_DIR= of cmake with the directory of my lib
and include files
but these files are not found , see freetype jpeg proj and oracle
Is this option false ?
thanks
--
Sent from: http://osgeo-org.1560.x6.nabble.com/Mapserver-User-f4226646.html
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20180327/9506f646/attachment.htm>
More information about the MapServer-users
mailing list