[Mapserver-users] shp2img_error
Maurício Pereira Reis
mpr at dpi.ufv.br
Fri Jan 17 08:08:21 PST 2003
The error undefined reference to `__gxx_personality_v0' tells you that you
need to link shp2img using g++ rather than gcc because one of your
libraries has C++ code.
I suggest that you make a backup copy of your Mapserver Makefile. Open the
Makefile and go to the lines where the Mapserver apps are compiled. There
will be lines like these: $(CC) -o shp2img shp2img.o ... Replace $(CC) with
$(CXX), and make sure that CXX is defined as c++ or g++ at some lesser line
number in the Makefile (this should be true by default).
Good luck!
Mauricio
At 12:53 17/1/2003 +0100, hvollmer at zebris.com wrote:
>Hello
>I am trying to install a 3.6 build of mapserver on a Redhat 7 Linux box
>while using the following options with the configuration script.
>
>./configure --with-gd=/usr/local/gd-2.0.10
>--with-freetype=/usr/lib/freetype --with-jpeg=/usr/local/jpeg
>
>gd-2.0.10
>freetype-2.1.2
>jpeg-6b
>
>After compilation the libraries are indicated and the makefile builds
>without complaint.
>When I run 'make' I get the following problem
>
>gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_JPEG
>-DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT
>-I/usr/local/include shp2img.o -L. -lmap -lgd
>-L/usr/local/lib -lgd -ljpeg -lfreetype -lpng - lz -ljpeg
>-lfreetype -lpng -lz -ljpeg -lm -o shp2img
>./libmap.a(mapogr.o)(.eh_frame+0x11): undefined reference to
>`__gxx_personali ty_v0'
>collect2: ld returned 1 exit status
>make: *** [shp2img] Fehler 1
>
>Does anyone Knows this error and could I please get some pointers or
>advice?
>
>Thanks in advance,
>
>Hennes Vollmer
>_______________________________________________
>Mapserver-users mailing list
>Mapserver-users at lists.gis.umn.edu
>http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
------
Mauricio Pereira Reis
Graduando em Ciência da Computação
Universidade Federal de Viçosa - UFV
Minas Gerais - Brasil
More information about the MapServer-users
mailing list