Mapserver compile error on Ubuntu

Pericles S. Nacionales naci0002 at UMN.EDU
Sun Jan 15 14:39:09 PST 2006


Matt,

What happens if you run configure with this:

./configure --with-wmsclient --with-wfsclient --with-gdal=/usr/local/bin/gdal-config --with-ogr --with-proj

(Don't pass the path to "--with-ogr" parameter).


-Perry


Matthew Perry wrote:

>Hey folks,
>
>  I'm installing mapserver 4.6.2 from source on ubuntu breezy and I'm
>running into some errors. I built most dependencies with "apt-get
>build-dep mapserver-bin", built my own gdal cvs (from 01/11/06) in
>/usr/local and configured with:
>
>./configure --with-wmsclient --with-wfsclient
>--with-gdal=/usr/local/bin/gdal-config --with-proj
>--with-ogr=/usr/local/bin/gdal-config
>
>But make is giving me the following errors:
>
>gcc -O2 -fPIC -Wall   -DIGNORE_MISSING_DATA  -DNEED_STRLCAT 
>-DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR  -DUSE_WFS_LYR     
>-DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT
>-DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS    -DUSE_OGR -DUSE_GDAL
> -DUSE_ICONV        -DUSE_ZLIB -I/usr/include  -I/usr/local/include   
>      shp2img.o  -L. -lmap -lgd -L/usr/lib -lgd -ljpeg -lfreetype
>-lpng -lz -lXpm -lX11   -ljpeg -lfreetype -lpng -lz -lXpm -lX11 
>-lproj -ljpeg  -L/usr/local/lib -lgdal    -L/usr/lib -lcurl -lidn
>-lssl -lcrypto -ldl -lssl -lcrypto -ldl -lz     -lc  -lz -lm -lstdc++ 
>-o shp2img
>./libmap.a(mapogr.o): In function `msOGRFileWhichShapes(layer_obj*,
>rectObj, ms_ogr_file_info_t*)':
>mapogr.cpp:(.text+0x516): undefined reference to
>`OGRLineString::setPoint(int, double, double)'
>mapogr.cpp:(.text+0x52e): undefined reference to
>`OGRLineString::setPoint(int, double, double)'
>mapogr.cpp:(.text+0x54c): undefined reference to
>`OGRLineString::setPoint(int, double, double)'
>mapogr.cpp:(.text+0x56a): undefined reference to
>`OGRLineString::setPoint(int, double, double)'
>mapogr.cpp:(.text+0x582): undefined reference to
>`OGRLineString::setPoint(int, double, double)'
>collect2: ld returned 1 exit status
>make: *** [shp2img] Error 1
>
>I've tried this on two other installations of Ubuntu and get the exact
>same error even when compiling against older versions of gdal which I
>know to be stable. If i compile without gdal/ogr it works fine. Does
>anyone have any hints about where I can begin debugging this?
>--
>Matt Perry
>perrygeo at gmail.com
>http://www.perrygeo.net
>
>.
>
>  
>



More information about the MapServer-users mailing list