Date: Tue, 28 Nov 2000 16:28:47 -0500 (EST) From: jon@freebsd.org To: FreeBSD-gnats-submit@freebsd.org Subject: misc/23162: threaded perl incorrectly suggests -lc when using embedded perl Message-ID: <200011282128.eASLSlj91789@spock.org>
next in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200011282128.eASLSlj91789>