pb in compiling MapServer 4.6.1
Frank Warmerdam
fwarmerdam at GMAIL.COM
Tue Sep 13 19:48:41 PDT 2005
On 9/13/05, Guillaume Sueur <guillaume.sueur at geosignal.fr> wrote:
> Hi,
> I'm trying to compile MapServer 4.6.1 on Fedora Core 4 and I've got this
> issue :
> gcc -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -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_ICONV -DUSE_POSTGIS -DUSE_THREAD -DUSE_ZLIB
> -I/usr/local/include -I/usr/local/include
> -I/usr/local/pgsql/include shp2img.o -L. -lmap -L/usr/local/lib
> -lgd -ljpeg -lfreetype -lpng -lz -lpdf -ljpeg -lfreetype -lpng -lz
> -lproj -ljpeg -L/usr/local/lib -lgdal -L/usr/local/pgsql/lib -lpq
> -L/usr/lib -lcurl -L/usr/kerberos/lib -lssl -lcrypto -lgssapi_krb5
> -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -lgssapi_krb5 -lkrb5
> -lk5crypto -lkrb5support -lcom_err -lresolv -lidn -lssl -lcrypto -lz
> -lpthread -lc -lz -lm -lstdc++ -o shp2img
> /usr/local/lib/libgdal.so: warning: Using 'dlopen' in statically linked
> applications requires at runtime the shared libraries from the glibc
> version used for linking
> /usr/local/lib/libcurl.so: undefined reference to `__dlsym'
> /usr/local/lib/libcurl.so: undefined reference to `__dlclose'
> /usr/local/lib/libcurl.so: undefined reference to `__dlopen'
> /usr/local/lib/libcurl.so: undefined reference to `__dlerror'
> collect2: ld a retourné 1 code d'état d'exécution
Guillaume,
I'm not sure why this is happening, but you can manually
edit Makefile and add "-ldl" at the end of the SUP_LIBS
macro declaration to fix it up.
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent
More information about the MapServer-users
mailing list