[Mapserver-dev] cvs compile error

Kralidis,Tom [Burlington] Tom.Kralidis at ec.gc.ca
Sat Sep 25 20:02:10 EDT 2004


> -----Original Message-----
> From: Frank Warmerdam [mailto:warmerdam at pobox.com] 
> Sent: Saturday, 25 September, 2004 20:00
> To: Kralidis,Tom [Burlington]
> Cc: mapserver-dev at lists.gis.umn.edu; Julien-Samuel Lacroix
> Subject: Re: [Mapserver-dev] cvs compile error
> 
> 
> 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.

Frank/all,

I still get error, when changing in Makefile as per below:

ICONV=

..as well as commenting out the declaration altogether.


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
_POSTGIS    -I/usr/local/include -I/usr/local/include
-I/usr/local/include       -I/usr/local/includ
e -I/usr/local/pgsql/include  -I/usr/local/include
-I/usr/local/include shp2img.o  -L. -lmap -L/u
sr/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 -ljpe
g  -L/usr/local/lib -lgdal  -L/usr/local/pgsql/lib -lpq
-L/usr/local/lib -lcurl -L/usr/kerberos/lib
 -lssl -lcrypto -ldl -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err
-lk5crypto -lresolv -ldl -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




More information about the mapserver-dev mailing list