[Mapserver-dev] cvs compile error

Frank Warmerdam warmerdam at pobox.com
Sat Sep 25 19:59:34 EDT 2004


Kralidis,Tom [Burlington] wrote:
> Thanks for the update.  Now I'm getting a libiconv error:
> 
> gcc -O2 -fPIC  -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT  -DUSE_EPPL
> -DUSE_PROJ -DUSE_PROJ_API_H -D
> USE_WMS_SVR -DUSE_WMS_LYR -DUSE_WFS_SVR -DUSE_WFS_LYR -DUSE_WCS_SVR
> -DUSE_GD_GIF -DUSE_GD_PNG -D
> USE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_PDF
> -DUSE_OGR -DUSE_GDAL  -DUSE_
> ICONV -DUSE_POSTGIS    -I/usr/local/include -I/usr/local/include
> -I/usr/local/include       -I/usr/l
> ocal/include -I/usr/local/pgsql/include  -I/usr/local/include
> -I/usr/local/include shp2img.o  -L.
>  -lmap -L/usr/local/lib -lgd -ljpeg -lfreetype -L/usr/local/lib -lpng
> -L/usr/local/lib -lz   -L/usr/
> local/lib64 -lpdf -ljpeg -lfreetype -L/usr/local/lib -lpng
> -L/usr/local/lib -lz   -L/usr/local/lib -
> lproj -ljpeg  -L/usr/local/lib -lgdal  -L/usr/local/pgsql/lib -lpq
> -L/usr/local/lib -lcurl -L/usr/k
> erberos/lib -lssl -lcrypto -ldl -lssl -lcrypto -lgssapi_krb5 -lkrb5
> -lcom_err -lk5crypto -lresolv -l
> dl -lz -lz     -L/usr/local/lib -lc -lm -lstdc++  -o shp2img
> ./libmap.a(mapgd.o)(.text+0x9edd): In function `msGetEncodedString':
> : undefined reference to `libiconv_open'
> ./libmap.a(mapgd.o)(.text+0x9f7f): In function `msGetEncodedString':
> : undefined reference to `libiconv'
> ./libmap.a(mapgd.o)(.text+0x9fa8): In function `msGetEncodedString':
> : undefined reference to `libiconv_close'
> ./libmap.a(mapgd.o)(.text+0x9fcc): In function `msGetEncodedString':
> : undefined reference to `libiconv_close'
> ./libmap.a(mapgd.o)(.text+0x9ff6): In function `msGetEncodedString':
> : undefined reference to `libiconv_close'
> collect2: ld returned 1 exit status
> make: *** [shp2img] Error 1
 >
 > May this have anything to do with the encoding upgrades?

Tom,

Try removing the -DUSE_ICONV from your Makefile and building again.
Julien will need to review what has happened, assuming he is responsible
for the failing upgrades.

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-dev mailing list