Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 183500

Summary: dev-lang/pugs-6.2.13 compile fails w/ undefined references
Product: Gentoo Linux Reporter: bbkr <spamfuckers>
Component: Current packagesAssignee: Gentoo Perl team <perl>
Status: RESOLVED LATER    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info
emerge pugs

Description bbkr 2007-06-28 10:11:18 UTC
pugs fails to compile

Reproducible: Always

Steps to Reproduce:
1. emerge pugs

Actual Results:  
check attachment for emerge output

Expected Results:  
compile pugs

related packages:

dev-lang/parrot-0.4.6
dev-lang/perl-5.8.8-r2
dev-lang/ghc-6.4.2
Comment 1 bbkr 2007-06-28 10:12:17 UTC
Created attachment 123287 [details]
emerge --info
Comment 2 bbkr 2007-06-28 10:13:22 UTC
Created attachment 123288 [details]
emerge pugs
Comment 3 bbkr 2007-06-28 10:19:53 UTC
i don't know if pugs links something against existing perl 5 but note that
perl5 was rebuilt with ithreads support which change it's directory names to
'thread-multi'.

bbkr@bbkr # perl -e 'print "@INC"'
/etc/perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi
/usr/lib64/perl5/vendor_perl/5.8.8 /usr/lib64/perl5/vendor_perl
/usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi
/usr/lib64/perl5/site_perl/5.8.8 /usr/lib64/perl5/site_perl
/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib64/perl5/5.8.8
/usr/local/lib/site_perl .
Comment 4 bbkr 2007-07-07 00:43:20 UTC
fixed, it was threads-related.

default gentoo stage3 is built without USE="ithreads". so if you want to have threaded PERL after adding this flag you have to:

recompile dev-lang/perl
recompile sys-devel/libperl (this was causing the bug)
recompile PERL modules with: perl -MCPAN -e 'CPAN::Shell->install(CPAN::Shell->r)'  or using emerge if you installed PERL modules from gentoo ebuilds

IMO there should be check performed in pugs ebuild: if perl is built with 'ithreads' flag then libperl must be built the same way.