[Mapserver-users] New User - Compile problems...
Aaron Racicot
aaronr at ccalmr.ogi.edu
Tue Feb 18 12:58:34 PST 2003
That was it... Thanks a million. Sorry for the repeat question.
Aaron
-----Original Message-----
From: mapserver-users-admin at lists.gis.umn.edu
[mailto:mapserver-users-admin at lists.gis.umn.edu]On Behalf Of Madere, Colin
Sent: Tuesday, February 18, 2003 12:50 PM
To: mapserver-users at lists.gis.umn.edu
Subject: RE: [Mapserver-users] New User - Compile problems...
I had this problem on Solaris 8 too, and I _think_ this was the problem I
fixed by doing the following:
1) run configure with whatever options
2) edit "Makefile" and add " -lstdc++" to the end of the variable being set
named "STATIC_LIBS"
3) make
I've already posted this a couple of times, but it was quite recent so the
archives may not have picked it up...
> -----Original Message-----
> From: Aaron Racicot [SMTP:aaronr at ccalmr.ogi.edu]
> Sent: Tuesday, February 18, 2003 2:29 PM
> To: mapserver-users at lists.gis.umn.edu
> Subject: [Mapserver-users] New User - Compile problems...
>
> Hello,
> I am a new user and am having problems getting mapserver to
> compile for the first time. I am compiling on a linux box and have gotten
> the same error when trying mapserver version 3.5 and 3.6.4. Can anyone
> out there give me some clues as to what this might be? I have included
> the output from the configure and the make below...
>
> Thanks
>
> Aaron Racicot
> Oregon Health Science University
> OGI - School of science and engineering
>
> CONFIGURE:
> creating cache ./config.cache
> checking for gcc... gcc
> checking whether the C compiler (gcc ) works... yes
> checking whether the C compiler (gcc ) is a cross-compiler... no
> checking whether we are using GNU C... yes
> checking whether gcc accepts -g... yes
> checking for c++... c++
> checking whether the C++ compiler (c++ ) works... yes
> checking whether the C++ compiler (c++ ) is a cross-compiler... no
> checking whether we are using GNU C++... yes
> checking whether c++ accepts -g... yes
> checking for ranlib... ranlib
> checking for flex... flex
> checking for yywrap in -lfl... yes
> checking for bison... bison -y
> checking if compiler supports -R... no
> checking if compiler supports -Wl,-rpath,... yes
> checking for exp in -lm... yes
> checking how to run the C preprocessor... gcc -E
> checking for ANSI C header files... yes
> checking for strcasecmp... yes
> checking for strncasecmp... yes
> checking for strdup... yes
> checking whether we should include JPEG support...
> checking for jpeg_read_header in -ljpeg... yes
> using libjpeg from system libs.
> checking which version of GD to use...
> using libgd from system libs.
> checking where FreeType is installed...
> checking for FT_Init_FreeType in -lfreetype... yes
> using libfreetype -lfreetype from system libs.
> checking where Zlib is installed...
> checking for zlibVersion in -lz... yes
> using libz from system libs.
> checking where PNG is installed...
> checking for png_init_io in -lpng... yes
> using libpng from system libs.
> checking for gdImageCreate in -lgd... yes
> checking for gdImageGif in -lgd... no
> checking for gdImagePng in -lgd... yes
> checking for gdImageJpeg in -lgd... yes
> checking for gdImageWBMP in -lgd... yes
> checking for gdImageStringFT in -lgd... yes
> checking for gdImageString16 in -lgd... yes
> checking for gdImageGifPtr in -lgd... no
> using GD ( -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT)
> from system libs.
> checking whether we should include PDF support...
> checking for PDF_setlinewidth in -lpdf... no
> checking for PDF_setrgbcolor in -lpdf... no
> checking for PDF_moveto in -lpdf... no
> checking for PDF_curveto in -lpdf... no
> checking for PDF_show_xy in -lpdf... no
> libpdf not found... PDF support not included.
> checking whether we should include TIFF support...
> checking for TIFFOpen in -ltiff... yes
> using libtiff from system libs.
> checking whether we should include EPPL7 support...
> including EPPL7 support.
> checking whether we should include PROJ.4 support...
> PROJ.4 support not requested.
> checking whether we should include ESRI SDE support...
> ESRI SDE support not requested.
> checking whether we should compile in MPATROL support...
> MPATROL support not requested.
> checking whether we should include OGR support...
> OGR support not requested.
> checking if GDAL support requested... no
> checking if PostGIS support requested... no
> checking if OracleSpatial support requested... no
> checking whether we should include WMS support...
> OGC WMS Compatibility not enabled (PROJ.4 is required for WMS).
> checking whether we should include WMS Client Connections support...
> OGC WMS Client Connections not enabled (PROJ.4 and libwww
> required).
> Compiling with -DIGNORE_MISSING_DATA.
> checking for PHP/MapScript module options...
> PHP/MapScript module not configured.
> updating cache ./config.cache
> creating ./config.status
> creating Makefile
>
>
>
> MAKE (error):
> gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG
> -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/include
> shp2img.o -L. -lmap -lgd -L/usr/lib -lgd -ljpeg -lfreetype -lpng -lz
> -ltiff -ljpeg -lfreetype -lpng -lz -ljpeg -lm -o shp2img
> ./libmap.a(mapogr.o)(.eh_frame+0x11): undefined reference to
> `__gxx_personality_v0'
> collect2: ld returned 1 exit status
> make: *** [shp2img] Error 1
>
>
>
> MAKE (full output):
> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF
> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT
> -I/usr/include mapbits.c -o mapbits.o
> cc1: warning: changing search order for system directory "/usr/include"
> cc1: warning: as it has already been specified as a non-system directory
> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF
> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT
> -I/usr/include maphash.c -o maphash.o
> cc1: warning: changing search order for system directory "/usr/include"
> cc1: warning: as it has already been specified as a non-system directory
> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF
> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT
> -I/usr/include mapshape.c -o mapshape.o
> cc1: warning: changing search order for system directory "/usr/include"
> cc1: warning: as it has already been specified as a non-system directory
> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF
> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT
> -I/usr/include mapxbase.c -o mapxbase.o
> cc1: warning: changing search order for system directory "/usr/include"
> cc1: warning: as it has already been specified as a non-system directory
> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF
> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT
> -I/usr/include mapparser.c -o mapparser.o
> cc1: warning: changing search order for system directory "/usr/include"
> cc1: warning: as it has already been specified as a non-system directory
> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF
> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT
> -I/usr/include maplexer.c -o maplexer.o
> cc1: warning: changing search order for system directory "/usr/include"
> cc1: warning: as it has already been specified as a non-system directory
> maplexer.c:3125: warning: `yyunput' defined but not used
> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF
> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT
> -I/usr/include maptree.c -o maptree.o
> cc1: warning: changing search order for system directory "/usr/include"
> cc1: warning: as it has already been specified as a non-system directory
> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF
> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT
> -I/usr/include mapsearch.c -o mapsearch.o
> cc1: warning: changing search order for system directory "/usr/include"
> cc1: warning: as it has already been specified as a non-system directory
> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF
> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT
> -I/usr/include mapstring.c -o mapstring.o
> cc1: warning: changing search order for system directory "/usr/include"
> cc1: warning: as it has already been specified as a non-system directory
> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF
> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT
> -I/usr/include mapsymbol.c -o mapsymbol.o
> cc1: warning: changing search order for system directory "/usr/include"
> cc1: warning: as it has already been specified as a non-system directory
> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF
> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT
> -I/usr/include mapfile.c -o mapfile.o
> cc1: warning: changing search order for system directory "/usr/include"
> cc1: warning: as it has already been specified as a non-system directory
> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF
> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT
> -I/usr/include maplegend.c -o maplegend.o
> cc1: warning: changing search order for system directory "/usr/include"
> cc1: warning: as it has already been specified as a non-system directory
> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF
> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT
> -I/usr/include maputil.c -o maputil.o
> cc1: warning: changing search order for system directory "/usr/include"
> cc1: warning: as it has already been specified as a non-system directory
> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF
> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT
> -I/usr/include mapscale.c -o mapscale.o
> cc1: warning: changing search order for system directory "/usr/include"
> cc1: warning: as it has already been specified as a non-system directory
> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF
> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT
> -I/usr/include mapquery.c -o mapquery.o
> cc1: warning: changing search order for system directory "/usr/include"
> cc1: warning: as it has already been specified as a non-system directory
> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF
> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT
> -I/usr/include maplabel.c -o maplabel.o
> cc1: warning: changing search order for system directory "/usr/include"
> cc1: warning: as it has already been specified as a non-system directory
> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF
> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT
> -I/usr/include maperror.c -o maperror.o
> cc1: warning: changing search order for system directory "/usr/include"
> cc1: warning: as it has already been specified as a non-system directory
> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF
> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT
> -I/usr/include mapprimitive.c -o mapprimitive.o
> cc1: warning: changing search order for system directory "/usr/include"
> cc1: warning: as it has already been specified as a non-system directory
> mapprimitive.c:771: warning: `get_centroid' defined but not used
> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF
> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT
> -I/usr/include mapproject.c -o mapproject.o
> cc1: warning: changing search order for system directory "/usr/include"
> cc1: warning: as it has already been specified as a non-system directory
> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF
> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT
> -I/usr/include mapraster.c -o mapraster.o
> cc1: warning: changing search order for system directory "/usr/include"
> cc1: warning: as it has already been specified as a non-system directory
> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF
> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT
> -I/usr/include mapsde.c -o mapsde.o
> cc1: warning: changing search order for system directory "/usr/include"
> cc1: warning: as it has already been specified as a non-system directory
> c++ -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF
> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT
> -I/usr/include mapogr.cpp -o mapogr.o
> cc1plus: warning: changing search order for system directory
> "/usr/include"
> cc1plus: warning: as it has already been specified as a non-system
> directory
> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF
> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT
> -I/usr/include mappostgis.c -o mappostgis.o
> cc1: warning: changing search order for system directory "/usr/include"
> cc1: warning: as it has already been specified as a non-system directory
> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF
> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT
> -I/usr/include maplayer.c -o maplayer.o
> cc1: warning: changing search order for system directory "/usr/include"
> cc1: warning: as it has already been specified as a non-system directory
> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF
> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT
> -I/usr/include mapresample.c -o mapresample.o
> cc1: warning: changing search order for system directory "/usr/include"
> cc1: warning: as it has already been specified as a non-system directory
> mapresample.c:419: warning: `msInitApproxTransformer' defined but not used
> mapresample.c:436: warning: `msFreeApproxTransformer' defined but not used
> mapresample.c:447: warning: `msApproxTransformer' defined but not used
> mapresample.c:551: warning: `msTransformMapToSource' defined but not used
> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF
> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT
> -I/usr/include mapwms.c -o mapwms.o
> cc1: warning: changing search order for system directory "/usr/include"
> cc1: warning: as it has already been specified as a non-system directory
> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF
> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT
> -I/usr/include mapwmslayer.c -o mapwmslayer.o
> cc1: warning: changing search order for system directory "/usr/include"
> cc1: warning: as it has already been specified as a non-system directory
> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF
> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT
> -I/usr/include maporaclespatial.c -o maporaclespatial.o
> cc1: warning: changing search order for system directory "/usr/include"
> cc1: warning: as it has already been specified as a non-system directory
> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF
> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT
> -I/usr/include mapgml.c -o mapgml.o
> cc1: warning: changing search order for system directory "/usr/include"
> cc1: warning: as it has already been specified as a non-system directory
> mapgml.c: In function `gmlWriteBounds':
> mapgml.c:73: warning: control reaches end of non-void function
> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF
> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT
> -I/usr/include mapprojhack.c -o mapprojhack.o
> cc1: warning: changing search order for system directory "/usr/include"
> cc1: warning: as it has already been specified as a non-system directory
> mapprojhack.c:71: warning: `ConvertProjUnitStringToMS' defined but not
> used
> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF
> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT
> -I/usr/include epplib.c -o epplib.o
> cc1: warning: changing search order for system directory "/usr/include"
> cc1: warning: as it has already been specified as a non-system directory
> ar rc libmap.a 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
> maplayer.o mapresample.o mapwms.o mapwmslayer.o maporaclespatial.o
> mapgml.o mapprojhack.o epplib.o
> ranlib libmap.a
> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF
> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT
> -I/usr/include shp2img.c -o shp2img.o
> cc1: warning: changing search order for system directory "/usr/include"
> cc1: warning: as it has already been specified as a non-system directory
> gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG
> -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/include
> shp2img.o -L. -lmap -lgd -L/usr/lib -lgd -ljpeg -lfreetype -lpng -lz
> -ltiff -ljpeg -lfreetype -lpng -lz -ljpeg -lm -o shp2img
> ./libmap.a(mapogr.o)(.eh_frame+0x11): undefined reference to
> `__gxx_personality_v0'
> collect2: ld returned 1 exit status
> make: *** [shp2img] Error 1
>
>
>
_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
More information about the MapServer-users
mailing list