<div>Cannot compile even though I tried installing the dependencies using yum install<br />Error log:</div><div> </div><div><div><div>Determining if the function strrstr exists failed with the following output:</div><div>Change Dir: /home/jkadir/Downloads/mapserver-7.4.1/build/CMakeFiles/CMakeTmp</div><div> </div><div>Run Build Command:/usr/bin/gmake "cmTryCompileExec1767639631/fast"</div><div>/usr/bin/gmake -f CMakeFiles/cmTryCompileExec1767639631.dir/build.make CMakeFiles/cmTryCompileExec1767639631.dir/build</div><div>gmake[1]: Entering directory `/home/jkadir/Downloads/mapserver-7.4.1/build/CMakeFiles/CMakeTmp'</div><div>/usr/bin/cmake -E cmake_progress_report /home/jkadir/Downloads/mapserver-7.4.1/build/CMakeFiles/CMakeTmp/CMakeFiles 1</div><div>Building C object CMakeFiles/cmTryCompileExec1767639631.dir/CheckFunctionExists.c.o</div><div>/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</div><div>Linking C executable cmTryCompileExec1767639631</div><div>/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec1767639631.dir/link.txt --verbose=1</div><div>/usr/bin/cc   -DCHECK_FUNCTION_EXISTS=strrstr    CMakeFiles/cmTryCompileExec1767639631.dir/CheckFunctionExists.c.o  -o cmTryCompileExec1767639631 -rdynamic -lm </div><div>CMakeFiles/cmTryCompileExec1767639631.dir/CheckFunctionExists.c.o: In function `main':</div><div>CheckFunctionExists.c:(.text+0x15): undefined reference to `strrstr'</div><div>collect2: error: ld returned 1 exit status</div><div>gmake[1]: *** [cmTryCompileExec1767639631] Error 1</div><div>gmake[1]: Leaving directory `/home/jkadir/Downloads/mapserver-7.4.1/build/CMakeFiles/CMakeTmp'</div><div>gmake: *** [cmTryCompileExec1767639631/fast] Error 2</div><div> </div><div>Determining if the function strlcat exists failed with the following output:</div><div>Change Dir: /home/jkadir/Downloads/mapserver-7.4.1/build/CMakeFiles/CMakeTmp</div><div> </div><div>Run Build Command:/usr/bin/gmake "cmTryCompileExec1265774941/fast"</div><div>/usr/bin/gmake -f CMakeFiles/cmTryCompileExec1265774941.dir/build.make CMakeFiles/cmTryCompileExec1265774941.dir/build</div><div>gmake[1]: Entering directory `/home/jkadir/Downloads/mapserver-7.4.1/build/CMakeFiles/CMakeTmp'</div><div>/usr/bin/cmake -E cmake_progress_report /home/jkadir/Downloads/mapserver-7.4.1/build/CMakeFiles/CMakeTmp/CMakeFiles 1</div><div>Building C object CMakeFiles/cmTryCompileExec1265774941.dir/CheckFunctionExists.c.o</div><div>/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</div><div>Linking C executable cmTryCompileExec1265774941</div><div>/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec1265774941.dir/link.txt --verbose=1</div><div>/usr/bin/cc   -DCHECK_FUNCTION_EXISTS=strlcat    CMakeFiles/cmTryCompileExec1265774941.dir/CheckFunctionExists.c.o  -o cmTryCompileExec1265774941 -rdynamic -lm </div><div>CMakeFiles/cmTryCompileExec1265774941.dir/CheckFunctionExists.c.o: In function `main':</div><div>CheckFunctionExists.c:(.text+0x15): undefined reference to `strlcat'</div><div>collect2: error: ld returned 1 exit status</div><div>gmake[1]: *** [cmTryCompileExec1265774941] Error 1</div><div>gmake[1]: Leaving directory `/home/jkadir/Downloads/mapserver-7.4.1/build/CMakeFiles/CMakeTmp'</div><div>gmake: *** [cmTryCompileExec1265774941/fast] Error 2</div><div> </div><div>Determining if the function strlcpy exists failed with the following output:</div><div>Change Dir: /home/jkadir/Downloads/mapserver-7.4.1/build/CMakeFiles/CMakeTmp</div><div> </div><div>Run Build Command:/usr/bin/gmake "cmTryCompileExec4105141590/fast"</div><div>/usr/bin/gmake -f CMakeFiles/cmTryCompileExec4105141590.dir/build.make CMakeFiles/cmTryCompileExec4105141590.dir/build</div><div>gmake[1]: Entering directory `/home/jkadir/Downloads/mapserver-7.4.1/build/CMakeFiles/CMakeTmp'</div><div>/usr/bin/cmake -E cmake_progress_report /home/jkadir/Downloads/mapserver-7.4.1/build/CMakeFiles/CMakeTmp/CMakeFiles 1</div><div>Building C object CMakeFiles/cmTryCompileExec4105141590.dir/CheckFunctionExists.c.o</div><div>/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</div><div>Linking C executable cmTryCompileExec4105141590</div><div>/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec4105141590.dir/link.txt --verbose=1</div><div>/usr/bin/cc   -DCHECK_FUNCTION_EXISTS=strlcpy    CMakeFiles/cmTryCompileExec4105141590.dir/CheckFunctionExists.c.o  -o cmTryCompileExec4105141590 -rdynamic -lm </div><div>CMakeFiles/cmTryCompileExec4105141590.dir/CheckFunctionExists.c.o: In function `main':</div><div>CheckFunctionExists.c:(.text+0x15): undefined reference to `strlcpy'</div><div>collect2: error: ld returned 1 exit status</div><div>gmake[1]: *** [cmTryCompileExec4105141590] Error 1</div><div>gmake[1]: Leaving directory `/home/jkadir/Downloads/mapserver-7.4.1/build/CMakeFiles/CMakeTmp'</div><div>gmake: *** [cmTryCompileExec4105141590/fast] Error 2</div><div> </div></div></div><div><br /></div><div><br /></div><div>19.08.2019, 15:51, "Lime, Steve D (MNIT)" <steve.lime@state.mn.us>:</div><blockquote><div lang="EN-US">
<div class="b39b6a814cfb942767634c02c856d40494d097e9352d92e7b90ff944f0bfba61WordSection1">
<p class="a5c8b0e714da563fe90b98cef41456e9db9fe9049761426654245bb2dd862eecMsoNormal"><span style="color:#1f497d;font:11pt 'calibri' , sans-serif">They are defaults as are GEOS, GDAL, PROJ (and I think PostGIS). Cmake does a pretty good job of finding things.
</span></p>
<p class="a5c8b0e714da563fe90b98cef41456e9db9fe9049761426654245bb2dd862eecMsoNormal"><span style="color:#1f497d;font:11pt 'calibri' , sans-serif"> </span></p>
<div>
<div style="border-style:solid none none none;border-top-color:#e1e1e1;border-width:1pt medium medium medium;padding:3pt 0in 0in 0in">
<p class="a5c8b0e714da563fe90b98cef41456e9db9fe9049761426654245bb2dd862eecMsoNormal"><b><span style="font:11pt 'calibri' , sans-serif">From:</span></b><span style="font:11pt 'calibri' , sans-serif"> Jeremy JK [mailto:<a href="mailto:jeremy.jk@yandex.com">jeremy.jk@yandex.com</a>]
<br />
<b>Sent:</b> Monday, August 19, 2019 9:27 AM<br />
<b>To:</b> Lime, Steve D (MNIT) <<a href="mailto:steve.lime@state.mn.us">steve.lime@state.mn.us</a>>; mapserver-users <<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>><br />
<b>Subject:</b> Re: [mapserver-users] Compiling mapserver with options</span></p>
</div>
</div>
<p class="a5c8b0e714da563fe90b98cef41456e9db9fe9049761426654245bb2dd862eecMsoNormal"> </p>
<table align="left" border="0" cellpadding="0" cellspacing="0" class="2409ab1aab887537f2af21d56d07b9fb117fce02be939a2cb5011a507fd844dcMsoNormalTable" width="100%" style="width:100%"><tbody><tr><td style="background:#ffc845;padding:5.25pt 1.5pt 5.25pt 1.5pt"></td><td width="100%" style="background:#fff3dd;padding:5.25pt 3.75pt 5.25pt 11.25pt;width:100%;word-wrap:break-word">
<div>
<div>
<p class="a5c8b0e714da563fe90b98cef41456e9db9fe9049761426654245bb2dd862eecMsoNormal">
<b><span style="color:#003865;font:11pt 'calibri' , sans-serif">This message may be from an external email source.</span></b><span style="color:#003865;font:11pt 'calibri' , sans-serif"></span></p>
</div>
<div>
<p class="a5c8b0e714da563fe90b98cef41456e9db9fe9049761426654245bb2dd862eecMsoNormal">
<span style="color:#003865;font:9pt 'calibri' , sans-serif">Do not select links or open attachments unless verified. Report all suspicious emails to Minnesota IT Services Security Operations Center.</span></p>
</div>
</div>
</td></tr></tbody></table>
<p class="a5c8b0e714da563fe90b98cef41456e9db9fe9049761426654245bb2dd862eecMsoNormal" style="margin-bottom:12pt"> </p>
<div>
<div>
<p class="a5c8b0e714da563fe90b98cef41456e9db9fe9049761426654245bb2dd862eecMsoNormal">Steve,</p>
</div>
<div>
<p class="a5c8b0e714da563fe90b98cef41456e9db9fe9049761426654245bb2dd862eecMsoNormal">Thanks for the reply<br />
This is what I came up with after viewing the CMakelists file</p>
</div>
<div>
<p class="a5c8b0e714da563fe90b98cef41456e9db9fe9049761426654245bb2dd862eecMsoNormal"> </p>
</div>
<div>
<div>
<p class="a5c8b0e714da563fe90b98cef41456e9db9fe9049761426654245bb2dd862eecMsoNormal">cmake -DCMAKE_INSTALL_PREFIX=/usr \</p>
</div>
<div>
<p class="a5c8b0e714da563fe90b98cef41456e9db9fe9049761426654245bb2dd862eecMsoNormal">      -DWITH_GDAL</p>
</div>
<div>
<p class="a5c8b0e714da563fe90b98cef41456e9db9fe9049761426654245bb2dd862eecMsoNormal">      -DWITH_PROJ=/usr/local</p>
</div>
<div>
<p class="a5c8b0e714da563fe90b98cef41456e9db9fe9049761426654245bb2dd862eecMsoNormal">      -DWITH_POSTGIS=/usr/bin/pg_config</p>
</div>
<div>
<p class="a5c8b0e714da563fe90b98cef41456e9db9fe9049761426654245bb2dd862eecMsoNormal">      -DWITH_CLIENT_WMS</p>
</div>
<div>
<p class="a5c8b0e714da563fe90b98cef41456e9db9fe9049761426654245bb2dd862eecMsoNormal">      -DWITH_GEOS=/usr/local/bin/geos-config</p>
</div>
<div>
<p class="a5c8b0e714da563fe90b98cef41456e9db9fe9049761426654245bb2dd862eecMsoNormal">      -DWITH_FCGI</p>
</div>
<div>
<p class="a5c8b0e714da563fe90b98cef41456e9db9fe9049761426654245bb2dd862eecMsoNormal"> </p>
</div>
<div>
<p class="a5c8b0e714da563fe90b98cef41456e9db9fe9049761426654245bb2dd862eecMsoNormal">but unsure about jpeg, freetype, png </p>
</div>
<div>
<p class="a5c8b0e714da563fe90b98cef41456e9db9fe9049761426654245bb2dd862eecMsoNormal">How to compile w/ these options?</p>
</div>
<div>
<p class="a5c8b0e714da563fe90b98cef41456e9db9fe9049761426654245bb2dd862eecMsoNormal">Or are they default?</p>
</div>
<div>
<p class="a5c8b0e714da563fe90b98cef41456e9db9fe9049761426654245bb2dd862eecMsoNormal"> </p>
</div>
</div>
<div>
<p class="a5c8b0e714da563fe90b98cef41456e9db9fe9049761426654245bb2dd862eecMsoNormal"> </p>
</div>
<div>
<p class="a5c8b0e714da563fe90b98cef41456e9db9fe9049761426654245bb2dd862eecMsoNormal"> </p>
</div>
<div>
<p class="a5c8b0e714da563fe90b98cef41456e9db9fe9049761426654245bb2dd862eecMsoNormal">19.08.2019, 02:08, "Lime, Steve D (MNIT)" <<a href="mailto:steve.lime@state.mn.us">steve.lime@state.mn.us</a>>:</p>
</div>
<blockquote style="margin-bottom:5pt;margin-top:5pt">
<p class="a5c8b0e714da563fe90b98cef41456e9db9fe9049761426654245bb2dd862eecMsoNormal">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...<br />
<br />
mkdir build<br />
cd build<br />
cmake -DCMAKE_INSTALL_PREFIX=/usr ..<br />
make<br />
make install<br />
<br />
This page <a href="https://gcc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmapserver.org%2Finstallation%2Funix.html&data=02%7C01%7Csteve.lime%40state.mn.us%7C6cb683c789e54741d7b708d724b14fc3%7Ceb14b04624c445198f26b89c2159828c%7C0%7C1%7C637018216278270884&sdata=LKXDGXW7aSXA3SglCRW8skjYAHYGPhp64pZnuxtF65E%3D&reserved=0">
https://mapserver.org/installation/unix.html</a> has complete instructions. Note that 7.4 doesn’t use GD any more.<br />
<br />
—Steve</p>
<div align="center" class="a5c8b0e714da563fe90b98cef41456e9db9fe9049761426654245bb2dd862eecMsoNormal" style="text-align:center">
<hr align="center" size="2" width="98%" />
</div>
<div id="55e4547d9347256f43584f3f659ddddac205d38813b6d6aa2c650e1e9ae12fb9ca2944a1601373f79e11027eba6e57c3143d95406757383ab92f9b574181a7d8divRplyFwdMsg">
<p class="a5c8b0e714da563fe90b98cef41456e9db9fe9049761426654245bb2dd862eecMsoNormal"><b><span style="color:black;font:11pt 'calibri' , sans-serif">From:</span></b><span style="color:black;font:11pt 'calibri' , sans-serif"> mapserver-users <<a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a>>
 on behalf of Jeremy JK <<a href="mailto:jeremy.jk@yandex.com">jeremy.jk@yandex.com</a>><br />
<b>Sent:</b> Saturday, August 17, 2019 6:52:56 PM<br />
<b>To:</b> mapserver-users <<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>><br />
<b>Subject:</b> [mapserver-users] Compiling mapserver with options</span> </p>
<div>
<p class="a5c8b0e714da563fe90b98cef41456e9db9fe9049761426654245bb2dd862eecMsoNormal"> </p>
</div>
</div>
<div>
<table align="left" border="0" cellpadding="0" cellspacing="0" class="2409ab1aab887537f2af21d56d07b9fb117fce02be939a2cb5011a507fd844dcMsoNormalTable" width="100%" style="width:100%"><tbody><tr><td style="background:#ffc845;padding:5.25pt 1.5pt 5.25pt 1.5pt"></td><td width="100%" style="background:#fff3dd;padding:5.25pt 3.75pt 5.25pt 11.25pt;width:100%;word-wrap:break-word">
<div>
<div>
<p class="a5c8b0e714da563fe90b98cef41456e9db9fe9049761426654245bb2dd862eecMsoNormal">
<b><span style="color:#003865;font:11pt 'calibri' , sans-serif">This message may be from an external email source.</span></b><span style="color:#003865;font:11pt 'calibri' , sans-serif"></span></p>
</div>
<div>
<p class="a5c8b0e714da563fe90b98cef41456e9db9fe9049761426654245bb2dd862eecMsoNormal">
<span style="color:#003865;font:9pt 'calibri' , sans-serif">Do not select links or open attachments unless verified. Report all suspicious emails to Minnesota IT Services Security Operations Center.</span></p>
</div>
</div>
</td></tr></tbody></table>
<p class="a5c8b0e714da563fe90b98cef41456e9db9fe9049761426654245bb2dd862eecMsoNormal" style="margin-bottom:12pt"> </p>
<div>
<div>
<p class="a5c8b0e714da563fe90b98cef41456e9db9fe9049761426654245bb2dd862eecMsoNormal">Hello all,</p>
</div>
<div>
<p class="a5c8b0e714da563fe90b98cef41456e9db9fe9049761426654245bb2dd862eecMsoNormal"> </p>
</div>
<div>
<p class="a5c8b0e714da563fe90b98cef41456e9db9fe9049761426654245bb2dd862eecMsoNormal">OK</p>
</div>
<div>
<p class="a5c8b0e714da563fe90b98cef41456e9db9fe9049761426654245bb2dd862eecMsoNormal">My supervisor wants me to compile mapserver version 6.2.1 like so</p>
</div>
<div>
<p class="a5c8b0e714da563fe90b98cef41456e9db9fe9049761426654245bb2dd862eecMsoNormal"> </p>
</div>
<div>
<p class="a5c8b0e714da563fe90b98cef41456e9db9fe9049761426654245bb2dd862eecMsoNormal">./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</p>
</div>
<div>
<p class="a5c8b0e714da563fe90b98cef41456e9db9fe9049761426654245bb2dd862eecMsoNormal"> </p>
</div>
<div>
<p class="a5c8b0e714da563fe90b98cef41456e9db9fe9049761426654245bb2dd862eecMsoNormal">now gdal, proj, freetype, postgis and fastcgi have all been installed on RHEL 7.3 server</p>
</div>
<div>
<p class="a5c8b0e714da563fe90b98cef41456e9db9fe9049761426654245bb2dd862eecMsoNormal"> </p>
</div>
<div>
<p class="a5c8b0e714da563fe90b98cef41456e9db9fe9049761426654245bb2dd862eecMsoNormal">But</p>
</div>
<div>
<p class="a5c8b0e714da563fe90b98cef41456e9db9fe9049761426654245bb2dd862eecMsoNormal">I want to use the latest mapserver 7.4.1</p>
</div>
<div>
<p class="a5c8b0e714da563fe90b98cef41456e9db9fe9049761426654245bb2dd862eecMsoNormal">but that uses cmake</p>
</div>
<div>
<p class="a5c8b0e714da563fe90b98cef41456e9db9fe9049761426654245bb2dd862eecMsoNormal">how compile mapserver 7 with the configuration like 6 above?</p>
</div>
<div>
<p class="a5c8b0e714da563fe90b98cef41456e9db9fe9049761426654245bb2dd862eecMsoNormal">Thanks for the guidance</p>
</div>
<div>
<p class="a5c8b0e714da563fe90b98cef41456e9db9fe9049761426654245bb2dd862eecMsoNormal"> </p>
</div>
<div>
<p class="a5c8b0e714da563fe90b98cef41456e9db9fe9049761426654245bb2dd862eecMsoNormal">Jeremy Kadir</p>
</div>
<div>
<p class="a5c8b0e714da563fe90b98cef41456e9db9fe9049761426654245bb2dd862eecMsoNormal">Department of Geomatics Eng. & Land Mgmt.</p>
</div>
<div>
<p class="a5c8b0e714da563fe90b98cef41456e9db9fe9049761426654245bb2dd862eecMsoNormal">The University of the West Indies</p>
</div>
<div>
<p class="a5c8b0e714da563fe90b98cef41456e9db9fe9049761426654245bb2dd862eecMsoNormal"><span class="177d5a4333ac019606de889e143743a1wmi-callto">(868) 309 9123</span></p>
</div>
<div>
<p class="a5c8b0e714da563fe90b98cef41456e9db9fe9049761426654245bb2dd862eecMsoNormal"> </p>
</div>
<div>
<p class="a5c8b0e714da563fe90b98cef41456e9db9fe9049761426654245bb2dd862eecMsoNormal"> </p>
</div>
<div>
<p class="a5c8b0e714da563fe90b98cef41456e9db9fe9049761426654245bb2dd862eecMsoNormal"> </p>
</div>
</div>
</div>
</blockquote>
<div>
<p class="a5c8b0e714da563fe90b98cef41456e9db9fe9049761426654245bb2dd862eecMsoNormal"> </p>
</div>
<div>
<p class="a5c8b0e714da563fe90b98cef41456e9db9fe9049761426654245bb2dd862eecMsoNormal"> </p>
</div>
<div>
<p class="a5c8b0e714da563fe90b98cef41456e9db9fe9049761426654245bb2dd862eecMsoNormal"> </p>
</div>
<div>
<p class="a5c8b0e714da563fe90b98cef41456e9db9fe9049761426654245bb2dd862eecMsoNormal">Jeremy Kadir</p>
</div>
<div>
<p class="a5c8b0e714da563fe90b98cef41456e9db9fe9049761426654245bb2dd862eecMsoNormal">Department of Geomatics Eng. & Land Mgmt.</p>
</div>
<div>
<p class="a5c8b0e714da563fe90b98cef41456e9db9fe9049761426654245bb2dd862eecMsoNormal">The University of the West Indies</p>
</div>
<div>
<p class="a5c8b0e714da563fe90b98cef41456e9db9fe9049761426654245bb2dd862eecMsoNormal"><span class="177d5a4333ac019606de889e143743a1wmi-callto">(868) 309 9123</span></p>
</div>
<div>
<p class="a5c8b0e714da563fe90b98cef41456e9db9fe9049761426654245bb2dd862eecMsoNormal"> </p>
</div>
<div>
<p class="a5c8b0e714da563fe90b98cef41456e9db9fe9049761426654245bb2dd862eecMsoNormal"> </p>
</div>
<div>
<p class="a5c8b0e714da563fe90b98cef41456e9db9fe9049761426654245bb2dd862eecMsoNormal"> </p>
</div>
</div>
</div>
</div>
</blockquote><div><br /></div><div><br /></div><div> </div><div>Jeremy Kadir</div><div>Department of Geomatics Eng. & Land Mgmt.</div><div>The University of the West Indies</div><div>(868) 309 9123</div><div> </div><div> </div><div><br /></div>