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

Herman De Pauw hermandepauw at hotmail.com
Thu Apr 22 09:23:35 EDT 2004


<html><div style='background-color:'><DIV class=RTE>
<P>Hi,</P>
<P>Here's my /usr/local/bin/mysql_config (I ommited comments to not clutter up the screen) :</P>
<P>which ()<BR>{<BR>&nbsp; IFS="${IFS=&nbsp;&nbsp; }"; save_ifs="$IFS"; IFS=':'<BR>&nbsp; for file<BR>&nbsp; do<BR>&nbsp;&nbsp;&nbsp; for dir in $PATH<BR>&nbsp;&nbsp;&nbsp; do<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if test -f $dir/$file<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo "$dir/$file"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; continue 2<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fi<BR>&nbsp;&nbsp;&nbsp; done<BR>&nbsp;&nbsp;&nbsp; echo "which: no $file in ($PATH)"<BR>&nbsp;&nbsp;&nbsp; exit 1<BR>&nbsp; done<BR>&nbsp; IFS="$save_ifs"<BR>}<BR></P>
<P>fix_path ()<BR>{<BR>&nbsp; var=$1<BR>&nbsp; shift<BR>&nbsp; for filename<BR>&nbsp; do<BR>&nbsp;&nbsp;&nbsp; path=$basedir/$filename<BR>&nbsp;&nbsp;&nbsp; if [ -d "$path" ] ;<BR>&nbsp;&nbsp;&nbsp; then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; eval "$var"=$path<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return<BR>&nbsp;&nbsp;&nbsp; fi<BR>&nbsp; done<BR>}</P>
<P>get_full_path ()<BR>{<BR>&nbsp; case $1 in<BR>&nbsp;&nbsp;&nbsp; /*) echo "$1";;<BR>&nbsp;&nbsp;&nbsp; ./*) tmp=`pwd`/$1; echo $tmp | sed -e 's;/\./;/;' ;;<BR>&nbsp;&nbsp;&nbsp;&nbsp; *) which $1 ;;<BR>&nbsp;&nbsp; esac<BR>}<BR></P>
<P>ldata='/usr/local/var'<BR>execdir='/usr/local/libexec'<BR>bindir='/usr/local/bin'<BR>pkglibdir='/usr/local/lib/mysql'<BR>fix_path pkglibdir lib/mysql lib<BR>pkgincludedir='/usr/local/include/mysql'<BR>fix_path pkgincludedir include/mysql include<BR>version='4.0.18'<BR>socket='/tmp/mysql.sock'<BR>port='3306'<BR>ldflags=''<BR>client_libs='-lz -lcrypt -lnsl -lm&nbsp; '<BR></P>
<P>libs="$ldflags -L$pkglibdir -lmysqlclient $client_libs"<BR>libs=`echo "$libs" | sed -e 's;&nbsp; \+; ;g' | sed -e 's;^ *;;' | sed -e 's; *\$;;'`<BR>libs_r="$ldflags -L$pkglibdir -lmysqlclient_r -lpthread -lz -lcrypt -lnsl -lm&nbsp; -lpthread&nbsp; "<BR>libs_r=`echo "$libs_r" | sed -e 's;&nbsp; \+; ;g' | sed -e 's;^ *;;' | sed -e 's; *\$;;'`<BR>cflags="-I$pkgincludedir "<BR>include="-I$pkgincludedir"<BR>embedded_libs="$ldflags -L$pkglibdir -lmysqld -lpthread -lz -lcrypt -lnsl -lm&nbsp; -lpthread&nbsp;&nbsp; -lrt"<BR>embedded_libs=`echo "$embedded_libs" | sed -e 's;&nbsp; \+; ;g' | sed -e 's;^ *;;' | sed -e 's; *\$;;'`<BR></P>
<P>cflags=`echo "$cflags " | sed -e 's;\(-DDBUG_OFF\|-DSAFEMALLOC\|-USAFEMALLOC\|-DSAFE_MUTEX\|-DPEDANTIC_SAFEMALLOC\|-DUNIV_MUST_NOT_INLINE\|-DF<BR>ORCE_INIT_OF_VARS\|-DEXTRA_DEBUG\|-DHAVE_purify\|-O[0-9]\|-W[-A-Za-z]*\) *;;g' | sed -e 's; *\$;;'`</P>
<P>usage () {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cat &lt;&lt;EOF<BR>Usage: $0 [OPTIONS]<BR>Options:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; --cflags&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [$cflags]<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; --include&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [$include]<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; --libs&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [$libs]<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; --libs_r&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [$libs_r]<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; --socket&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [$socket]<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; --port&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [$port]<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; --version&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [$version]<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; --libmysqld-libs [$embedded_libs]<BR>EOF<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; exit 1<BR>}</P>
<P>if test $# -le 0; then usage; fi</P>
<P>while test $# -gt 0; do<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; case $1 in<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; --cflags)&nbsp; echo "$cflags" ;;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; --include) echo "$include" ;;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; --libs)&nbsp;&nbsp;&nbsp; echo "$libs" ;;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; --libs_r)&nbsp; echo "$libs_r" ;;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; --socket)&nbsp; echo "$socket" ;;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; --port)&nbsp;&nbsp;&nbsp; echo "$port" ;;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; --version) echo "$version" ;;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; --embedded-libs | --embedded | --libmysqld-libs) echo "$embedded_libs" ;;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; *)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; usage ;;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; esac</P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; shift<BR>done<BR></P>
<P>exit 0<BR></P>
<P>I discoverd that the 2.4b1 version does compile &amp; make with this mysql_config (the 4.0.2 doesn't)</P>
<P>Regards,</P>
<P>Helder De Pauw</P>
<P>PS Is there a possibilitie to use (convert to ... or use as is) srtm data in mapserver (I live in Belgium and there's no other altitude data for free use</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: Wed, 21 Apr 2004 09:56:57 +0200 
<DIV></DIV>&gt;MIME-Version: 1.0 
<DIV></DIV>&gt;Received: from mc11-f31.hotmail.com ([65.54.167.38]) by mc11-s14.hotmail.com with Microsoft SMTPSVC(5.0.2195.6824); Wed, 21 Apr 2004 09:43:21 -0700 
<DIV></DIV>&gt;Received: from lists.gis.umn.edu ([128.101.73.109]) by mc11-f31.hotmail.com with Microsoft SMTPSVC(5.0.2195.6824); Wed, 21 Apr 2004 09:40:48 -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 i3LG6eFS003629;Wed, 21 Apr 2004 11:06:44 -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 i3LFrkFS003458for &lt;mapserver-users at lists.gis.umn.edu&gt;; Wed, 21 Apr 2004 10:53:46 -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 1BGCav-0007dC-00for &lt;mapserver-users at lists.gis.umn.edu&gt;; Wed, 21 Apr 2004 09:56:33 +0200 
<DIV></DIV>&gt;X-Message-Info: StaYHEBmGBoqDB9RRDGYLDreiG5kbnhlAzuSGbbW0UU= 
<DIV></DIV>&gt;Organization: Prometheus 
<DIV></DIV>&gt;User-Agent: KMail/1.6.2 
<DIV></DIV>&gt;References: &lt;BAY14-F10IafFEgOUHa00066a47 at hotmail.com&gt; 
<DIV></DIV>&gt;In-Reply-To: &lt;BAY14-F10IafFEgOUHa00066a47 at hotmail.com&gt; 
<DIV></DIV>&gt;Message-Id: &lt;200404210956.57248.plists at prometheus.org.yu&gt; 
<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: 21 Apr 2004 16:40:51.0245 (UTC) FILETIME=[68210DD0:01C427BF] 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;On Tuesday 20 April 2004 22:48, Herman De Pauw wrote: 
<DIV></DIV>&gt; &gt; ./libmap.a(mapmygis.o)(.text+0x66f): In function `msMYGISLayerOpen': 
<DIV></DIV>&gt; &gt; : undefined reference to `mysql_connect' 
<DIV></DIV>&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-mygis=/usr/local/bin/mysql_config 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt; Anyone another clue to solve this ? 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;Could you send the output of /usr/local/bin/mysql_config ? 
<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/2749??PS=">Heb jij het juiste gewicht?</a> </html>



More information about the mapserver-users mailing list