From owner-freebsd-bugs Tue Nov 28 13:30: 9 2000 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 15F5E37B699 for ; Tue, 28 Nov 2000 13:30:02 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id eASLU2a07450; Tue, 28 Nov 2000 13:30:02 -0800 (PST) (envelope-from gnats) Received: from spock.org (cm-24-169-11-24.nycap.rr.com [24.169.11.24]) by hub.freebsd.org (Postfix) with ESMTP id 6736237B69C for ; Tue, 28 Nov 2000 13:28:48 -0800 (PST) Received: (from jon@localhost) by spock.org serial EF600Q3T-B7F; Tue, 28 Nov 2000 16:28:47 -0500 (EST) (envelope-from jon) Message-Id: <200011282128.eASLSlj91789@spock.org> Date: Tue, 28 Nov 2000 16:28:47 -0500 (EST) From: jon@freebsd.org Reply-To: jon@spock.org To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: misc/23162: threaded perl incorrectly suggests -lc when using embedded perl Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 23162 >Category: misc >Synopsis: threaded perl incorrectly suggests -lc when using embedded perl >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Nov 28 13:30:01 PST 2000 >Closed-Date: >Last-Modified: >Originator: Jonathan Chen >Release: -STABLE and -CURRENT >Organization: >Environment: >Description: When perl with thread support is enabled, using "perl -MExtUtils::Embed -e ldopts" outputs a suggestion for linker options with -lc as one of the libraries. This is incorrect. Linking stuff with both -pthreads and -lc results in the program segfaulting when dup2() (and I'm sure other functions as well) is invoked. >How-To-Repeat: make world with PERL_THREADED enabled, then make the news/inn port. innd when started will segfault while doing a dup2(). >Fix: remove the -lc from the libs= line in the files src/gnu/usr.bin/perl/libperl/config.SH-threads* Or, alternatively, change -lc to -lc_r (Also, note that the "Target system" comment is slightly out of date for many config files in that directory on both current and stable. Perhaps it'll be easy to just say FreeBSD?) >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message