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