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

Herman De Pauw hermandepauw at hotmail.com
Thu Apr 22 06:23:35 PDT 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>  IFS="${IFS=   }"; save_ifs="$IFS"; IFS=':'<BR>  for file<BR>  do<BR>    for dir in $PATH<BR>    do<BR>      if test -f $dir/$file<BR>      then<BR>        echo "$dir/$file"<BR>        continue 2<BR>      fi<BR>    done<BR>    echo "which: no $file in ($PATH)"<BR>    exit 1<BR>  done<BR>  IFS="$save_ifs"<BR>}<BR></P>
<P>fix_path ()<BR>{<BR>  var=$1<BR>  shift<BR>  for filename<BR>  do<BR>    path=$basedir/$filename<BR>    if [ -d "$path" ] ;<BR>    then<BR>      eval "$var"=$path<BR>      return<BR>    fi<BR>  done<BR>}</P>
<P>get_full_path ()<BR>{<BR>  case $1 in<BR>    /*) echo "$1";;<BR>    ./*) tmp=`pwd`/$1; echo $tmp | sed -e 's;/\./;/;' ;;<BR>     *) which $1 ;;<BR>   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  '<BR></P>
<P>libs="$ldflags -L$pkglibdir -lmysqlclient $client_libs"<BR>libs=`echo "$libs" | sed -e 's;  \+; ;g' | sed -e 's;^ *;;' | sed -e 's; *\$;;'`<BR>libs_r="$ldflags -L$pkglibdir -lmysqlclient_r -lpthread -lz -lcrypt -lnsl -lm  -lpthread  "<BR>libs_r=`echo "$libs_r" | sed -e 's;  \+; ;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  -lpthread   -lrt"<BR>embedded_libs=`echo "$embedded_libs" | sed -e 's;  \+; ;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>        cat <<EOF<BR>Usage: $0 [OPTIONS]<BR>Options:<BR>        --cflags         [$cflags]<BR>        --include        [$include]<BR>        --libs           [$libs]<BR>        --libs_r         [$libs_r]<BR>        --socket         [$socket]<BR>        --port           [$port]<BR>        --version        [$version]<BR>        --libmysqld-libs [$embedded_libs]<BR>EOF<BR>        exit 1<BR>}</P>
<P>if test $# -le 0; then usage; fi</P>
<P>while test $# -gt 0; do<BR>        case $1 in<BR>        --cflags)  echo "$cflags" ;;<BR>        --include) echo "$include" ;;<BR>        --libs)    echo "$libs" ;;<BR>        --libs_r)  echo "$libs_r" ;;<BR>        --socket)  echo "$socket" ;;<BR>        --port)    echo "$port" ;;<BR>        --version) echo "$version" ;;<BR>        --embedded-libs | --embedded | --libmysqld-libs) echo "$embedded_libs" ;;<BR>        *)         usage ;;<BR>        esac</P>
<P>        shift<BR>done<BR></P>
<P>exit 0<BR></P>
<P>I discoverd that the 2.4b1 version does compile & 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> </P></DIV>
<DIV></DIV>>From: Attila Csipa <plists at prometheus.org.yu> 
<DIV></DIV>>To: mapserver-users at lists.gis.umn.edu 
<DIV></DIV>>Subject: Re: [Mapserver-users] Compilation problem (mapserver 4.0.2) possible mygis error ... 
<DIV></DIV>>Date: Wed, 21 Apr 2004 09:56:57 +0200 
<DIV></DIV>>MIME-Version: 1.0 
<DIV></DIV>>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>>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>>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>>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 <mapserver-users at lists.gis.umn.edu>; Wed, 21 Apr 2004 10:53:46 -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 1BGCav-0007dC-00for <mapserver-users at lists.gis.umn.edu>; Wed, 21 Apr 2004 09:56:33 +0200 
<DIV></DIV>>X-Message-Info: StaYHEBmGBoqDB9RRDGYLDreiG5kbnhlAzuSGbbW0UU= 
<DIV></DIV>>Organization: Prometheus 
<DIV></DIV>>User-Agent: KMail/1.6.2 
<DIV></DIV>>References: <BAY14-F10IafFEgOUHa00066a47 at hotmail.com> 
<DIV></DIV>>In-Reply-To: <BAY14-F10IafFEgOUHa00066a47 at hotmail.com> 
<DIV></DIV>>Message-Id: <200404210956.57248.plists at prometheus.org.yu> 
<DIV></DIV>>Errors-To: mapserver-users-admin at lists.gis.umn.edu 
<DIV></DIV>>X-BeenThere: mapserver-users at 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 at lists.gis.umn.edu> 
<DIV></DIV>>List-Help: <mailto:mapserver-users-request at 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 at lists.gis.umn.edu 
<DIV></DIV>>X-OriginalArrivalTime: 21 Apr 2004 16:40:51.0245 (UTC) FILETIME=[68210DD0:01C427BF] 
<DIV></DIV>> 
<DIV></DIV>>On Tuesday 20 April 2004 22:48, Herman De Pauw wrote: 
<DIV></DIV>> > ./libmap.a(mapmygis.o)(.text+0x66f): In function `msMYGISLayerOpen': 
<DIV></DIV>> > : undefined reference to `mysql_connect' 
<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-mygis=/usr/local/bin/mysql_config 
<DIV></DIV>> > 
<DIV></DIV>> > 
<DIV></DIV>> > Anyone another clue to solve this ? 
<DIV></DIV>> 
<DIV></DIV>>Could you send the output of /usr/local/bin/mysql_config ? 
<DIV></DIV>>_______________________________________________ 
<DIV></DIV>>Mapserver-users mailing list 
<DIV></DIV>>Mapserver-users at 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/2749??PS=">Heb jij het juiste gewicht?</a> </html>



More information about the MapServer-users mailing list