Mapserver compile error on Ubuntu

Matthew Perry perrygeo at GMAIL.COM
Mon Jan 16 00:47:47 PST 2006


Till,

Thanks for the input. i'll respond inline...

On 1/16/06, Till Adams <adams at terrestris.de> wrote:
> we love Ubuntu because we never got less errors while compiling UMN (none).

Really? I have tried this on four installations of Ubuntu now
including a completely fresh installation. Same error every time...

> We take all the libs from breezy (also libgdal and libgdal-dev) and
> compile like this:
>
> # ./configure --with-gd -- with-gdal=/usr/bin/gdal-config --with-ogr
> --with-wms...
>
> and all the rest we want without giving any pathes. If you make
>
> # find -name gdal-config
>
> it is located in "/usr/bin/"
>

I have the ubuntu gdal package installed in /usr plus a compiled
version in /usr/local which I need to support some extra formats. As
far as I can tell, both versions of gdal are functioning 100%

I have tried compiling

--with-gdal=/usr/local/bin/gdal-config --with-ogr
--with-gdal=/usr/local/bin/gdal-config --with-ogr=/usr/local/bin/gdal-config
--with-gdal --with-ogr

No luck. I tried linking with the precompiled gdal just to make sure
it wasn't my gdal build

--with-gdal=/usr/bin/gdal-config --with-ogr

Still no luck. The only way I can get mapserver to compile is by
ommitting gdal/ogr support which is not going to work for me.

I'll keep working at it and see what I can come up with.

matt


> Matthew Perry schrieb:
>
> >Perry,
> >
> >On 1/15/06, Pericles S. Nacionales <naci0002 at umn.edu> wrote:
> >
> >
> >>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).
> >>
> >>
> >
> >Same error. I tried without specifying any paths and tried specifying
> >the the official ubuntu gdal binaries in /usr/bin with the same
> >results.
> >
> >matt
> >
> >
> >
> >
> >
> >
> >
> >>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
> >>>
> >>>.
> >>>
> >>>
> >>>
> >>>
> >>>
> >>
> >>
> >
> >
> >--
> >Matt Perry
> >perrygeo at gmail.com
> >http://www.perrygeo.net
> >
> >
>
> --
> ******************************************
> *  released: AmeiN! ArcMap-Export-2-UMN  *
> *        LiveLinux 'WebGIS on CD'        *
> *        http://www.terrestris.de        *
> ******************************************
>
> ------------------------------------------
>
> Dipl. Geogr. Till Adams
> terrestris, H. Paulsen& T. Adams GbR
> Siemensstr. 8 * 53121 Bonn
> Tel.: 0228 962 899 52 * Fax.: 0228 962 899 57
> info at terrestris.de * http://www.terrestris.de
>
>


--
Matt Perry
perrygeo at gmail.com
http://www.perrygeo.net



More information about the MapServer-users mailing list