AW: [Mapserver-users] compiling mapserver 4.0.1 with SDE81 under redhat 9: undefined reference to `__ctype_b'
Rainer Spittel
rasp at tzi.de
Mon Dec 15 03:55:22 PST 2003
Hi,
After adding the -lrt option, the Makefile of the mapserver looks
like:
[...]
# ESRI SDE Support. You MUST have the SDE Client libraries and include
files
# on your system someplace. The actual SDE server you wish to connect to
can
# be elsewhere.
SDE= -DUSE_SDE
SDE_LIB= -L/usr/local/sdeexe81//lib -lsde81 -lpe81 -lsg81 -lpthread
-ldl -lrt
SDE_INC= -I/usr/local/sdeexe81//include
[...]
and I still get this compiling error message (after cleaning with
'make clean' ;-) ):
gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_PROJ -DUSE_PROJ_API_H
-DUSE_WMS_SVR -DUSE_WMS_LYR -DUSE_WFS_SVR -DUSE_WFS_LYR -DUSE_JPEG
-DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_PDF -DUSE_SDE
-DUSE_OGR -DUSE_GDAL -DUSE_THREAD -I/usr/local/include
-I/usr/local/sdeexe81//include -I/usr/local/include
-I/usr/local/include -I/usr/local/include shp2img.o -L. -lmap
-L/usr/local/lib -lgd -ljpeg -lfreetype -lpng -lz -lpdf -ljpeg
-lfreetype -lpng -lz -lproj -ljpeg -L/usr/local/sdeexe81//lib -lsde81
-lpe81 -lsg81 -lpthread -ldl -lrt -L/usr/local/lib -lgdal.1.1
-L/usr/local/lib -lcurl -L/usr/kerberos/lib -lz -lssl -lcrypto -ldl
-lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl
-lz -lz -lpthread -lm -lstdc++ -o shp2img
/usr/local/sdeexe81//lib/libsde81.so: the use of `tempnam' is dangerous,
better use `mkstemp'
/usr/local/sdeexe81//lib/libsde81.so: undefined reference to `__ctype_b'
/usr/local/sdeexe81//lib/libsde81.so: undefined reference to
`__ctype_toupper'
/usr/local/sdeexe81//lib/libsde81.so: undefined reference to
`__ctype_tolower'
collect2: ld returned 1 exit status
make: *** [shp2img] Fehler 1
[root at 192 mapserver-4.0.1]#
Thanx, but still need help :-(
Rainer
---------------------------------------------------------------
E-Mail: mailto:rasp at tzi.de
-----Ursprüngliche Nachricht-----
Von: Oliver Wesp [mailto:wesp at gdv.com]
Gesendet: Montag, 15. Dezember 2003 11:02
An: Rainer Spittel
Cc: mapserver-users at lists.gis.umn.edu
Betreff: Re: [Mapserver-users] compiling mapserver 4.0.1 with SDE81
under redhat 9: undefined reference to `__ctype_b'
Try to add the Option -lrt to SDE_LIB in your Makefile.
Rainer Spittel wrote:
> Hi,
>
> today is the day of the big update and I have my first problem...
> ;-)
> I want to use the Mapserver V4.0.1 on a RedHat 9.0 Server with SDE
> support (Version 8.1).
>
> I followed the instruction of the "RedHat9AndMapserver40" of the
> Wiki and everything is fine. After that, I've added postgis support
> and everything is fine.
>
> Now I want to add the SDE Support, installed the SDE Client
> libraries for RedHat with 'install -load' and setup the configuration
> for the mapserver like this:
>
> ./configure --without-tiff --without-eppl --with-threads --with-proj
> --with-gda\ l=/usr/local/bin/gdal-config --with-ogr
> --with-php=../php-4.3.3 --with-gd=/usr/\
> local --with-freetype=/usr/bin --with-pdf --without-ming
> --with-wmsclient --w\
> ith-wfs --with-wfsclient --with-sde=/usr/local/sdeexe81/
> --with-sde-version=81
>
> Now I receive following error message when I am compiling the
> mapserver:
>
> [...]
> -I/usr/local/include -I/usr/local/include -I/usr/local/include
> mappdf.c -o mappdf.o
> mappdf.c: In function `msSaveImagePDF':
> mappdf.c:1167: warning: unused variable `out'
> mappdf.c: In function `msDrawTextPDF':
> mappdf.c:1300: warning: assignment makes integer from pointer without
> a cast
> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_PROJ -DUSE_PROJ_API_H
> -DUSE_WMS_SVR -DUSE_WMS_LYR -DUSE_WFS_SVR -DUSE_WFS_LYR -DUSE_JPEG
> -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_PDF
-DUSE_SDE
> -DUSE_OGR -DUSE_GDAL -DUSE_THREAD -I/usr/local/include
> -I/usr/local/sdeexe81//include -I/usr/local/include
> -I/usr/local/include -I/usr/local/include mapjoin.c -o mapjoin.o
> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_PROJ -DUSE_PROJ_API_H
> -DUSE_WMS_SVR -DUSE_WMS_LYR -DUSE_WFS_SVR -DUSE_WFS_LYR -DUSE_JPEG
> -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_PDF
-DUSE_SDE
> -DUSE_OGR -DUSE_GDAL -DUSE_THREAD -I/usr/local/include
> -I/usr/local/sdeexe81//include -I/usr/local/include
> -I/usr/local/include -I/usr/local/include mapgraticule.c -o
> mapgraticule.o
> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_PROJ -DUSE_PROJ_API_H
> -DUSE_WMS_SVR -DUSE_WMS_LYR -DUSE_WFS_SVR -DUSE_WFS_LYR -DUSE_JPEG
> -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_PDF
-DUSE_SDE
> -DUSE_OGR -DUSE_GDAL -DUSE_THREAD -I/usr/local/include
> -I/usr/local/sdeexe81//include -I/usr/local/include
> -I/usr/local/include -I/usr/local/include mapcopy.c -o mapcopy.o
> ar rc libmap.a maptemplate.o mapbits.o maphash.o mapshape.o mapxbase.o
> mapparser.o maplexer.o maptree.o mapsearch.o mapstring.o mapsymbol.o
> mapfile.o maplegend.o maputil.o mapscale.o mapquery.o maplabel.o
> maperror.o mapprimitive.o mapproject.o mapraster.o mapsde.o mapogr.o
> mappostgis.o mapmygis.o maplayer.o mapresample.o mapwms.o
> mapwmslayer.o maporaclespatial.o mapgml.o mapprojhack.o mapthread.o
> mapdraw.o mapgd.o mapoutput.o mapgdal.o mapswf.o mapimagemap.o
> mapows.o mapwfs.o mapwfslayer.o mapcontext.o maphttp.o mapdrawgdal.o
> mappdf.o mapjoin.o mapgraticule.o mapcopy.o
> ranlib libmap.a
> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_PROJ -DUSE_PROJ_API_H
> -DUSE_WMS_SVR -DUSE_WMS_LYR -DUSE_WFS_SVR -DUSE_WFS_LYR -DUSE_JPEG
> -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_PDF
-DUSE_SDE
> -DUSE_OGR -DUSE_GDAL -DUSE_THREAD -I/usr/local/include
> -I/usr/local/sdeexe81//include -I/usr/local/include
> -I/usr/local/include -I/usr/local/include shp2img.c -o shp2img.o
> gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_PROJ -DUSE_PROJ_API_H
> -DUSE_WMS_SVR -DUSE_WMS_LYR -DUSE_WFS_SVR -DUSE_WFS_LYR -DUSE_JPEG
> -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_PDF
-DUSE_SDE
> -DUSE_OGR -DUSE_GDAL -DUSE_THREAD -I/usr/local/include
> -I/usr/local/sdeexe81//include -I/usr/local/include
> -I/usr/local/include -I/usr/local/include shp2img.o -L. -lmap
> -L/usr/local/lib -lgd -ljpeg -lfreetype -lpng -lz -lpdf -ljpeg
> -lfreetype -lpng -lz -lproj -ljpeg -L/usr/local/sdeexe81//lib
-lsde81
> -lpe81 -lsg81 -lpthread -ldl -L/usr/local/lib -lgdal.1.1
> -L/usr/local/lib -lcurl -L/usr/kerberos/lib -lz -lssl -lcrypto -ldl
> -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl
> -lz -lz -lpthread -lm -lstdc++ -o shp2img
> /usr/local/sdeexe81//lib/libsde81.so: the use of `tempnam' is
dangerous,
> better use `mkstemp'
> /usr/local/sdeexe81//lib/libsde81.so: undefined reference to
`__ctype_b'
> /usr/local/sdeexe81//lib/libsde81.so: undefined reference to
> `__ctype_toupper'
> /usr/local/sdeexe81//lib/libsde81.so: undefined reference to
> `__ctype_tolower'
> collect2: ld returned 1 exit status
> make: *** [shp2img] Fehler 1
> [root at 192 mapserver-4.0.1]#
>
> Is there something missing in the ld.so.conf? That is the current
> configuration:
>
> /usr/kerberos/lib
> /usr/X11R6/lib
> /usr/lib/qt-3.1/lib
> /usr/lib/sane
> /usr/local/lib
> /usr/local/pgsql/lib
> /usr/local/sdeexe81/lib/
>
> Does anyone have an idea? Merry x-mas and hope to hear from you... ;-)
>
> Ciao
>
> Rainer
> ---------------------------------------------------------------
> Dipl. Inf. Rainer Spittel
> TZI - Center for Computing Technologies
> Intelligent Systems
> University of Bremen
> Universitaetsallee 21-23, D-28359 Bremen, GERMANY
> Tel: 0421/218-7091 Fax: 0421/218-7196
> E-Mail: mailto:rasp at tzi.de
>
> _______________________________________________
> Mapserver-users mailing list Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>
>
>
--
Dipl.-Geogr. Oliver Wesp
Gesellschaft fuer geografische Datenverarbeitung
Binger Strasse 49-51
D-55218 Ingelheim
fon: +49 6132 714818
fax: +49 6132 714828
http: www.gdv.com
More information about the MapServer-users
mailing list