Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 273491 - net-dialup/freeradius-2.1.3-r1: ..DBI.so: undefined symbol: PL_tainting at.. while perl script compilation
Summary: net-dialup/freeradius-2.1.3-r1: ..DBI.so: undefined symbol: PL_tainting at.. ...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-10 09:53 UTC by Migo
Modified: 2011-01-23 16:02 UTC (History)
2 users (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 Migo 2009-06-10 09:53:24 UTC
After system upgrade perl script used to authenticate clients by postgres fail while radiusd is loading:

baza raddb # radiusd -f
Can't load '/usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux/auto/DBI/DBI.so' for module DBI: /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux/auto/DBI/DBI.so: undefined symbol: PL_tainting at /usr/lib64/perl5/5.8.8/x86_64-linux/DynaLoader.pm line 230.
 at /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux/DBI.pm line 263
BEGIN failed--compilation aborted at /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux/DBI.pm line 263.
Compilation failed in require at /etc/raddb/example.pl line 6.
BEGIN failed--compilation aborted at /etc/raddb/example.pl line 6.

baza raddb # head -n 6 example.pl
#!/usr/bin/perl


use strict;
#use Pg;
use DBI;



modules/perl file contains:
perl {
    module = /etc/raddb/example.pl
    func_authenticate = authenticate
    func_authorize = authorize

    max_clones = 32
    start_clones = 32
    min_spare_clones = 0
    max_spare_clones = 32
    cleanup_delay = 5
    max_request_per_clone = 0
}


Reproducible: Always

Steps to Reproduce:
1.Upgrade system (perl, postgres, freeradius)
2.Configure freeradius to use example.pl as authenticate system
3.run radiusd

Actual Results:  
Can't load '/usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux/auto/DBI/DBI.so' for module DBI: /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux/auto/DBI/DBI.so: undefined symbol: PL_tainting at /usr/lib64/perl5/5.8.8/x86_64-linux/DynaLoader.pm line 230.
 at /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux/DBI.pm line 263
BEGIN failed--compilation aborted at /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux/DBI.pm line 263.
Compilation failed in require at /etc/raddb/example.pl line 6.
BEGIN failed--compilation aborted at /etc/raddb/example.pl line 6.
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-06-13 20:50:00 UTC
Please post your "emerge --info".
Comment 2 Migo 2009-06-14 18:22:23 UTC
# emerge --info                                 
Portage 2.1.6.13 (default/linux/amd64/2008.0, gcc-4.3.3, glibc-2.10.1-r0, 2.6.26-gentoo-r1 x86_64)
=================================================================                                 
System uname: Linux-2.6.26-gentoo-r1-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E6550_@_2.33GHz-with-gentoo-2.0.1
Timestamp of tree: Wed, 10 Jun 2009 12:00:01 +0000                                                      
app-shells/bash:     4.0_p24                                                                            
dev-java/java-config: 1.3.7, 2.1.6                                                                      
dev-lang/python:     2.4.4-r6, 2.5.2-r8, 2.6.2                                                          
dev-python/pycrypto: 2.0.1-r6                                                                           
sys-apps/baselayout: 2.0.1                                                                              
sys-apps/openrc:     0.4.3-r3                                                                           
sys-apps/sandbox:    1.9                                                                                
sys-devel/autoconf:  2.63-r1                                                                            
sys-devel/automake:  1.5, 1.10.2, 1.11                                                                  
sys-devel/binutils:  2.19.1-r1                                                                          
sys-devel/gcc-config: 1.4.1                                                                             
sys-devel/libtool:   2.2.6a                                                                             
virtual/os-headers:  2.6.29                                                                             
ACCEPT_KEYWORDS="amd64 ~x86"                                                                            
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache collision-protect distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="pl_PL"
LC_ALL="pl_PL"
LDFLAGS="-Wl,-O1"
LINGUAS="pl en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl amd64 berkdb bzip2 cli cracklib crypt cups dri fortran gdbm glibc-omitfp gpm iconv ipv6 isdnlog midi mmx mudflap multilib ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection rrdcgi rrdmon rrdtool session spl sse sse2 ssl ssse3 svg sysfs tcpd threads unicode urandom xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pl en" USERLAND="GNU" VIDEO_CARDS="fbdev glint i810 intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2009-06-15 06:26:58 UTC
Um, did you run perl-cleaner after the "perl upgrade"?
Comment 4 Migo 2009-06-15 07:49:14 UTC
(In reply to comment #3)
> Um, did you run perl-cleaner after the "perl upgrade"?
> 

Of course I did. Few times. I did emerge -av world also, and after that perl-cleaner.

Script example.pl runs correct when I run it by: perl example.pl
Comment 5 Migo 2009-06-15 07:57:28 UTC
(In reply to comment #3)
> Um, did you run perl-cleaner after the "perl upgrade"?
> 

I run "perl-cleaner all"
Comment 6 Migo 2009-06-19 10:46:13 UTC
(In reply to comment #3)
> Um, did you run perl-cleaner after the "perl upgrade"?
> 

Do you have any other ideas?
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2009-06-21 14:17:34 UTC
1) Don't refer to externally stored information, but post all information in comments and in attachments <http://pastebin.com/m46849dbe>

2) It's not a "critical" bug.
Comment 8 Alin Năstac (RETIRED) gentoo-dev 2009-06-21 14:52:37 UTC
Perl peeps, can you help me with this? Seems to me perl is to blame for that.

@reporter: try to run perl -T example.pl
Comment 9 Migo 2009-06-23 08:11:05 UTC
(In reply to comment #8)
> Perl peeps, can you help me with this? Seems to me perl is to blame for that.
> 
> @reporter: try to run perl -T example.pl
> 

perl -T example.pl runs correct,

but i found solution:
LD_PRELOAD=/usr/lib/libperl.so.1.5.8 radiusd 

that runs ok
Comment 10 Alin Năstac (RETIRED) gentoo-dev 2009-06-25 00:05:03 UTC
(In reply to comment #9)
> but i found solution:
> LD_PRELOAD=/usr/lib/libperl.so.1.5.8 radiusd 

That is strange. According to ldd, rlm_perl-2.1.3.so is linked to /usr/lib/libperl.so.1, which at least on my system is a symlink to /usr/lib/libperl.so.1.5.8.

Could anyone explain how the hell this happens?
Comment 11 Tamas Koszta 2010-09-01 15:27:11 UTC
Maybe a new ebuild could be release for this LD_PRELOAD fix
Comment 12 Torsten Veller (RETIRED) gentoo-dev 2010-09-01 15:43:36 UTC
Please add:
emerge -pv dev-perl/perl sys-devel/libperl