Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 97479 - perl-5.8.6-r4 and wrong @INC entries
Summary: perl-5.8.6-r4 and wrong @INC entries
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High blocker (vote)
Assignee: Michael Cummings (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-30 04:58 UTC by steveb
Modified: 2005-06-30 16:07 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description steveb 2005-06-30 04:58:52 UTC
I have emerged dev-lang/perl-5.8.6-r4 and have run "perl-cleaner reallyall" and     
still I have trouble to run certain perl applications (for example nagios).     
     
The error I get is (fro nagios):     
mail / # /etc/init.d/nagios restart   
 * Restarting nagios ...   
 * Stopping nagios ...   
start-stop-daemon: warning: failed to kill 7755: No such process                                                     
[ ok ]   
 * Starting nagios ...   
Can't locate re.pm in @INC (@INC   
contains: /etc/perl /usr/lib/perl5/site_perl/5.8.6/i686- /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.6/i686- /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.6/i686- /usr/lib/perl5/5.8.6 /usr/local/lib/site_perl /usr/lib/perl5/site_perl/5.8.5 .)   
at /usr/lib/perl5/5.8.6/Text/ParseWords.pm line 53.   
BEGIN failed--compilation aborted at /usr/lib/perl5/5.8.6/Text/ParseWords.pm   
line 53.   
Compilation failed in require at /usr/nagios/bin/p1.pl line 16.   
BEGIN failed--compilation aborted at /usr/nagios/bin/p1.pl line 16.                                                  
[ ok ]   
mail / #   
   
   
The problem is the strange @INC path. Some entries are missing the "linux" part   
of the path (for example "/usr/lib/perl5/site_perl/5.8.6/i686-").  
  
I don't know why this is wrong. What can I do to fix that problem? 

Reproducible: Always
Steps to Reproduce:
1.
2.
3.




mail / # emerge info 
Portage 2.0.51.19 (hardened/x86, gcc-3.4.4, glibc-2.3.4.20041102-r1, 2.6.12.1 
i686) 
================================================================= 
System uname: 2.6.12.1 i686 AMD Athlon (TM) 
Gentoo Base System version 1.6.12 
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Apr 27 2005, 19:16:30)] 
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) 
[enabled] 
ccache version 2.3 [enabled] 
dev-lang/python:     2.3.5 
sys-apps/sandbox:    [Not Present] 
sys-devel/autoconf:  2.59-r6, 2.13 
sys-devel/automake:  1.6.3, 1.7.9-r1, 1.4_p6, 1.8.5-r3, 1.5, 1.9.5 
sys-devel/binutils:  2.15.92.0.2-r10 
sys-devel/libtool:   1.5.16 
virtual/os-headers:  2.6.11-r2 
ACCEPT_KEYWORDS="x86" 
AUTOCLEAN="yes" 
CFLAGS="-march=athlon-tbird -Os -pipe -mmmx -m3dnow -fforce-addr 
-fomit-frame-pointer -funroll-loops -falign-functions=4 
-maccumulate-outgoing-args" 
CHOST="i686-pc-linux-gnu" 
CONFIG_PROTECT="/etc /etc/postfix /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/bind /var/qmail/control /var/run/dspam /var/spool/dspam /var/spool/vacation" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-march=athlon-tbird -Os -pipe -mmmx -m3dnow -fforce-addr 
-fomit-frame-pointer -funroll-loops -falign-functions=4 
-maccumulate-outgoing-args" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs autoconfig buildpkg ccache distcc distlocks sandbox 
sfperms strict userpriv" 
GENTOO_MIRRORS="ftp://sunsite.cnlab-switch.ch/mirror/gentoo 
http://www.ibiblio.org/pub/Linux/distributions/gentoo 
http://gentoo.oregonstate.edu/" 
MAKEOPTS="-j13" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/mnt/gentoo.overlay" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="x86 GAPING_SECURITY_HOLE X509 acl acpi apache2 authdaemond autofs berkdb 
crypt curl dlloader erandom fam fastcgi fla freetds gd gdbm geoip gif gmp 
hardened icc icc-pgo idn imagemagick imap innodb j2ee java javacomm javamail 
jboss jce jikes jms jmx jpeg jta kerberos krb4 large-domain lcms ldap libwww 
lzw lzw-tiff maildir mbox mcal mmx mpeg mysql nagios-dns nagios-game nagios-ntp 
nagios-ping nagios-ssh ncurses neural nls nptl oav odbc pam pam-mysql pdflib 
pear-db perl php pic png python readline rrdtool ruby samba sasl skey snmp 
spell sqlite srp sse ssl symlink tcpd threads tiff truetype urandom userlocales 
vda vhosts virtual-users wmf xml xml2 yaz zlib userland_GNU kernel_linux 
elibc_glibc" 
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS 
 
mail / # perl -V 
Summary of my perl5 (revision 5 version 8 subversion 6) configuration: 
  Platform: 
    osname=linux, osvers=2.6.12.1, archname=i686-linux 
    uname='linux mail 2.6.12.1 #1 fri jun 24 23:27:00 cest 2005 i686 amd athlon 
(tm) authenticamd gnulinux ' 
    config_args='-des -Darchname=i686-linux -Dcccdlflags=-fPIC 
-Dccdlflags=-rdynamic -Dcc=i686-pc-linux-gnu-gcc -Dprefix=/usr 
-Dvendorprefix=/usr -Dsiteprefix=/usr -Dlocincpth=  
-Doptimize=-march=athlon-tbird -O2 -pipe -mmmx -m3dnow -fforce-addr 
-fomit-frame-pointer -funroll-loops -falign-functions=4 
-maccumulate-outgoing-args -Duselargefiles -Dd_semctl_semun 
-Dscriptdir=/usr/bin -Dman1dir=/usr/share/man/man1 
-Dman3dir=/usr/share/man/man3 -Dinstallman1dir=/usr/share/man/man1 
-Dinstallman3dir=/var/tmp/portage/perl-5.8.6-r4/image//usr/share/man/man3 
-Dman1ext=1 -Dman3ext=3pm -Dinc_version_list=5.8.0 5.8.0/i686-linux 5.8.2 
5.8.2/i686-linux 5.8.4 5.8.4/i686-linux 5.8.5 5.8.5/i686-linux  -Dcf_by=Gentoo 
-Ud_csh -Di_ndbm -Di_gdbm -Di_db' 
    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=undef use64bitall=undef uselongdouble=undef 
    usemymalloc=n, bincompat5005=undef 
  Compiler: 
    cc='i686-pc-linux-gnu-gcc', ccflags ='-fno-strict-aliasing -pipe 
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64', 
    optimize='-march=athlon-tbird -O2 -pipe -mmmx -m3dnow -fforce-addr 
-fomit-frame-pointer -funroll-loops -falign-functions=4 
-maccumulate-outgoing-args', 
    cppflags='-DPERL5 -fno-strict-aliasing -pipe' 
    ccversion='', gccversion='3.4.4 (Gentoo Hardened 3.4.4, ssp-3.4.4-1.0, 
pie-8.7.8)', gccosandvers='' 
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12 
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', 
lseeksize=8 
    alignbytes=4, prototype=define 
  Linker and Libraries: 
    ld='i686-pc-linux-gnu-gcc', ldflags =' -L/usr/local/lib' 
    libpth=/usr/local/lib /lib /usr/lib 
    libs=-lpthread -lnsl -lndbm -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc 
    perllibs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc 
    libc=/lib/libc-2.3.4.so, so=so, useshrplib=false, libperl=libperl.a 
    gnulibc_version='2.3.4' 
  Dynamic Linking: 
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic' 
    cccdlflags='-fPIC', lddlflags='-shared -L/usr/local/lib' 
 
 
Characteristics of this binary (from libperl): 
  Compile-time options: USE_LARGE_FILES 
  Built under linux 
  Compiled at Jun 30 2005 13:34:19 
  @INC: 
    /etc/perl 
    /usr/lib/perl5/site_perl/5.8.6/i686-linux 
    /usr/lib/perl5/site_perl/5.8.6 
    /usr/lib/perl5/site_perl/5.8.5 
    /usr/lib/perl5/site_perl/5.8.5/i686-linux 
    /usr/lib/perl5/site_perl 
    /usr/lib/perl5/vendor_perl/5.8.6/i686-linux 
    /usr/lib/perl5/vendor_perl/5.8.6 
    /usr/lib/perl5/vendor_perl 
    /usr/lib/perl5/5.8.6/i686-linux 
    /usr/lib/perl5/5.8.6 
    /usr/local/lib/site_perl 
    /usr/lib/perl5/site_perl/5.8.5 
    /usr/lib/perl5/site_perl/5.8.5/i686-linux 
    . 
mail / #
Comment 1 Michael Cummings (RETIRED) gentoo-dev 2005-06-30 07:31:56 UTC
(*explitive*). Had that fixed in .7, fixing now  
Comment 2 Michael Cummings (RETIRED) gentoo-dev 2005-06-30 07:44:09 UTC
I'm looking - weird that perl -V is correct but the module is failing  
Comment 3 Michael Cummings (RETIRED) gentoo-dev 2005-06-30 08:10:53 UTC
OK, tracked it down to a change not propagated back to the libperl-5.8.6 
ebuild. Fix committed and edible. Please sync in an hour or so and re-emerge 
perl, this should be all good now. You may need to re-emerge any perl modules 
you installed following the upgrade, though only those that contain xs code 
(ie, compiled against libperl instead of being pure perl). 
Comment 4 steveb 2005-06-30 12:15:20 UTC
(In reply to comment #3) 
> OK, tracked it down to a change not propagated back to the libperl-5.8.6  
> ebuild. Fix committed and edible. Please sync in an hour or so and re-emerge  
> perl, this should be all good now. You may need to re-emerge any perl modules  
> you installed following the upgrade, though only those that contain xs code  
> (ie, compiled against libperl instead of being pure perl).  
 
Okay. I installed the new libperl and perl ebuild and it works again :) 
I am right now runing perl-cleaner to finish the update, but from my viewpoint 
this bug can now be closed. 
 
Thanks again for acting so quick. 
 
cheers 
 
Steve 
Comment 5 Michael Cummings (RETIRED) gentoo-dev 2005-06-30 13:29:19 UTC
(In reply to comment #4) 
> Okay. I installed the new libperl and perl ebuild and it works again :)  
> I am right now runing perl-cleaner to finish the update, but from my 
viewpoint  
> this bug can now be closed.  
 
will do. 
 
> Thanks again for acting so quick.  
 
Nah, you were just the first to notice - I hate releasing major packages, they 
always need so much babysitting afterwards because invariably you missed 
*something*. Thanks for your patience and understanding, 
 
mike 
Comment 6 steveb 2005-06-30 16:07:23 UTC
(In reply to comment #5) 
> (In reply to comment #4)  
> > Okay. I installed the new libperl and perl ebuild and it works again :)   
> > I am right now runing perl-cleaner to finish the update, but from my  
> viewpoint   
> > this bug can now be closed.   
>   
> will do.  
>   
> > Thanks again for acting so quick.   
>   
> Nah, you were just the first to notice - I hate releasing major packages, 
they  
> always need so much babysitting afterwards because invariably you missed  
> *something*. Thanks for your patience and understanding,  
>   
No! I have to thank you! 
 
This is exaclty what I love about Gentoo. We are a community distro and each of 
us is responsable for the progress of Gentoo. Each one of us on his own way. 
Working together is the key of the "Gentoo success". And as long as we have 
such good people on our site, everything will work out. Everything! No matter 
how big the problem is or was. 
 
> mike  
> 
Kind Regards 
 
Steve