Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Dec 2000 10:31:37 -0800 (PST)
From:      patl@phoenix.volant.org
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/23531: PERL_THREADED should specify -lc_r in Config.pm, not -lc
Message-ID:  <200012131831.eBDIVbP01896@freefall.freebsd.org>
Resent-Message-ID: <200012131840.eBDIe2i02919@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 13 10:40:01 PST 2000
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200012131831.eBDIVbP01896>