Re: [mapserver-users] Building Mapserver - missing strlcat... methods

2016-06-24 Thread Michael Schulz
Hi Thomas,

thanks for your help, I was too blind to realise that error underneath the
python warning. Shame on me: beginners error php-devel not installed...

Thanks, Michael

2016-06-24 13:53 GMT+02:00 thomas bonfort :

> Your error is somehow coming from the php installation/configuration.
> Check your log messages for something there.
>
> On 24 June 2016 at 13:49, Michael Schulz 
> wrote:
> > Hi Thomas,
> >
> > I'm pretty sure it is. Just did a rm -rf * on the build dir, and then
> this:
> >
> > :/usr/local/src/mapserver-7.0.1/build #  cmake ..
> > -DCMAKE_INSTALL_PREFIX=/opt/mapserver-7.0.1
> > -DCMAKE_PREFIX_PATH=/opt/gdal-trunk -DWITH_CLIENT_WFS=ON
> > -DWITH_CLIENT_WMS=ON -DWITH_CURL=ON -DWITH_SOS=ON
> > -DWITH_PHP=ON -DWITH_PYTHON=ON -DWITH_SVGCAIRO=ON
> > -DWITH_ORACLESPATIAL=ON-DWITH_HARFBUZZ=0   -DWITH_FRIBIDI=0
> > -DWITH_FCGI=0
> >
> >
> > -- The C compiler identification is GNU 4.3.4
> > -- The CXX compiler identification is GNU 4.3.4
> > -- 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.2.31")
> > -- Found JPEG: /usr/lib64/libjpeg.so
> > -- Found Freetype: /usr/lib64/libfreetype.so
> > -- Found PROJ: /usr/lib64/libproj.so
> > -- Looking for iconv
> > -- Looking for iconv - found
> > -- Found iconv library:
> > -- Found PkgConfig: /usr/bin/pkg-config (found version "0.23")
> > -- checking for module 'cairo'
> > --   found cairo, version 1.8.8
> > -- Found CAIRO: /usr/lib64/libcairo.so
> > ORACLE_HOME=/home/oracle/app/oracle/product/12.1.0/client_1
> > -- Found ORACLE:
> >
> /home/oracle/app/oracle/product/12.1.0/client_1/lib/libclntsh.so;/home/oracle/app/oracle/product/12.1.0/client_1/lib/libocci.so;/home/oracle/app/oracle/product/12.1.0/client_1/lib/libnnz12.so
> > -- Found GEOS: /usr/lib64/libgeos_c.so
> > -- Found POSTGRESQL: /usr/lib64/libpq.so
> > -- Looking for PQserverVersion in pq
> > -- Looking for PQserverVersion in pq - found
> > -- Found GDAL: /opt/gdal-trunk/lib/libgdal.so
> > -- Found SVG: /usr/local/lib/libsvg.so
> > -- Found SVGCAIRO: /usr/local/lib/libsvg-cairo.so
> > -- Found CURL: /usr/lib64/libcurl.so (found version "7.19.7")
> > -- Found LibXml2: /usr/lib64/libxml2.so (found version "2.7.6")
> > -- Performing Test GIF_GifFileType_UserData
> > -- Performing Test GIF_GifFileType_UserData - Success
> > -- Found GIF: /usr/lib64/libgif.so (found version "4")
> > -- Found SWIG: /usr/bin/swig (found version "1.3.36")
> > -- Found PythonInterp: /usr/bin/python (found version "2.6.9")
> > CMake Warning (dev) at mapscript/python/CMakeLists.txt:42
> > (get_target_property):
> >   Policy CMP0026 is not set: Disallow use of the LOCATION target
> property.
> >   Run "cmake --help-policy CMP0026" for policy details.  Use the
> > cmake_policy
> >   command to set the policy and suppress this warning.
> >
> >   The LOCATION property should not be read from target
> "_pythonmapscript".
> >   Use the target name directly with add_custom_command, or use the
> generator
> >   expression $, as appropriate.
> >
> > This warning is for project developers.  Use -Wno-dev to suppress it.
> >
> > CMake Error at mapscript/php/CMakeLists.txt:31 (install):
> >   install TARGETS given no LIBRARY DESTINATION for module target
> >   "php_mapscript".
> >
> >
> >
> > -- * Summary of configured options for this build
> > --  * Mandatory components
> > --   * png: /usr/lib64/libpng.so
> > --   * jpeg: /usr/lib64/libjpeg.so
> > --   * freetype: /usr/lib64/libfreetype.so
> > --  * Optional components
> > --   * GDAL: /opt/gdal-trunk/lib/libgdal.so
> > --   * OGR: /opt/gdal-trunk/lib/libgdal.so
> > --   * GIF: /usr/lib64/libgif.so
> > --   * MYSQL: disabled
> > --   * 

Re: [mapserver-users] Building Mapserver - missing strlcat... methods

2016-06-24 Thread thomas bonfort
Your error is somehow coming from the php installation/configuration.
Check your log messages for something there.

On 24 June 2016 at 13:49, Michael Schulz  wrote:
> Hi Thomas,
>
> I'm pretty sure it is. Just did a rm -rf * on the build dir, and then this:
>
> :/usr/local/src/mapserver-7.0.1/build #  cmake ..
> -DCMAKE_INSTALL_PREFIX=/opt/mapserver-7.0.1
> -DCMAKE_PREFIX_PATH=/opt/gdal-trunk -DWITH_CLIENT_WFS=ON
> -DWITH_CLIENT_WMS=ON -DWITH_CURL=ON -DWITH_SOS=ON
> -DWITH_PHP=ON -DWITH_PYTHON=ON -DWITH_SVGCAIRO=ON
> -DWITH_ORACLESPATIAL=ON-DWITH_HARFBUZZ=0   -DWITH_FRIBIDI=0
> -DWITH_FCGI=0
>
>
> -- The C compiler identification is GNU 4.3.4
> -- The CXX compiler identification is GNU 4.3.4
> -- 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.2.31")
> -- Found JPEG: /usr/lib64/libjpeg.so
> -- Found Freetype: /usr/lib64/libfreetype.so
> -- Found PROJ: /usr/lib64/libproj.so
> -- Looking for iconv
> -- Looking for iconv - found
> -- Found iconv library:
> -- Found PkgConfig: /usr/bin/pkg-config (found version "0.23")
> -- checking for module 'cairo'
> --   found cairo, version 1.8.8
> -- Found CAIRO: /usr/lib64/libcairo.so
> ORACLE_HOME=/home/oracle/app/oracle/product/12.1.0/client_1
> -- Found ORACLE:
> /home/oracle/app/oracle/product/12.1.0/client_1/lib/libclntsh.so;/home/oracle/app/oracle/product/12.1.0/client_1/lib/libocci.so;/home/oracle/app/oracle/product/12.1.0/client_1/lib/libnnz12.so
> -- Found GEOS: /usr/lib64/libgeos_c.so
> -- Found POSTGRESQL: /usr/lib64/libpq.so
> -- Looking for PQserverVersion in pq
> -- Looking for PQserverVersion in pq - found
> -- Found GDAL: /opt/gdal-trunk/lib/libgdal.so
> -- Found SVG: /usr/local/lib/libsvg.so
> -- Found SVGCAIRO: /usr/local/lib/libsvg-cairo.so
> -- Found CURL: /usr/lib64/libcurl.so (found version "7.19.7")
> -- Found LibXml2: /usr/lib64/libxml2.so (found version "2.7.6")
> -- Performing Test GIF_GifFileType_UserData
> -- Performing Test GIF_GifFileType_UserData - Success
> -- Found GIF: /usr/lib64/libgif.so (found version "4")
> -- Found SWIG: /usr/bin/swig (found version "1.3.36")
> -- Found PythonInterp: /usr/bin/python (found version "2.6.9")
> CMake Warning (dev) at mapscript/python/CMakeLists.txt:42
> (get_target_property):
>   Policy CMP0026 is not set: Disallow use of the LOCATION target property.
>   Run "cmake --help-policy CMP0026" for policy details.  Use the
> cmake_policy
>   command to set the policy and suppress this warning.
>
>   The LOCATION property should not be read from target "_pythonmapscript".
>   Use the target name directly with add_custom_command, or use the generator
>   expression $, as appropriate.
>
> This warning is for project developers.  Use -Wno-dev to suppress it.
>
> CMake Error at mapscript/php/CMakeLists.txt:31 (install):
>   install TARGETS given no LIBRARY DESTINATION for module target
>   "php_mapscript".
>
>
>
> -- * Summary of configured options for this build
> --  * Mandatory components
> --   * png: /usr/lib64/libpng.so
> --   * jpeg: /usr/lib64/libjpeg.so
> --   * freetype: /usr/lib64/libfreetype.so
> --  * Optional components
> --   * GDAL: /opt/gdal-trunk/lib/libgdal.so
> --   * OGR: /opt/gdal-trunk/lib/libgdal.so
> --   * GIF: /usr/lib64/libgif.so
> --   * MYSQL: disabled
> --   * FRIBIDI: disabled
> --   * HARFBUZZ: disabled
> --   * GIF: /usr/lib64/libgif.so
> --   * CAIRO: /usr/lib64/libcairo.so
> --   * SVGCAIRO: /usr/local/lib/libsvg-cairo.so
> --   * RSVG: disabled
> --   * CURL: /usr/lib64/libcurl.so
> --   * PROJ: /usr/lib64/libproj.so
> --   * PIXMAN: disabled
> --   * LIBXML2: /usr/lib64/libxml2.so
> --   * POSTGIS: /usr/lib64/libpq.so
> --   * GEOS: /usr/lib64/libgeos_c.so
> --   * FastCGI: disabled
> --   * Oracle Spa

Re: [mapserver-users] Building Mapserver - missing strlcat... methods

2016-06-24 Thread Michael Schulz
Hi Thomas,

I'm pretty sure it is. Just did a rm -rf * on the build dir, and then this:

:/usr/local/src/mapserver-7.0.1/build #  cmake ..
-DCMAKE_INSTALL_PREFIX=/opt/mapserver-7.0.1
-DCMAKE_PREFIX_PATH=/opt/gdal-trunk -DWITH_CLIENT_WFS=ON
-DWITH_CLIENT_WMS=ON -DWITH_CURL=ON -DWITH_SOS=ON
-DWITH_PHP=ON -DWITH_PYTHON=ON -DWITH_SVGCAIRO=ON
-DWITH_ORACLESPATIAL=ON-DWITH_HARFBUZZ=0   -DWITH_FRIBIDI=0
-DWITH_FCGI=0

-- The C compiler identification is GNU 4.3.4
-- The CXX compiler identification is GNU 4.3.4
-- 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.2.31")
-- Found JPEG: /usr/lib64/libjpeg.so
-- Found Freetype: /usr/lib64/libfreetype.so
-- Found PROJ: /usr/lib64/libproj.so
-- Looking for iconv
-- Looking for iconv - found
-- Found iconv library:
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.23")
-- checking for module 'cairo'
--   found cairo, version 1.8.8
-- Found CAIRO: /usr/lib64/libcairo.so
ORACLE_HOME=/home/oracle/app/oracle/product/12.1.0/client_1
-- Found ORACLE:
/home/oracle/app/oracle/product/12.1.0/client_1/lib/libclntsh.so;/home/oracle/app/oracle/product/12.1.0/client_1/lib/libocci.so;/home/oracle/app/oracle/product/12.1.0/client_1/lib/libnnz12.so
-- Found GEOS: /usr/lib64/libgeos_c.so
-- Found POSTGRESQL: /usr/lib64/libpq.so
-- Looking for PQserverVersion in pq
-- Looking for PQserverVersion in pq - found
-- Found GDAL: /opt/gdal-trunk/lib/libgdal.so
-- Found SVG: /usr/local/lib/libsvg.so
-- Found SVGCAIRO: /usr/local/lib/libsvg-cairo.so
-- Found CURL: /usr/lib64/libcurl.so (found version "7.19.7")
-- Found LibXml2: /usr/lib64/libxml2.so (found version "2.7.6")
-- Performing Test GIF_GifFileType_UserData
-- Performing Test GIF_GifFileType_UserData - Success
-- Found GIF: /usr/lib64/libgif.so (found version "4")
-- Found SWIG: /usr/bin/swig (found version "1.3.36")
-- Found PythonInterp: /usr/bin/python (found version "2.6.9")
CMake Warning (dev) at mapscript/python/CMakeLists.txt:42
(get_target_property):
  Policy CMP0026 is not set: Disallow use of the LOCATION target property.
  Run "cmake --help-policy CMP0026" for policy details.  Use the
cmake_policy
  command to set the policy and suppress this warning.

  The LOCATION property should not be read from target "_pythonmapscript".
  Use the target name directly with add_custom_command, or use the generator
  expression $, as appropriate.

This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Error at mapscript/php/CMakeLists.txt:31 (install):
  install TARGETS given no LIBRARY DESTINATION for module target
  "php_mapscript".


-- * Summary of configured options for this build
--  * Mandatory components
--   * png: /usr/lib64/libpng.so
--   * jpeg: /usr/lib64/libjpeg.so
--   * freetype: /usr/lib64/libfreetype.so
--  * Optional components
--   * GDAL: /opt/gdal-trunk/lib/libgdal.so
--   * OGR: /opt/gdal-trunk/lib/libgdal.so
--   * GIF: /usr/lib64/libgif.so
--   * MYSQL: disabled
--   * FRIBIDI: disabled
--   * HARFBUZZ: disabled
--   * GIF: /usr/lib64/libgif.so
--   * CAIRO: /usr/lib64/libcairo.so
--   * SVGCAIRO: /usr/local/lib/libsvg-cairo.so
--   * RSVG: disabled
--   * CURL: /usr/lib64/libcurl.so
--   * PROJ: /usr/lib64/libproj.so
--   * PIXMAN: disabled
--   * LIBXML2: /usr/lib64/libxml2.so
--   * POSTGIS: /usr/lib64/libpq.so
--   * GEOS: /usr/lib64/libgeos_c.so
--   * FastCGI: disabled
--   * Oracle Spatial:
/home/oracle/app/oracle/product/12.1.0/client_1/lib/libclntsh.so;/home/oracle/app/oracle/product/12.1.0/client_1/lib/libocci.so;/home/oracle/app/oracle/product/12.1.0/client_1/lib/libnnz12.so
--   * Exempi XMP: disabled
--  * Optional features
--   * WMS SERVER: ENABLED
--   * WFS SERVER: ENABLED
--   * WCS SERVER: ENABLED
--   * SOS SERVER: ENABLED
--   * WMS CLIENT: ENABLED
--   * WFS CLI

Re: [mapserver-users] Building Mapserver - missing strlcat... methods

2016-06-24 Thread thomas bonfort
The str* missising functions should not be an issue, those are just
checks to see if we shall be providing our own implementation. Are you
sure you posted the whole cmake log ?

--
thomas

On 24 June 2016 at 11:31, Michael Schulz  wrote:
> Hi Thomas,
>
> nope, unfortunately not. Deleted everything, rerun cmake, still got the same
> errors (strsstr, strlcat, strlcpy not found). This is one part of
> CMakeError.log:
>
> Determining if the function strrstr exists failed with the following output:
> Change Dir: /usr/local/src/mapserver-7.0.1/build/CMakeFiles/CMakeTmp
>
> Run Build Command:"/usr/bin/gmake" "cmTryCompileExec1997038117/fast"
> /usr/bin/gmake -f CMakeFiles/cmTryCompileExec1997038117.dir/build.make
> CMakeFiles/cmTryCompileExec1997038117.dir/build
> gmake[1]: Entering directory
> `/usr/local/src/mapserver-7.0.1/build/CMakeFiles/CMakeTmp'
> /usr/bin/cmake -E cmake_progress_report
> /usr/local/src/mapserver-7.0.1/build/CMakeFiles/CMakeTmp/CMakeFiles 1
> Building C object
> CMakeFiles/cmTryCompileExec1997038117.dir/CheckFunctionExists.c.o
> /usr/bin/cc   -DCHECK_FUNCTION_EXISTS=strrstr
> -I/usr/local/src/mapserver-7.0.1/build/CMakeFiles/CMakeTmp/math.h-o
> CMakeFiles/cmTryCompileExec1997038117.dir/CheckFunctionExists.c.o   -c
> /usr/share/cmake/Modules/CheckFunctionExists.c
> Linking C executable cmTryCompileExec1997038117
> /usr/bin/cmake -E cmake_link_script
> CMakeFiles/cmTryCompileExec1997038117.dir/link.txt --verbose=1
> /usr/bin/cc   -DCHECK_FUNCTION_EXISTS=strrstr
> CMakeFiles/cmTryCompileExec1997038117.dir/CheckFunctionExists.c.o  -o
> cmTryCompileExec1997038117 -rdynamic -lm
> CMakeFiles/cmTryCompileExec1997038117.dir/CheckFunctionExists.c.o: In
> function `main':
> CheckFunctionExists.c:(.text+0x15): undefined reference to `strrstr'
> collect2: ld gab 1 als Ende-Status zurück
> gmake[1]: Leaving directory
> `/usr/local/src/mapserver-7.0.1/build/CMakeFiles/CMakeTmp'
> gmake[1]: *** [cmTryCompileExec1997038117] Fehler 1
> gmake: *** [cmTryCompileExec1997038117/fast] Fehler 2
>
> ... (this is similarly repeated for the other functions)
>
> Thanks, Michael
>
>
>
>
> 2016-06-24 10:09 GMT+02:00 thomas bonfort :
>>
>> Try deleting everything in the build directory and starting again,
>> might be a cmake cache problem...
>>
>> On 24 June 2016 at 10:07, Michael Schulz 
>> wrote:
>> > Hi,
>> >
>> > I have exactly the same issue here. Trying to build mapserver on SLES 11
>> > SP4, I have disabled harfbuzz and fribidi:
>> >
>> > cmake .. \
>> >  -DCMAKE_PREFIX_PATH=/opt/gdal-trunk \
>> > -DWITH_CLIENT_WFS=ON \
>> > -DWITH_CLIENT_WMS=ON \
>> > -DWITH_CURL=ON \
>> > -DWITH_SOS=ON \
>> > -DWITH_PHP=ON \
>> > -DWITH_PYTHON=ON \
>> > -DWITH_SVGCAIRO=ON \
>> > -DWITH_ORACLESPATIAL=ON \
>> > -DWITH_HARFBUZZ=0 \
>> > -DWITH_FRIBIDI=0 \
>> > -DWITH_FCGI=0 \
>> >  >../configure.out.txt
>> >
>> > configure.out:
>> > -- The C compiler identification is GNU 4.3.4
>> > -- The CXX compiler identification is GNU 4.3.4
>> > -- 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.2.31")
>> > -- Found JPEG: /usr/lib64/libjpeg.so
>> > -- Found Freetype: /usr/lib64/libfreetype.so
>> > -- Found PROJ: /usr/lib64/libproj.so
>> > -- Looking for iconv
>> > -- Looking for iconv - found
>> > -- Found iconv library:
>> > -- Found PkgConfig: /usr/bin/pkg-config (found version "0.23")
>> > -- checking for module 'cairo'
>> > --   found cairo, version 1.8.8
>> > -- Found CAIRO: /usr/lib64/libcairo.so
>> > -- Found ORACLE:
>> >
>> > /home/oracle/app/oracle/product/12.1.0/client_1/lib/libclntsh.so;/home/oracle/

Re: [mapserver-users] Building Mapserver - missing strlcat... methods

2016-06-24 Thread Michael Schulz
Hi Thomas,

nope, unfortunately not. Deleted everything, rerun cmake, still got the
same errors (strsstr, strlcat, strlcpy not found). This is one part of
CMakeError.log:

Determining if the function strrstr exists failed with the following output:
Change Dir: /usr/local/src/mapserver-7.0.1/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/gmake" "cmTryCompileExec1997038117/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec1997038117.dir/build.make
CMakeFiles/cmTryCompileExec1997038117.dir/build
gmake[1]: Entering directory
`/usr/local/src/mapserver-7.0.1/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report
/usr/local/src/mapserver-7.0.1/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object
CMakeFiles/cmTryCompileExec1997038117.dir/CheckFunctionExists.c.o
/usr/bin/cc   -DCHECK_FUNCTION_EXISTS=strrstr
-I/usr/local/src/mapserver-7.0.1/build/CMakeFiles/CMakeTmp/math.h-o
CMakeFiles/cmTryCompileExec1997038117.dir/CheckFunctionExists.c.o   -c
/usr/share/cmake/Modules/CheckFunctionExists.c
Linking C executable cmTryCompileExec1997038117
/usr/bin/cmake -E cmake_link_script
CMakeFiles/cmTryCompileExec1997038117.dir/link.txt --verbose=1
/usr/bin/cc   -DCHECK_FUNCTION_EXISTS=strrstr
CMakeFiles/cmTryCompileExec1997038117.dir/CheckFunctionExists.c.o  -o
cmTryCompileExec1997038117 -rdynamic -lm
CMakeFiles/cmTryCompileExec1997038117.dir/CheckFunctionExists.c.o: In
function `main':
CheckFunctionExists.c:(.text+0x15): undefined reference to `strrstr'
collect2: ld gab 1 als Ende-Status zurück
gmake[1]: Leaving directory
`/usr/local/src/mapserver-7.0.1/build/CMakeFiles/CMakeTmp'
gmake[1]: *** [cmTryCompileExec1997038117] Fehler 1
gmake: *** [cmTryCompileExec1997038117/fast] Fehler 2

... (this is similarly repeated for the other functions)

Thanks, Michael



2016-06-24 10:09 GMT+02:00 thomas bonfort :

> Try deleting everything in the build directory and starting again,
> might be a cmake cache problem...
>
> On 24 June 2016 at 10:07, Michael Schulz 
> wrote:
> > Hi,
> >
> > I have exactly the same issue here. Trying to build mapserver on SLES 11
> > SP4, I have disabled harfbuzz and fribidi:
> >
> > cmake .. \
> >  -DCMAKE_PREFIX_PATH=/opt/gdal-trunk \
> > -DWITH_CLIENT_WFS=ON \
> > -DWITH_CLIENT_WMS=ON \
> > -DWITH_CURL=ON \
> > -DWITH_SOS=ON \
> > -DWITH_PHP=ON \
> > -DWITH_PYTHON=ON \
> > -DWITH_SVGCAIRO=ON \
> > -DWITH_ORACLESPATIAL=ON \
> > -DWITH_HARFBUZZ=0 \
> > -DWITH_FRIBIDI=0 \
> > -DWITH_FCGI=0 \
> >  >../configure.out.txt
> >
> > configure.out:
> > -- The C compiler identification is GNU 4.3.4
> > -- The CXX compiler identification is GNU 4.3.4
> > -- 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.2.31")
> > -- Found JPEG: /usr/lib64/libjpeg.so
> > -- Found Freetype: /usr/lib64/libfreetype.so
> > -- Found PROJ: /usr/lib64/libproj.so
> > -- Looking for iconv
> > -- Looking for iconv - found
> > -- Found iconv library:
> > -- Found PkgConfig: /usr/bin/pkg-config (found version "0.23")
> > -- checking for module 'cairo'
> > --   found cairo, version 1.8.8
> > -- Found CAIRO: /usr/lib64/libcairo.so
> > -- Found ORACLE:
> >
> /home/oracle/app/oracle/product/12.1.0/client_1/lib/libclntsh.so;/home/oracle/app/oracle/product/12.1.0/client_1/lib/libocci.so;/home/oracle/app/oracle/product/12.1.0/client_1/lib/libnnz12.so
> > -- Found GEOS: /usr/lib64/libgeos_c.so
> > -- Found POSTGRESQL: /usr/lib64/libpq.so
> > -- Looking for PQserverVersion in pq
> > -- Looking for PQserverVersion in pq - found
> > -- Found GDAL: /opt/gdal-trunk/lib/libgdal.so
> > -- Found SVG: /usr/local/lib/libsvg.so
> > -- Found SVG

Re: [mapserver-users] Building Mapserver - missing strlcat... methods

2016-06-24 Thread thomas bonfort
Try deleting everything in the build directory and starting again,
might be a cmake cache problem...

On 24 June 2016 at 10:07, Michael Schulz  wrote:
> Hi,
>
> I have exactly the same issue here. Trying to build mapserver on SLES 11
> SP4, I have disabled harfbuzz and fribidi:
>
> cmake .. \
>  -DCMAKE_PREFIX_PATH=/opt/gdal-trunk \
> -DWITH_CLIENT_WFS=ON \
> -DWITH_CLIENT_WMS=ON \
> -DWITH_CURL=ON \
> -DWITH_SOS=ON \
> -DWITH_PHP=ON \
> -DWITH_PYTHON=ON \
> -DWITH_SVGCAIRO=ON \
> -DWITH_ORACLESPATIAL=ON \
> -DWITH_HARFBUZZ=0 \
> -DWITH_FRIBIDI=0 \
> -DWITH_FCGI=0 \
>  >../configure.out.txt
>
> configure.out:
> -- The C compiler identification is GNU 4.3.4
> -- The CXX compiler identification is GNU 4.3.4
> -- 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.2.31")
> -- Found JPEG: /usr/lib64/libjpeg.so
> -- Found Freetype: /usr/lib64/libfreetype.so
> -- Found PROJ: /usr/lib64/libproj.so
> -- Looking for iconv
> -- Looking for iconv - found
> -- Found iconv library:
> -- Found PkgConfig: /usr/bin/pkg-config (found version "0.23")
> -- checking for module 'cairo'
> --   found cairo, version 1.8.8
> -- Found CAIRO: /usr/lib64/libcairo.so
> -- Found ORACLE:
> /home/oracle/app/oracle/product/12.1.0/client_1/lib/libclntsh.so;/home/oracle/app/oracle/product/12.1.0/client_1/lib/libocci.so;/home/oracle/app/oracle/product/12.1.0/client_1/lib/libnnz12.so
> -- Found GEOS: /usr/lib64/libgeos_c.so
> -- Found POSTGRESQL: /usr/lib64/libpq.so
> -- Looking for PQserverVersion in pq
> -- Looking for PQserverVersion in pq - found
> -- Found GDAL: /opt/gdal-trunk/lib/libgdal.so
> -- Found SVG: /usr/local/lib/libsvg.so
> -- Found SVGCAIRO: /usr/local/lib/libsvg-cairo.so
> -- Found CURL: /usr/lib64/libcurl.so (found version "7.19.7")
> -- Found LibXml2: /usr/lib64/libxml2.so (found version "2.7.6")
> -- Performing Test GIF_GifFileType_UserData
> -- Performing Test GIF_GifFileType_UserData - Success
> -- Found GIF: /usr/lib64/libgif.so (found version "4")
> -- Found SWIG: /usr/bin/swig (found version "1.3.36")
> -- Found PythonInterp: /usr/bin/python (found version "2.6.9")
> -- * Summary of configured options for this build
> --  * Mandatory components
> --   * png: /usr/lib64/libpng.so
> --   * jpeg: /usr/lib64/libjpeg.so
> --   * freetype: /usr/lib64/libfreetype.so
> --  * Optional components
> --   * GDAL: /opt/gdal-trunk/lib/libgdal.so
> --   * OGR: /opt/gdal-trunk/lib/libgdal.so
> --   * GIF: /usr/lib64/libgif.so
> --   * MYSQL: disabled
> --   * FRIBIDI: disabled
> --   * HARFBUZZ: disabled
> --   * GIF: /usr/lib64/libgif.so
> --   * CAIRO: /usr/lib64/libcairo.so
> --   * SVGCAIRO: /usr/local/lib/libsvg-cairo.so
> --   * RSVG: disabled
> --   * CURL: /usr/lib64/libcurl.so
> --   * PROJ: /usr/lib64/libproj.so
> --   * PIXMAN: disabled
> --   * LIBXML2: /usr/lib64/libxml2.so
> --   * POSTGIS: /usr/lib64/libpq.so
> --   * GEOS: /usr/lib64/libgeos_c.so
> --   * FastCGI: disabled
> --   * Oracle Spatial:
> /home/oracle/app/oracle/product/12.1.0/client_1/lib/libclntsh.so;/home/oracle/app/oracle/product/12.1.0/client_1/lib/libocci.so;/home/oracle/app/oracle/product/12.1.0/client_1/lib/libnnz12.so
> --   * Exempi XMP: disabled
> --  * Optional features
> --   * WMS SERVER: ENABLED
> --   * WFS SERVER: ENABLED
> --   * WCS SERVER: ENABLED
> --   * SOS SERVER: ENABLED
> --   * WMS CLIENT: ENABLED
> --   * WFS CLIENT: ENABLED
> --   * ICONV: ENABLED
> --   * Thread-safety support: disabled
> --   * KML output: disabled
> --   * Z+M point coordinate support: disabled
> --   * XML Mapfile support: disabled
> --  * Mapscripts
> --   * Python: ENABLED
> --   * PHP: ENABLED
> --   * PERL: disabled
> --   * RUBY: di

Re: [mapserver-users] Building Mapserver - missing strlcat... methods

2016-06-24 Thread Michael Schulz
Hi,

I have exactly the same issue here. Trying to build mapserver on SLES 11
SP4, I have disabled harfbuzz and fribidi:

cmake .. \
 -DCMAKE_PREFIX_PATH=/opt/gdal-trunk \
-DWITH_CLIENT_WFS=ON \
-DWITH_CLIENT_WMS=ON \
-DWITH_CURL=ON \
-DWITH_SOS=ON \
-DWITH_PHP=ON \
-DWITH_PYTHON=ON \
-DWITH_SVGCAIRO=ON \
-DWITH_ORACLESPATIAL=ON \
-DWITH_HARFBUZZ=0 \
-DWITH_FRIBIDI=0 \
-DWITH_FCGI=0 \
 >../configure.out.txt

configure.out:
-- The C compiler identification is GNU 4.3.4
-- The CXX compiler identification is GNU 4.3.4
-- 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.2.31")
-- Found JPEG: /usr/lib64/libjpeg.so
-- Found Freetype: /usr/lib64/libfreetype.so
-- Found PROJ: /usr/lib64/libproj.so
-- Looking for iconv
-- Looking for iconv - found
-- Found iconv library:
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.23")
-- checking for module 'cairo'
--   found cairo, version 1.8.8
-- Found CAIRO: /usr/lib64/libcairo.so
-- Found ORACLE:
/home/oracle/app/oracle/product/12.1.0/client_1/lib/libclntsh.so;/home/oracle/app/oracle/product/12.1.0/client_1/lib/libocci.so;/home/oracle/app/oracle/product/12.1.0/client_1/lib/libnnz12.so
-- Found GEOS: /usr/lib64/libgeos_c.so
-- Found POSTGRESQL: /usr/lib64/libpq.so
-- Looking for PQserverVersion in pq
-- Looking for PQserverVersion in pq - found
-- Found GDAL: /opt/gdal-trunk/lib/libgdal.so
-- Found SVG: /usr/local/lib/libsvg.so
-- Found SVGCAIRO: /usr/local/lib/libsvg-cairo.so
-- Found CURL: /usr/lib64/libcurl.so (found version "7.19.7")
-- Found LibXml2: /usr/lib64/libxml2.so (found version "2.7.6")
-- Performing Test GIF_GifFileType_UserData
-- Performing Test GIF_GifFileType_UserData - Success
-- Found GIF: /usr/lib64/libgif.so (found version "4")
-- Found SWIG: /usr/bin/swig (found version "1.3.36")
-- Found PythonInterp: /usr/bin/python (found version "2.6.9")
-- * Summary of configured options for this build
--  * Mandatory components
--   * png: /usr/lib64/libpng.so
--   * jpeg: /usr/lib64/libjpeg.so
--   * freetype: /usr/lib64/libfreetype.so
--  * Optional components
--   * GDAL: /opt/gdal-trunk/lib/libgdal.so
--   * OGR: /opt/gdal-trunk/lib/libgdal.so
--   * GIF: /usr/lib64/libgif.so
--   * MYSQL: disabled
--   * FRIBIDI: disabled
--   * HARFBUZZ: disabled
--   * GIF: /usr/lib64/libgif.so
--   * CAIRO: /usr/lib64/libcairo.so
--   * SVGCAIRO: /usr/local/lib/libsvg-cairo.so
--   * RSVG: disabled
--   * CURL: /usr/lib64/libcurl.so
--   * PROJ: /usr/lib64/libproj.so
--   * PIXMAN: disabled
--   * LIBXML2: /usr/lib64/libxml2.so
--   * POSTGIS: /usr/lib64/libpq.so
--   * GEOS: /usr/lib64/libgeos_c.so
--   * FastCGI: disabled
--   * Oracle Spatial:
/home/oracle/app/oracle/product/12.1.0/client_1/lib/libclntsh.so;/home/oracle/app/oracle/product/12.1.0/client_1/lib/libocci.so;/home/oracle/app/oracle/product/12.1.0/client_1/lib/libnnz12.so
--   * Exempi XMP: disabled
--  * Optional features
--   * WMS SERVER: ENABLED
--   * WFS SERVER: ENABLED
--   * WCS SERVER: ENABLED
--   * SOS SERVER: ENABLED
--   * WMS CLIENT: ENABLED
--   * WFS CLIENT: ENABLED
--   * ICONV: ENABLED
--   * Thread-safety support: disabled
--   * KML output: disabled
--   * Z+M point coordinate support: disabled
--   * XML Mapfile support: disabled
--  * Mapscripts
--   * Python: ENABLED
--   * PHP: ENABLED
--   * PERL: disabled
--   * RUBY: disabled
--   * JAVA: disabled
--   * C#: disabled
--   * V8 Javascript: disabled
--   * Apache Module (Experimental): disabled
--
-- Will install files to /usr/local
-- Will install libraries to /usr/local/lib
-- Configuring incomplete, errors occurred!

Is this related to disabling Harfbuzz or Fribidi? I understood that
Harfbuzz is not needed unless for special languages character rendering?

Thanks,