[Mapserver-users] Perl Mapscript (with Mapserver-3.6.3) on Redhat 8 compiles, but returns __gxx_personality_v0 when tested

Jonathan W. Lowe jlowe at giswebsite.com
Tue Dec 17 13:14:53 EST 2002


List:

Has anyone successfully compiled and run Perl Mapscript (from the
Mapserver-3.6.3 distribution) on Redhat 8?  

Thanks to the mapserver-user list archive, I was able to install
mapserver-3.6.3 on redhat 8 successfully by replacing (CC) with (CXX)
such as in the following example:

	Original:
	shp2img: libmap.a  shp2img.o map.h
	$(CC) $(CFLAGS) shp2img.o $(LDFLAGS) $(STATIC_LIBS) -o shp2img
	
	Changed to:
	shp2img: libmap.a  shp2img.o map.h
	$(CXX) $(CFLAGS) shp2img.o $(LDFLAGS) $(STATIC_LIBS) -o shp2img

Perl Mapscript also compiles when the line...
	SWIGEXPORT(void) boot_mapscript(CV* cv); 
...is replaced with...
	XS(boot_mapscript);
...in the mapscript_wrap.c file.

However, when referencing the resulting mapscript.pm module in a perl
script (see reference example below), the dreaded __gxx_personality_v0
raises its ugly head (see error details below).  Have any others on the
list succeeded in compiling and running perl mapscript on redhat 8?

Example of ms_test.pl script reference to perl mapscript:

#!/usr/bin/perl -w
use lib
'/home/gisweb/local/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi';
# Location of mapscript.pm
use mapscript;
# --- End of ms_test.pl --- #

The resulting error message when running "perl ms_test.pl":

Can't load
'/home/gisweb/local/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/mapscript/mapscript.so' for module mapscript: /home/gisweb/local/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/mapscript/mapscript.so: undefined symbol: __gxx_personality_v0 at /usr/lib/perl5/5.8.0/i386-linux-thread-multi/DynaLoader.pm line 229.
 at
/home/gisweb/local/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/mapscript.pm line 7
Compilation failed in require at ms_test.pl line 3.
BEGIN failed--compilation aborted at ms_test.pl line 3.

An advanced thank you for any advice or suggestions,

Jonathan W. Lowe
jlowe at giswebsite.com




More information about the mapserver-users mailing list