building mapserver 4.4.0 on a fedora core 2

eric BELENFANT eric.belenfant at AC-ORLEANS-TOURS.FR
Thu Dec 2 06:01:59 EST 2004


Gabriel Moricz wrote:
> gcc -O2  -Wall -DIGNORE_MISSING_DATA  -DUSE_EPPL -DUSE_PROJ
-DUSE_PROJ_API_H
>  -DUSE_WMS_SVR -DUSE_WMS_LYR    -DUSE_MING_FLASH    -DUSE_GD_GIF
-DUSE_GD_PN
> G -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_PDF
-DUSE_GDAL -D
> USE_POSTGIS    -I/usr/local/include  -I/usr/local/include
-I/usr/local
> /include -I/usr/local/pgsql/include  -I/usr/local/include
>
> hp2img.o  -L. -lmap -L/usr/local/lib -lgd -ljpeg -lfreetype -lpng -lz
 -lpd
> f -ljpeg -lfreetype -lpng -lz   -L/usr/local/lib -lproj -ljpeg
-L/usr/local
> /lib -lgdal.1.1 -lming -L/usr/local/pgsql/lib -lpq  -L/usr/local/lib
-lcurl
> -lz -ldl -lz    -lm  -o shp2img
> ./libmap.a(mappdf.o): In function `msDrawMarkerSymbolPDF':
> mappdf.o(.text+0x1b26): undefined reference to `gdImageJpegPtr'
> ./libmap.a(mappdf.o): In function `msDrawRasterLayerPDF':
> mappdf.o(.text+0x22c4): undefined reference to `gdImageJpegPtr'
> ./libmap.a(mappdf.o): In function `msSaveImagePDF':
> mappdf.o(.text+0x2536): undefined reference to `gdImageJpegPtr'
> ./libmap.a(mappdf.o): In function `msDrawWMSLayerPDF':
> mappdf.o(.text+0x2dca): undefined reference to `gdImageJpegPtr'
> collect2: ld returned 1 exit status
> make: *** [shp2img] Error 1
>

Sounds like you may have two copies of GD on your system.  The configure
may have found one that includes JPEG support (in /usr/lib, coming from
the gd-devel RPM), but at link time it is another one that doesn't
include JPEG that is being used (maybe one that you have installed in
/usr/local/lib).

Make sure there is only one set of libgd.so, libgd.a and GD header
files, then rerun configure and make clean;make

BTW, there are step by step instructions to compile on various flavours
of Linux in the wiki:
http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScript


I have the same problem on a fedora core 2
i followed the instructions about install on fedora
i checked that only one GD is installed (  /usr/local/libgd.so !!!)

so ???

eric



More information about the mapserver-users mailing list