[Mapserver-users] Compilation problem (mapserver 4.0.2) possible mygis error ...

Herman De Pauw hermandepauw at hotmail.com
Tue Apr 20 16:48:50 EDT 2004


<html><div style='background-color:'><DIV class=RTE>
<P>Hi,</P>
<P>I just tried without the pqsql support (i only wanted the support to play around with pgsql) so no big deal to drop pgsql support. But without pgsql it make still complains :</P>
<P>gcc -c -O2&nbsp; -Wall -DIGNORE_MISSING_DATA&nbsp; -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS_SVR&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT&nbsp;&nbsp;&nbsp; -DUSE_GDAL&nbsp; -DUSE_MYGIS&nbsp;&nbsp; -I/usr/local/include&nbsp; -I/usr/local/include -I/usr/local/include -I/usr/local/include&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -I/usr/local/include&nbsp; -I/usr/local/include/mysql&nbsp;&nbsp;&nbsp; shp2img.c -o shp2img.o<BR>gcc -O2&nbsp; -Wall -DIGNORE_MISSING_DATA&nbsp; -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS_SVR&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT&nbsp;&nbsp;&nbsp; -DUSE_GDAL&nbsp; -DUSE_MYGIS&nbsp;&nbsp; -I/usr/local/include&nbsp; -I/usr/local/include -I/usr/local/include -I/usr/local/include&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -I/usr/local/include&nbsp; -I/usr/local/include/mysql&nbsp;&nbsp;&nbsp; shp2img.o&nbsp; -L. -lmap -L/usr/local/lib -lgd -L/usr/local/lib -ljpeg -lfreetype -L/usr/local/lib -lpng -L/usr/lib -lz&nbsp;&nbsp;&nbsp; -L/usr/local/lib -ltiff -L/usr/local/lib -ljpeg -lfreetype -L/usr/local/lib -lpng -L/usr/lib -lz&nbsp;&nbsp; -L/usr/local/lib -lproj -L/usr/local/lib -ljpeg&nbsp;&nbsp; -L/usr/local/lib -lgdal.1.1&nbsp;&nbsp; -L/usr/local/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -lmysqlclient&nbsp;&nbsp;&nbsp;&nbsp; -lm -lstdc++&nbsp;&nbsp; -o shp2img<BR>./libmap.a(mapmygis.o)(.text+0x66f): In function `msMYGISLayerOpen':<BR>: undefined reference to `mysql_connect'<BR>collect2: ld returned 1 exit status<BR>make: *** [shp2img] Error 1<BR></P>
<P>configure options where as follows : </P>
<P>./configure --with-jpeg=/usr/local --with-freetype=/usr/local --with-zlib=/usr/lib --with-tiff=/usr/local --with-png=/usr/local --with-proj=/usr/local --with-gdal=/usr/local/bin/gdal-config --with-gd=/usr/local --without-pdf --with-eppl --with-httpd=/usr/sbin/httpd --with-mygis=/usr/local/bin/mysql_config</P>
<P>Anyone another clue to solve this ?</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P><BR><BR>&nbsp;</P></DIV>
<DIV></DIV>&gt;From: Attila Csipa &lt;plists at prometheus.org.yu&gt; 
<DIV></DIV>&gt;To: mapserver-users at lists.gis.umn.edu 
<DIV></DIV>&gt;Subject: Re: [Mapserver-users] Compilation problem (mapserver 4.0.2) possible mygis error ... 
<DIV></DIV>&gt;Date: Tue, 20 Apr 2004 17:16:05 +0200 
<DIV></DIV>&gt;MIME-Version: 1.0 
<DIV></DIV>&gt;Received: from mc11-f24.hotmail.com ([65.54.167.31]) by mc11-s18.hotmail.com with Microsoft SMTPSVC(5.0.2195.6824); Tue, 20 Apr 2004 09:36:46 -0700 
<DIV></DIV>&gt;Received: from lists.gis.umn.edu ([128.101.73.109]) by mc11-f24.hotmail.com with Microsoft SMTPSVC(5.0.2195.6824); Tue, 20 Apr 2004 09:24:53 -0700 
<DIV></DIV>&gt;Received: from lists.gis.umn.edu (localhost [127.0.0.1])by lists.gis.umn.edu (8.12.10/8.12.10) with ESMTP id i3KFSOEe012463;Tue, 20 Apr 2004 10:28:28 -0500 (CDT) 
<DIV></DIV>&gt;Received: from zigor.manufacture.co.yu (mx.manufacture.co.yu [62.108.119.242])by lists.gis.umn.edu (8.12.10/8.12.10) with ESMTP id i3KFGNEe012367for &lt;mapserver-users at lists.gis.umn.edu&gt;; Tue, 20 Apr 2004 10:16:24 -0500 (CDT) 
<DIV></DIV>&gt;Received: from map([192.168.250.21] helo=map.manufacture.co.yu ident=bear)by zigor.manufacture.co.yu with esmtp (Exim 3.35 #1 (Debian))id 1BFwyL-0001NN-00for &lt;mapserver-users at lists.gis.umn.edu&gt;; Tue, 20 Apr 2004 17:15:41 +0200 
<DIV></DIV>&gt;X-Message-Info: BVVQfv+dWoOepj37qWbj6fYpdPterC/SCUGVupqpGIA= 
<DIV></DIV>&gt;Organization: Prometheus 
<DIV></DIV>&gt;User-Agent: KMail/1.6.2 
<DIV></DIV>&gt;References: &lt;BAY14-F34VhyemYewQ100064baa at hotmail.com&gt; 
<DIV></DIV>&gt;In-Reply-To: &lt;BAY14-F34VhyemYewQ100064baa at hotmail.com&gt; 
<DIV></DIV>&gt;Message-Id: &lt;200404201716.05023.plists at prometheus.org.yu&gt; 
<DIV></DIV>&gt;X-MIME-Autoconverted: from quoted-printable to 8bit by lists.gis.umn.edu id i3KFGNEe012367 
<DIV></DIV>&gt;Errors-To: mapserver-users-admin at lists.gis.umn.edu 
<DIV></DIV>&gt;X-BeenThere: mapserver-users at lists.gis.umn.edu 
<DIV></DIV>&gt;X-Mailman-Version: 2.0.13 
<DIV></DIV>&gt;Precedence: bulk 
<DIV></DIV>&gt;List-Unsubscribe: &lt;http://lists.gis.umn.edu/mailman/listinfo/mapserver-users&gt;,&lt;mailto:mapserver-users-request@lists.gis.umn.edu?subject=unsubscribe&gt; 
<DIV></DIV>&gt;List-Id: Mapserver Users Mailing List (Appropriate for general users) &lt;mapserver-users.lists.gis.umn.edu&gt; 
<DIV></DIV>&gt;List-Post: &lt;mailto:mapserver-users at lists.gis.umn.edu&gt; 
<DIV></DIV>&gt;List-Help: &lt;mailto:mapserver-users-request at lists.gis.umn.edu?subject=help&gt; 
<DIV></DIV>&gt;List-Subscribe: &lt;http://lists.gis.umn.edu/mailman/listinfo/mapserver-users&gt;,&lt;mailto:mapserver-users-request@lists.gis.umn.edu?subject=subscribe&gt; 
<DIV></DIV>&gt;List-Archive: &lt;http://lists.gis.umn.edu/pipermail/mapserver-users/&gt; 
<DIV></DIV>&gt;Return-Path: mapserver-users-admin at lists.gis.umn.edu 
<DIV></DIV>&gt;X-OriginalArrivalTime: 20 Apr 2004 16:24:56.0498 (UTC) FILETIME=[04A47920:01C426F4] 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;On Tuesday 20 April 2004 16:25, Herman De Pauw wrote: 
<DIV></DIV>&gt; &gt; I tried to compile mapserver 4.0.2 with mygis support. I did as configure : 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt; ./configure --with-jpeg=/usr/local --with-freetype=/usr/local 
<DIV></DIV>&gt; &gt; --with-zlib=/usr/lib --with-tiff=/usr/local --with-png=/usr/local 
<DIV></DIV>&gt; &gt; --with-proj=/usr/local --with-gdal=/usr/local/bin/gdal-config 
<DIV></DIV>&gt; &gt; --with-gd=/usr/local --without-pdf --with-eppl --with-httpd=/usr/sbin/httpd 
<DIV></DIV>&gt; &gt; --with-postgis=/usr/local/pgsql/bin/pg_config&nbsp;--with-mygis=/usr/local/bin/m 
<DIV></DIV>&gt; &gt;ysql_config 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt; Can somebody give me a clue how to fix these ? 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;It seems that the postgis and mygis modules use the same function names and 
<DIV></DIV>&gt;this causes a compilation error when you try to make a binary that supports 
<DIV></DIV>&gt;both. This is obviously a bug regarding namespace clashes, I'm afraid there 
<DIV></DIV>&gt;is no easy fix other than excluding one of them or waiting for the correction 
<DIV></DIV>&gt;to make it into CVS. 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;_______________________________________________ 
<DIV></DIV>&gt;Mapserver-users mailing list 
<DIV></DIV>&gt;Mapserver-users at lists.gis.umn.edu 
<DIV></DIV>&gt;http://lists.gis.umn.edu/mailman/listinfo/mapserver-users 
<DIV></DIV></div><br clear=all><hr> <a href="http://g.msn.com/8HMBNLBE/2743??PS=">Hoeveel kost een kind eigenlijk?</a> </html>



More information about the mapserver-users mailing list