[Mapserver-users] PERL mapscript undefined symbol woes

Slaven Rezic slaven@rezic.de
01 May 2003 23:48:06 +0200


Joe Bussell <joe@otsys.com> writes:

> perl -V does indeed include "useshrplib=true"
> 

Does it help if you specify LD_LIBRARY_PATH?

    env LD_LIBRARY_PATH=/path/containing/libperl.so yourscript

Regards,
	Slaven

> Slaven Rezic wrote:
> > Joe Bussell <joe@otsys.com> writes:
> > 
> > 
> >>Greetings Listers,
> >>    I have a Debian box with PERL5.8 and mapserver-3.6.5.  I have had 
> >>great success in the past with this box, but something in my build went 
> >>awry.  The compile for mapserv and then perl/mapscript completed without 
> >>error.  The object is also generally useful when using dump.pl and even 
> >>some live map rendering under apache.  The symptom that I observed is 
> >>that whenever the process needs to carp out something it segfaults and 
> >>dies.  I ran ldd with the -r option and observed an interresting clue 
> >>(see below).  Does anyone have any ideas how the Perl_* symbols are 
> >>defined?
> > 
> > 
> > Normally the Perl_* symbols are either in the perl library or in the
> > perl executable.
> > 
> > 
> >> Why would they not be found?  Should the list of *.so include 
> >>libperl.so?
> > 
> > 
> > I don't think so, at least it's not on FreeBSD.
> > 
> > 
> >> Any ideas on getting out of this mess?
> > 
> > 
> > What is the output of "perl -v"? Does it include "useshrplib=true"?
> > 
> > Regards,
> > 	Slaven
> > 
> > 
> >>ldd -r blib/arch/auto/mapscript/mapscript.so
> >>	libgd.so.2 => /usr/local/lib/libgd.so.2 (0x40102000)
> >>	libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x40147000)
> >>	libfreetype.so.6 => /usr/local/lib/libfreetype.so.6 (0x40164000)
> >>	libpng.so.2 => /usr/lib/libpng.so.2 (0x401ad000)
> >>	libz.so.1 => /lib/libz.so.1 (0x401d3000)
> >>	libtiff.so.3 => /usr/lib/libtiff.so.3 (0x401e0000)
> >>	libproj.so.0 => /usr/local/lib/libproj.so.0 (0x40224000)
> >>	libgdal.1.1.so => /usr/local/lib/libgdal.1.1.so (0x40255000)
> >>	libm.so.6 => /lib/libm.so.6 (0x404b0000)
> >>	libc.so.6 => /lib/libc.so.6 (0x404d1000)
> >>	libXpm.so.4 => /usr/X11R6/lib/libXpm.so.4 (0x405e1000)
> >>	libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x405ef000)
> >>	libdl.so.2 => /lib/libdl.so.2 (0x406ab000)
> >>	libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x406ae000)
> >>	libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x40757000)
> >>	/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
> >>undefined symbol: Perl_croak_nocontext 
> >>(blib/arch/auto/mapscript/mapscript.so)
> >>undefined symbol: Perl_sv_setiv	(blib/arch/auto/mapscript/mapscript.so)
> >>undefined symbol: Perl_sv_2pv_flags	(blib/arch/auto/mapscript/mapscript.so)
> >>undefined symbol: Perl_mg_find	(blib/arch/auto/mapscript/mapscript.so)
> >>undefined symbol: pthread_getspecific 
> >>(blib/arch/auto/mapscript/mapscript.so)
> >>undefined symbol: Perl_sv_newmortal	(blib/arch/auto/mapscript/mapscript.so)
> >>undefined symbol: Perl_sv_isobject	(blib/arch/auto/mapscript/mapscript.so)
> >>undefined symbol: Perl_sv_2nv	(blib/arch/auto/mapscript/mapscript.so)
> >>undefined symbol: Perl_Isv_yes_ptr	(blib/arch/auto/mapscript/mapscript.so)
> >>undefined symbol: Perl_sv_setpv	(blib/arch/auto/mapscript/mapscript.so)
> >>undefined symbol: Perl_newXS	(blib/arch/auto/mapscript/mapscript.so)
> >>undefined symbol: Perl_Tna_ptr	(blib/arch/auto/mapscript/mapscript.so)
> >>undefined symbol: Perl_Tmarkstack_ptr_ptr 
> >>(blib/arch/auto/mapscript/mapscript.so)
> >>undefined symbol: Perl_Isv_undef_ptr	(blib/arch/auto/mapscript/mapscript.so)
> >>undefined symbol: Perl_sv_magic	(blib/arch/auto/mapscript/mapscript.so)
> >>undefined symbol: Perl_sv_setsv_flags 
> >>(blib/arch/auto/mapscript/mapscript.so)
> >>undefined symbol: Perl_Tstack_base_ptr 
> >>(blib/arch/auto/mapscript/mapscript.so)
> >>undefined symbol: Perl_get_sv	(blib/arch/auto/mapscript/mapscript.so)
> >>undefined symbol: Perl_Gthr_key_ptr	(blib/arch/auto/mapscript/mapscript.so)
> >>undefined symbol: Perl_sv_setref_pv	(blib/arch/auto/mapscript/mapscript.so)
> >>undefined symbol: Perl_sv_2iv	(blib/arch/auto/mapscript/mapscript.so)
> >>undefined symbol: Perl_sv_setnv	(blib/arch/auto/mapscript/mapscript.so)
> >>undefined symbol: Perl_Tstack_sp_ptr	(blib/arch/auto/mapscript/mapscript.so)
> >>undefined symbol: Perl_sv_setpvn	(blib/arch/auto/mapscript/mapscript.so)
> >>undefined symbol: Perl_mg_get	(blib/arch/auto/mapscript/mapscript.so)
> >>
> >>
> >>Cordially,
> >>
> >>Joe Bussell
> >>On Time Systems
> >>www.trafficdodger.com
> >>
> >>_______________________________________________
> >>Mapserver-users mailing list
> >>Mapserver-users@lists.gis.umn.edu
> >>http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> >>
> > 
> > 
> 
> 
> 

-- 
Slaven Rezic - slaven@rezic.de
    babybike - routeplanner for cyclists in Berlin
	       handheld (e.g. Compaq iPAQ with Linux) version of bbbike
    http://bbbike.sourceforge.net
_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users