[Mapserver-users] how to compile sde support on redhat 9.0 with gcc v3.2.2

Rainer Spittel rasp at tzi.de
Mon Dec 15 10:22:59 EST 2003


Hi,

    I was confused about the problems compiling mapserver with
sde-support. I have found out that the compiler error seems to be a
problem with the new gcc compiler (V3.2.2). Following error messages
come up:

 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]# 

    It seems to be a problem with the standard-C++ libraries stdc++.
Does someone have an idea how I can compile the mapserver with sde
support? Shall I use the old gcc2.96 and recompile all libraries for te
mapserver (e.g. php, gdal)? Or is there an update for the sde-linux
libraries for the gcc compiler?

Regards

Rainer Spittel
---------------------------------------------------------------
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




More information about the mapserver-users mailing list