[Mapserver-users] Compilation problem (mapserver 4.0.2) possible mygis
error ...
Herman De Pauw
hermandepauw@hotmail.com
Tue, 20 Apr 2004 22:48:50 +0200
<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 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS_SVR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_GDAL -DUSE_MYGIS -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include/mysql shp2img.c -o shp2img.o<BR>gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS_SVR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_GDAL -DUSE_MYGIS -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include/mysql shp2img.o -L. -lmap -L/usr/local/lib !
-lgd -L/usr/local/lib -ljpeg -lfreetype -L/usr/local/lib -lpng -L/usr/lib -lz -L/usr/local/lib -ltiff -L/usr/local/lib -ljpeg -lfreetype -L/usr/local/lib -lpng -L/usr/lib -lz -L/usr/local/lib -lproj -L/usr/local/lib -ljpeg -L/usr/local/lib -lgdal.1.1 -L/usr/local/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -lmysqlclient -lm -lstdc++ -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> </P>
<P> </P>
<P><BR><BR> </P></DIV>
<DIV></DIV>>From: Attila Csipa <plists@prometheus.org.yu>
<DIV></DIV>>To: mapserver-users@lists.gis.umn.edu
<DIV></DIV>>Subject: Re: [Mapserver-users] Compilation problem (mapserver 4.0.2) possible mygis error ...
<DIV></DIV>>Date: Tue, 20 Apr 2004 17:16:05 +0200
<DIV></DIV>>MIME-Version: 1.0
<DIV></DIV>>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>>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>>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>>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 <mapserver-users@lists.gis.umn.edu>; Tue, 20 Apr 2004 10:16:24 -0500 (CDT)
<DIV></DIV>>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 <mapserver-users@lists.gis.umn.edu>; Tue, 20 Apr 2004 17:15:41 +0200
<DIV></DIV>>X-Message-Info: BVVQfv+dWoOepj37qWbj6fYpdPterC/SCUGVupqpGIA=
<DIV></DIV>>Organization: Prometheus
<DIV></DIV>>User-Agent: KMail/1.6.2
<DIV></DIV>>References: <BAY14-F34VhyemYewQ100064baa@hotmail.com>
<DIV></DIV>>In-Reply-To: <BAY14-F34VhyemYewQ100064baa@hotmail.com>
<DIV></DIV>>Message-Id: <200404201716.05023.plists@prometheus.org.yu>
<DIV></DIV>>X-MIME-Autoconverted: from quoted-printable to 8bit by lists.gis.umn.edu id i3KFGNEe012367
<DIV></DIV>>Errors-To: mapserver-users-admin@lists.gis.umn.edu
<DIV></DIV>>X-BeenThere: mapserver-users@lists.gis.umn.edu
<DIV></DIV>>X-Mailman-Version: 2.0.13
<DIV></DIV>>Precedence: bulk
<DIV></DIV>>List-Unsubscribe: <http://lists.gis.umn.edu/mailman/listinfo/mapserver-users>,<mailto:mapserver-users-request@lists.gis.umn.edu?subject=unsubscribe>
<DIV></DIV>>List-Id: Mapserver Users Mailing List (Appropriate for general users) <mapserver-users.lists.gis.umn.edu>
<DIV></DIV>>List-Post: <mailto:mapserver-users@lists.gis.umn.edu>
<DIV></DIV>>List-Help: <mailto:mapserver-users-request@lists.gis.umn.edu?subject=help>
<DIV></DIV>>List-Subscribe: <http://lists.gis.umn.edu/mailman/listinfo/mapserver-users>,<mailto:mapserver-users-request@lists.gis.umn.edu?subject=subscribe>
<DIV></DIV>>List-Archive: <http://lists.gis.umn.edu/pipermail/mapserver-users/>
<DIV></DIV>>Return-Path: mapserver-users-admin@lists.gis.umn.edu
<DIV></DIV>>X-OriginalArrivalTime: 20 Apr 2004 16:24:56.0498 (UTC) FILETIME=[04A47920:01C426F4]
<DIV></DIV>>
<DIV></DIV>>On Tuesday 20 April 2004 16:25, Herman De Pauw wrote:
<DIV></DIV>> > I tried to compile mapserver 4.0.2 with mygis support. I did as configure :
<DIV></DIV>> >
<DIV></DIV>> > ./configure --with-jpeg=/usr/local --with-freetype=/usr/local
<DIV></DIV>> > --with-zlib=/usr/lib --with-tiff=/usr/local --with-png=/usr/local
<DIV></DIV>> > --with-proj=/usr/local --with-gdal=/usr/local/bin/gdal-config
<DIV></DIV>> > --with-gd=/usr/local --without-pdf --with-eppl --with-httpd=/usr/sbin/httpd
<DIV></DIV>> > --with-postgis=/usr/local/pgsql/bin/pg_config --with-mygis=/usr/local/bin/m
<DIV></DIV>> >ysql_config
<DIV></DIV>> >
<DIV></DIV>> > Can somebody give me a clue how to fix these ?
<DIV></DIV>>
<DIV></DIV>>It seems that the postgis and mygis modules use the same function names and
<DIV></DIV>>this causes a compilation error when you try to make a binary that supports
<DIV></DIV>>both. This is obviously a bug regarding namespace clashes, I'm afraid there
<DIV></DIV>>is no easy fix other than excluding one of them or waiting for the correction
<DIV></DIV>>to make it into CVS.
<DIV></DIV>>
<DIV></DIV>>_______________________________________________
<DIV></DIV>>Mapserver-users mailing list
<DIV></DIV>>Mapserver-users@lists.gis.umn.edu
<DIV></DIV>>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>
_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users