Bug 103729

Summary: Perls reports "undefined symbol" when running with debug option
Product: [Retired] Red Hat Linux Reporter: Christian Franck <christian_franck>
Component: perlAssignee: Warren Togami <wtogami>
Status: CLOSED WONTFIX QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.3   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
URL: http://archive.develooper.com/perl5-porters@perl.org/msg58564.html
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-09-07 10:16:03 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Attachments:
Description Flags
proposed patch to fix the problem none

Description Christian Franck 2003-09-04 13:38:35 UTC
Description of problem: (perl-5.6.1-34.99.6.rpm 

$ make test
PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib
-I/usr/lib/perl5/5.6.1/i386-linux -I/usr/lib/perl5/5.6.1 test.pl
1..1
# Running under perl version 5.006001 for linux
# Current time local: Tue Sep  2 08:32:00 2003
# Current time GMT:   Tue Sep  2 06:32:00 2003
# Using Test.pm version 1.24
Can't load '/usr/lib/perl5/5.6.1/i386-linux/auto/re/re.so' for module re:
/usr/lib/perl5/5.6.1/i386-linux/auto/re/re.so:
 undefined symbol: Perl_deb at /usr/lib/perl5/5.6.1/i386-linux/XSLoader.pm
line 75.
 at /usr/lib/perl5/5.6.1/i386-linux/re.pm line 109
BEGIN failed--compilation aborted at test.pl line 18.
make: *** [test_dynamic] Error 255

To reproduce launch the following commands:

$ h2xs -A -C -X -b 5.6.1 -v 1.00 -n XYZ
Writing XYZ/XYZ.pm
Writing XYZ/Makefile.PL
Writing XYZ/README
Writing XYZ/test.pl
Writing XYZ/MANIFEST
$ cd XYZ
$ echo "use re debug;" >> test.pl
$ perl Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for XYZ
$ make
cp XYZ.pm blib/lib/XYZ.pm
Manifying blib/man3/XYZ.3pm
$ make test
PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib
-I/usr/lib/perl5/5.6.1/i386-linux -I/usr/lib/perl5/5.6.1 test.pl
1..1
# Running under perl version 5.006001 for linux
# Current time local: Tue Sep  2 08:32:00 2003
# Current time GMT:   Tue Sep  2 06:32:00 2003
# Using Test.pm version 1.24
Can't load '/usr/lib/perl5/5.6.1/i386-linux/auto/re/re.so' for module re:
/usr/lib/perl5/5.6.1/i386-linux/auto/re/re.so:
 undefined symbol: Perl_deb at /usr/lib/perl5/5.6.1/i386-linux/XSLoader.pm
line 75.
 at /usr/lib/perl5/5.6.1/i386-linux/re.pm line 109
BEGIN failed--compilation aborted at test.pl line 18.
make: *** [test_dynamic] Error 255

This is expected:

$ make test
PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib -
I/usr/lib/perl5/5.6.1/i386-linux -I/usr/lib/perl5/5.6.1 test.pl
1..1
ok 1

Comment 1 Christian Franck 2003-09-04 13:43:29 UTC
Created attachment 94198 [details]
proposed patch to fix the problem

I patched an rebuilt both src and bin rpm file perl-5.6.1-34.99 using
http://archive.develooper.com/perl5-porters@perl.org/msg58564.html
and got a working perl 5.6.1

The URL is http://archive.develooper.com/perl5-porters@perl.org/msg58564.html