<p dir="ltr">You shouldn't be needing any iconv specific switches on centos. Start anew (rm -rf * in the build directory) and just run cmake -DCMAKE_INSTALL_PREFIX=/opt</p>
<p dir="ltr">Thomas</p>
<div class="gmail_quote">On Jun 23, 2015 22:25, "Mérette, Jacques (Consultant)" <<a href="mailto:Jacques.Merette-c@mtq.gouv.qc.ca">Jacques.Merette-c@mtq.gouv.qc.ca</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="FR-CA" link="blue" vlink="purple">
<div>
<p class="MsoNormal">Hi,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><span lang="EN-US">I try to install MapServer 7 (beta) on CentOS 7 and I have the following error:<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal" style="margin-left:35.4pt;text-autospace:none"><span lang="EN-CA" style="font-family:"Courier New"">[root@localhost build]# cmake -DCMAKE_INSTALL_PREFIX=/opt --with-libiconv=/usr/local/lib .. >../configure.out.txt<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:35.4pt;text-autospace:none"><span lang="EN-CA" style="font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal" style="margin-left:35.4pt;text-autospace:none"><span lang="EN-CA" style="font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal" style="margin-left:35.4pt;text-autospace:none"><span lang="EN-CA" style="font-family:"Courier New"">[root@localhost build]# make<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:35.4pt;text-autospace:none"><span lang="EN-CA" style="font-family:"Courier New"">[ 73%] Built target mapserver<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:35.4pt;text-autospace:none"><span lang="EN-CA" style="font-family:"Courier New"">Linking C executable legend<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:35.4pt;text-autospace:none"><span lang="EN-CA" style="font-family:"Courier New"">libmapserver.so.7.1-dev: undefined reference to `libiconv_open'<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:35.4pt;text-autospace:none"><span lang="EN-CA" style="font-family:"Courier New"">libmapserver.so.7.1-dev: undefined reference to `libiconv_close'<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:35.4pt;text-autospace:none"><span lang="EN-CA" style="font-family:"Courier New"">libmapserver.so.7.1-dev: undefined reference to `libiconv'<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:35.4pt;text-autospace:none"><span lang="EN-CA" style="font-family:"Courier New"">collect2: error: ld returned 1 exit status<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:35.4pt;text-autospace:none"><span lang="EN-CA" style="font-family:"Courier New"">make[2]: *** [legend] Error 1<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:35.4pt;text-autospace:none"><span lang="EN-CA" style="font-family:"Courier New"">make[1]: *** [CMakeFiles/legend.dir/all] Error 2<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-CA" style="font-family:"Courier New"">make: *** [all] Error 2<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">I tried different switches (--with-libiconv-prefix and –liconv) without success. Any ideas????<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Thx<u></u><u></u></span></p>
<p class="MsoNormal"><b><i><span style="font-size:12.0pt;font-family:"Arial","sans-serif"">Jacques Mérette</span></i></b><i><span style="font-size:12.0pt;font-family:"Arial","sans-serif""><u></u><u></u></span></i></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">Architecte technologique
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">Division des infrastructures technologiques<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">Service des infrastructures technologiques appliquées aux opérations<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">Direction des technologies de l’information<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">Ministère des Transports du Québec <u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">Tél: 418-643-5350 # 24685<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif""><a href="mailto:jacques.merette-c@mtq.gouv.qc.ca" target="_blank"><span style="color:blue">jacques.merette-c@mtq.gouv.qc.ca</span></a><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif""><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">Boîte commune :</span><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:navy">
</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif""><a href="mailto:Architectes-Technologique._C-DTI@mtq.gouv.qc.ca" title="mailto:Architectes-Technologique._C-DTI@mtq.gouv.qc.ca" target="_blank"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:blue">Architectes-Technologique._C-DTI@mtq.gouv.qc.ca</span></a></span><span lang="FR" style="font-size:12.0pt;font-family:"Times New Roman","serif";color:navy"><u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>

<br>_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br></blockquote></div>