Cannot compile even though I tried installing the dependencies using yum install
Error log:
 
Determining if the function strrstr exists failed with the following output:
Change Dir: /home/jkadir/Downloads/mapserver-7.4.1/build/CMakeFiles/CMakeTmp
 
Run Build Command:/usr/bin/gmake "cmTryCompileExec1767639631/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec1767639631.dir/build.make CMakeFiles/cmTryCompileExec1767639631.dir/build
gmake[1]: Entering directory `/home/jkadir/Downloads/mapserver-7.4.1/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/jkadir/Downloads/mapserver-7.4.1/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec1767639631.dir/CheckFunctionExists.c.o
/usr/bin/cc   -DCHECK_FUNCTION_EXISTS=strrstr -I/home/jkadir/Downloads/mapserver-7.4.1/build/CMakeFiles/CMakeTmp/math.h    -o CMakeFiles/cmTryCompileExec1767639631.dir/CheckFunctionExists.c.o   -c /usr/share/cmake/Modules/CheckFunctionExists.c
Linking C executable cmTryCompileExec1767639631
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec1767639631.dir/link.txt --verbose=1
/usr/bin/cc   -DCHECK_FUNCTION_EXISTS=strrstr    CMakeFiles/cmTryCompileExec1767639631.dir/CheckFunctionExists.c.o  -o cmTryCompileExec1767639631 -rdynamic -lm 
CMakeFiles/cmTryCompileExec1767639631.dir/CheckFunctionExists.c.o: In function `main':
CheckFunctionExists.c:(.text+0x15): undefined reference to `strrstr'
collect2: error: ld returned 1 exit status
gmake[1]: *** [cmTryCompileExec1767639631] Error 1
gmake[1]: Leaving directory `/home/jkadir/Downloads/mapserver-7.4.1/build/CMakeFiles/CMakeTmp'
gmake: *** [cmTryCompileExec1767639631/fast] Error 2
 
Determining if the function strlcat exists failed with the following output:
Change Dir: /home/jkadir/Downloads/mapserver-7.4.1/build/CMakeFiles/CMakeTmp
 
Run Build Command:/usr/bin/gmake "cmTryCompileExec1265774941/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec1265774941.dir/build.make CMakeFiles/cmTryCompileExec1265774941.dir/build
gmake[1]: Entering directory `/home/jkadir/Downloads/mapserver-7.4.1/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/jkadir/Downloads/mapserver-7.4.1/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec1265774941.dir/CheckFunctionExists.c.o
/usr/bin/cc   -DCHECK_FUNCTION_EXISTS=strlcat -I/home/jkadir/Downloads/mapserver-7.4.1/build/CMakeFiles/CMakeTmp/math.h    -o CMakeFiles/cmTryCompileExec1265774941.dir/CheckFunctionExists.c.o   -c /usr/share/cmake/Modules/CheckFunctionExists.c
Linking C executable cmTryCompileExec1265774941
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec1265774941.dir/link.txt --verbose=1
/usr/bin/cc   -DCHECK_FUNCTION_EXISTS=strlcat    CMakeFiles/cmTryCompileExec1265774941.dir/CheckFunctionExists.c.o  -o cmTryCompileExec1265774941 -rdynamic -lm 
CMakeFiles/cmTryCompileExec1265774941.dir/CheckFunctionExists.c.o: In function `main':
CheckFunctionExists.c:(.text+0x15): undefined reference to `strlcat'
collect2: error: ld returned 1 exit status
gmake[1]: *** [cmTryCompileExec1265774941] Error 1
gmake[1]: Leaving directory `/home/jkadir/Downloads/mapserver-7.4.1/build/CMakeFiles/CMakeTmp'
gmake: *** [cmTryCompileExec1265774941/fast] Error 2
 
Determining if the function strlcpy exists failed with the following output:
Change Dir: /home/jkadir/Downloads/mapserver-7.4.1/build/CMakeFiles/CMakeTmp
 
Run Build Command:/usr/bin/gmake "cmTryCompileExec4105141590/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec4105141590.dir/build.make CMakeFiles/cmTryCompileExec4105141590.dir/build
gmake[1]: Entering directory `/home/jkadir/Downloads/mapserver-7.4.1/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/jkadir/Downloads/mapserver-7.4.1/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec4105141590.dir/CheckFunctionExists.c.o
/usr/bin/cc   -DCHECK_FUNCTION_EXISTS=strlcpy -I/home/jkadir/Downloads/mapserver-7.4.1/build/CMakeFiles/CMakeTmp/math.h    -o CMakeFiles/cmTryCompileExec4105141590.dir/CheckFunctionExists.c.o   -c /usr/share/cmake/Modules/CheckFunctionExists.c
Linking C executable cmTryCompileExec4105141590
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec4105141590.dir/link.txt --verbose=1
/usr/bin/cc   -DCHECK_FUNCTION_EXISTS=strlcpy    CMakeFiles/cmTryCompileExec4105141590.dir/CheckFunctionExists.c.o  -o cmTryCompileExec4105141590 -rdynamic -lm 
CMakeFiles/cmTryCompileExec4105141590.dir/CheckFunctionExists.c.o: In function `main':
CheckFunctionExists.c:(.text+0x15): undefined reference to `strlcpy'
collect2: error: ld returned 1 exit status
gmake[1]: *** [cmTryCompileExec4105141590] Error 1
gmake[1]: Leaving directory `/home/jkadir/Downloads/mapserver-7.4.1/build/CMakeFiles/CMakeTmp'
gmake: *** [cmTryCompileExec4105141590/fast] Error 2
 


19.08.2019, 15:51, "Lime, Steve D (MNIT)" <steve.l...@state.mn.us>:

They are defaults as are GEOS, GDAL, PROJ (and I think PostGIS). Cmake does a pretty good job of finding things.

 

From: Jeremy JK [mailto:jeremy...@yandex.com]
Sent: Monday, August 19, 2019 9:27 AM
To: Lime, Steve D (MNIT) <steve.l...@state.mn.us>; mapserver-users <mapserver-users@lists.osgeo.org>
Subject: Re: [mapserver-users] Compiling mapserver with options

 

This message may be from an external email source.

Do not select links or open attachments unless verified. Report all suspicious emails to Minnesota IT Services Security Operations Center.

 

Steve,

Thanks for the reply
This is what I came up with after viewing the CMakelists file

 

cmake -DCMAKE_INSTALL_PREFIX=/usr \

      -DWITH_GDAL

      -DWITH_PROJ=/usr/local

      -DWITH_POSTGIS=/usr/bin/pg_config

      -DWITH_CLIENT_WMS

      -DWITH_GEOS=/usr/local/bin/geos-config

      -DWITH_FCGI

 

but unsure about jpeg, freetype, png 

How to compile w/ these options?

Or are they default?

 

 

 

19.08.2019, 02:08, "Lime, Steve D (MNIT)" <steve.l...@state.mn.us>:

That should be a pretty vanilla 7.4 install. The new versions use cmake so from source it would be something like this from the source directory...

mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
make
make install

This page https://mapserver.org/installation/unix.html has complete instructions. Note that 7.4 doesn’t use GD any more.

—Steve


From: mapserver-users <mapserver-users-boun...@lists.osgeo.org> on behalf of Jeremy JK <jeremy...@yandex.com>
Sent: Saturday, August 17, 2019 6:52:56 PM
To: mapserver-users <mapserver-users@lists.osgeo.org>
Subject: [mapserver-users] Compiling mapserver with options

 

This message may be from an external email source.

Do not select links or open attachments unless verified. Report all suspicious emails to Minnesota IT Services Security Operations Center.

 

Hello all,

 

OK

My supervisor wants me to compile mapserver version 6.2.1 like so

 

./configure --prefix=/usr --with-gdal --with-proj=/usr/local --with-jpeg --with-freetype --with-postgis=/usr/bin/pg_config --with-wmsclient --with-geos=/usr/local/bin/geos-config --with-fastcgi=/usr/lib --with-gif=no --with-gd --with-png

 

now gdal, proj, freetype, postgis and fastcgi have all been installed on RHEL 7.3 server

 

But

I want to use the latest mapserver 7.4.1

but that uses cmake

how compile mapserver 7 with the configuration like 6 above?

Thanks for the guidance

 

Jeremy Kadir

Department of Geomatics Eng. & Land Mgmt.

The University of the West Indies

(868) 309 9123

 

 

 

 

 

 

Jeremy Kadir

Department of Geomatics Eng. & Land Mgmt.

The University of the West Indies

(868) 309 9123

 

 

 



 
Jeremy Kadir
Department of Geomatics Eng. & Land Mgmt.
The University of the West Indies
(868) 309 9123
 
 

_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to