Bug 23531

Summary: PERL_THREADED should specify -lc_r in Config.pm, not -lc
Product: Base System Reporter: patl <patl>
Component: miscAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.2-STABLE   
Hardware: Any   
OS: Any   

Description patl 2000-12-13 18:40:01 UTC
When the bundled version of perl is compiled and installed with
PERL_THREADED=yes, it improperly sets the libs variable in
/usr/libdata/perl/5.00503/[mach/]Config.pm to '-lm -lc -lcrypt'
instead of '-lm -lc_r -lcrypt'.  This causes programs linked
against libperl to also link both libc and libc_r; which (usually)
causes a BUSERR in exit().

Fix: 

Modify the bundled perl build to correct the value of libs in
Config.pm when PERL_THREADED is specified.
How-To-Repeat: Set PERL_THREADED=yes.
make world
reboot
build exim 2.0 with perl enabled.
ldd exim
You will see both libc and libc_r in the libraries list.
Comment 1 dd freebsd_committer freebsd_triage 2001-06-01 03:48:14 UTC
State Changed
From-To: open->closed

PERL_THREADED is no more.