mapserver compile error (gentoo)
Jani Averbach
javerbach at EXTENDTHEREACH.COM
Fri Jul 1 11:28:08 EDT 2005
> -----Original Message-----
> Subject: mapserver compile error (gentoo)
>
> I'm trying to compile mapserver-4.6.0 on Gentoo Linux (on
> sparc and x86
> platform) and got a very simple looking error messages on both
> Gentoo platforms. So, maybe something is misconfigured on my
> platforms,
> but I do not have a clue. Hints?
I had the same problem, and my 'quick and duck' solution was to
remove postgis support. Perhaps this isn't an option for you.
If you need postgis, read on.
> This is what I got when running ./configure
>
> jaska at sparcy ~/mapserverin_kaanto/mapserver-4.6.0 $ ./configure
> --with-postgis=/usr/bin/pg_config --with-proj --with-geos
...
> gcc -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT
> -DUSE_EPPL
> -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR -DUSE_WFS_SVR -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_PDF -DUSE_OGR
> -DUSE_GDAL -DUSE_GEOS -DUSE_ICONV -DUSE_POSTGIS -I/usr/include
> -I/usr/include/gdal -I/usr/include -I/usr/include shp2img.o
> -L. -lmap -lgd -L/usr/lib -lgd -ljpeg -lfreetype -lpng -L/lib
> -lz -lXpm
> -lX11 -lpdf -ljpeg -lfreetype -lpng -L/lib -lz -lXpm -lX11 -lproj
> -ljpeg /usr/lib/libgdal.a /usr/lib/lib /usr/lib/-lpq
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Here is the problem.
> /usr/lib/libgdal.a
> -L/usr/lib -lgeos -logdi31 -ljpeg -lgeotiff -ltiff -lpng -lnetcdf -lz
> -lm -ldl -L/usr/lib -lpq -L/usr/lib/mysql -lmysqlclient -lz -lcrypt
> -lnsl -lm -L/usr/lib -lssl -lcrypto -L/usr/lib -lpq
> -L/usr/lib -lcurl
> -lidn -lssl -lcrypto -ldl -lssl -lcrypto -ldl -lz -L/usr/lib -lgeos
> -lc -lm -lstdc++ -o shp2img
> gcc: /usr/lib/lib: No such file or directory
> gcc: /usr/lib/-lpq: No such file or directory
Try find how mapserver's config is using pg_config's output, and then
you should be able to fix the problem, or fix the makefile by hand
after you have configured the mapserver.
Br, Jani
--
Jani Averbach
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20050701/24be3e6b/attachment.html
More information about the mapserver-dev
mailing list