From nobody@FreeBSD.org  Wed Dec 13 10:31:42 2000
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 28A3337B400
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 13 Dec 2000 10:31:37 -0800 (PST)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.1/8.11.1) id eBDIVbP01896;
	Wed, 13 Dec 2000 10:31:37 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200012131831.eBDIVbP01896@freefall.freebsd.org>
Date: Wed, 13 Dec 2000 10:31:37 -0800 (PST)
From: patl@phoenix.volant.org
Sender: nobody@FreeBSD.org
To: freebsd-gnats-submit@FreeBSD.org
Subject: PERL_THREADED should specify -lc_r in Config.pm, not -lc
X-Send-Pr-Version: www-1.0

>Number:         23531
>Category:       misc
>Synopsis:       PERL_THREADED should specify -lc_r in Config.pm, not -lc
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 13 10:40:01 PST 2000
>Closed-Date:    Thu May 31 19:48:14 PDT 2001
>Last-Modified:  Thu May 31 19:48:27 PDT 2001
>Originator:     PM Lashley
>Release:        4.2-STABLE
>Organization:
>Environment:
>Description:
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().

>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.
>Fix:
Modify the bundled perl build to correct the value of libs in
Config.pm when PERL_THREADED is specified.

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: dd 
State-Changed-When: Thu May 31 19:48:14 PDT 2001 
State-Changed-Why:  
PERL_THREADED is no more. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=23531 
>Unformatted:
