Heh, I've found problem, perl and libperl was compiled with different
flags. libperl was compiled without -DDEBUGGING.


On 1/17/06, Ruslan Zakirov <[EMAIL PROTECTED]> wrote:
> I've hacked List::Util a little, to see if it dies in loading .so and
> it does with error:
> [Tue Jan 17 00:45:13 2006] [error] Can't load
> '/usr/lib/perl5/vendor_perl/5.8.7/x86_64-linux/auto/List/Util/Util.so'
> for module List::Util:
> /usr/lib/perl5/vendor_perl/5.8.7/x86_64-linux/auto/List/Util/Util.so:
> undefined symbol: PL_block_type at
> /usr/lib/perl5/vendor_perl/5.8.7/XSLoader.pm line 70.\n at
> /usr/lib/perl5/vendor_perl/5.8.7/x86_64-linux/List/Util.pm line 25\n
>
> Where to go next?
>
> On 1/17/06, Ruslan Zakirov <[EMAIL PROTECTED]> wrote:
> > Hello.
> >
> > I get "Undefined subroutine &Scalar::Util::weaken called at
> > /opt/rt34/lib/RT/Action/Generic.pm line 108." which means that
> > Scalar::Util (really List::Util) couldn't load XS library, but this
> > happens only under mod_perl, for example this works from CLI and under
> > HTTP::Server::Simple. I've rebuilt almost everything related to perl
> > and MP with no luck.
> >
> > Where can I look next?
> >
> > Perl info (from Apache::Status):
> >
> > Embedded Perl version v5.8.7 for Apache/2.0.55 process 19403,
> > running since Mon Jan 16 16:37:52 2006:
> >
> > Summary of my perl5 (revision 5 version 8 subversion 7) configuration:
> >   Platform:
> >     osname=linux, osvers=2.6.14-gentoo-r5-c11, archname=x86_64-linux
> >     uname='linux cubic-pc 2.6.14-gentoo-r5-c11 #1 thu dec 22 04:13:44
> > msk 2005 x86_64 amd athlon(tm) 64 processor 2800+ authenticamd
> > gnulinux '
> >     config_args='-des -Darchname=x86_64-linux -Dcccdlflags=-fPIC
> > -Dccdlflags=-rdynamic -Dcc=x86_64-pc-linux-gnu-gcc -Dprefix=/usr
> > -Dvendorprefix=/usr -Dsiteprefix=/usr -Dlocincpth=
> > -Doptimize=-march=k8 -pipe -O2 -g -Duselargefiles -Dd_semctl_semun
> > -Dscriptdir=/usr/bin -Dman1dir=/usr/share/man/man1
> > -Dman3dir=/usr/share/man/man3 -Dinstallman1dir=/usr/share/man/man1
> > -Dinstallman3dir=/usr/share/man/man3 -Dman1ext=1 -Dman3ext=3pm
> > -Dinc_version_list=5.8.0 5.8.0/x86_64-linux 5.8.2 5.8.2/x86_64-linux
> > 5.8.4 5.8.4/x86_64-linux 5.8.5 5.8.5/x86_64-linux 5.8.6
> > 5.8.6/x86_64-linux  -Dcf_by=Gentoo -Ud_csh -Di_ndbm -Ui_gdbm -Di_db
> > -Dusrinc=/usr/include/gentoo-multilib/amd64 -Dlibpth='/usr/local/lib64
> > /lib64 /usr/lib64''
> >     hint=recommended, useposix=true, d_sigaction=define
> >     usethreads=undef use5005threads=undef useithreads=undef
> > usemultiplicity=undef
> >     useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
> >     use64bitint=define use64bitall=define uselongdouble=undef
> >     usemymalloc=n, bincompat5005=undef
> >   Compiler:
> >     cc='x86_64-pc-linux-gnu-gcc', ccflags ='-DDEBUGGING
> > -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE
> > -D_FILE_OFFSET_BITS=64',
> >     optimize='-march=k8 -pipe -O2 -g',
> >     cppflags='-DDEBUGGING -fno-strict-aliasing -pipe'
> >     ccversion='', gccversion='3.4.5 (Gentoo 3.4.5, ssp-3.4.5-1.0,
> > pie-8.7.9)', gccosandvers=''
> >     intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
> >     d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
> >     ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t',
> > lseeksize=8
> >     alignbytes=8, prototype=define
> >   Linker and Libraries:
> >     ld='x86_64-pc-linux-gnu-gcc', ldflags =''
> >     libpth=/usr/local/lib64 /lib64 /usr/lib64
> >     libs=-lpthread -lnsl -lndbm -ldb -ldl -lm -lcrypt -lutil -lc
> >     perllibs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc
> >     libc=/lib/libc-2.3.6.so, so=so, useshrplib=false, libperl=libperl.a
> >     gnulibc_version='2.3.6'
> >   Dynamic Linking:
> >     dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
> >     cccdlflags='-fPIC', lddlflags='-shared'
> >
> > @INC
> > /opt/rt34/local/lib
> > /opt/rt34/lib
> > /etc/perl
> > /usr/lib/perl5/site_perl/5.8.7/x86_64-linux
> > /usr/lib/perl5/site_perl/5.8.7
> > /usr/lib/perl5/site_perl
> > /usr/lib/perl5/vendor_perl/5.8.7/x86_64-linux
> > /usr/lib/perl5/vendor_perl/5.8.7
> > /usr/lib/perl5/vendor_perl
> > /usr/lib/perl5/5.8.7/x86_64-linux
> > /usr/lib/perl5/5.8.7
> > /usr/local/lib/site_perl
> > .
> > /usr/lib64/apache2
> >
> >
> > --
> > Best regards, Ruslan.
> >
>
>
> --
> Best regards, Ruslan.
>


--
Best regards, Ruslan.

Reply via email to