From owner-freebsd-current@FreeBSD.ORG Sat Feb 7 16:07:54 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8711616A4CE for ; Sat, 7 Feb 2004 16:07:54 -0800 (PST) Received: from Stalker.alfacom.net (stalker.alfacom.net [193.108.124.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 68E7C43D1D for ; Sat, 7 Feb 2004 16:07:53 -0800 (PST) (envelope-from vkushnir@Alfacom.net) Received: from kushnir1.kiev.ua (124-242.dialup.Alfacom.net [193.108.124.242]) by Stalker.alfacom.net (8.12.10/8.12.10) with ESMTP id i1807h9Y006865 for ; Sun, 8 Feb 2004 02:07:45 +0200 (EET) Received: from kushnir1.kiev.ua (kushnir1.kiev.ua [10.0.0.1]) by kushnir1.kiev.ua (8.12.10/8.12.10) with ESMTP id i1807gtA010570 for ; Sun, 8 Feb 2004 02:07:42 +0200 (EET) (envelope-from vkushnir@Alfacom.net) From: Vladimir Kushnir Organization: BITP To: freebsd-current@freebsd.org Date: Sun, 8 Feb 2004 02:07:41 +0200 User-Agent: KMail/1.6.50 References: <1075880955.76993.54.camel@shumai.marcuscom.com> In-Reply-To: <1075880955.76993.54.camel@shumai.marcuscom.com> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="koi8-u" Content-Transfer-Encoding: 7bit Message-Id: <200402080207.42059.vkushnir@Alfacom.net> Subject: Re: HEADS UP: MAJOR changes to the ports system X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Feb 2004 00:07:54 -0000 Sorry I know I should have written PR but I'm not sure about correct fix. So here it goes. After this changes lang/perl5.8 is still linked to libc_r when compiled with WITH_THREADS=yes. It's hardcoded in perl-5.8.2/hints/freebsd.sh Easily fixed with this patch: *** hints/freebsd.sh.orig Sun Feb 8 02:00:51 2004 --- hints/freebsd.sh Sun Feb 8 02:03:20 2004 *************** *** 186,192 **** cat > UU/usethreads.cbu <<'EOCBU' case "$usethreads" in $define|true|[yY]*) ! lc_r=`/sbin/ldconfig -r|grep ':-lc_r'|awk '{print $NF}'|sed -n '$p'` case "$osvers" in 0*|1*|2.0*|2.1*) cat <&4 I did not know that FreeBSD $osvers supports POSIX threads. --- 186,192 ---- cat > UU/usethreads.cbu <<'EOCBU' case "$usethreads" in $define|true|[yY]*) ! lc_r=`/sbin/ldconfig -r|grep ':-lpthread'|awk '{print $NF}'|sed -n '$p'` case "$osvers" in 0*|1*|2.0*|2.1*) cat <&4 I did not know that FreeBSD $osvers supports POSIX threads. *************** *** 244,250 **** esac ! set `echo X "$libswanted "| sed -e 's/ c / c_r /'` shift libswanted="$*" # Configure will probably pick the wrong libc to use for nm scan. --- 244,250 ---- esac ! set `echo X "$libswanted "| sed -e 's/ c / pthread c /'` shift libswanted="$*" # Configure will probably pick the wrong libc to use for nm scan. But i) It requires post-changes FreeBSD; and ii) This way libperl.so and the progs are linked with "-lpthread -lc" Is this correct? On Wednesday 04 February 2004 09:49, Joe Marcus Clarke wrote: > Sorry for the wide distribution, but it is critical that -CURRENT users > hear this. Two _MAJOR_ changes just went in to the ports tree that are > bound to cause some pain to -CURRENT users. > > The first is the change in default threading libraries. The ports > system now uses -lpthread when linking ports instead of -lc_r. Binaries > that wind up with both libc_r and libpthread in them will cause > problems. In that case, it is imperative that you report this to the > port's maintainer ASAP. You can use pkg_info -W /path/to/binary to > determine which port installed it. > > Second, Perl 5.8.2 is now the default version of Perl in -CURRENT since > the 5.2 split. This replaces Perl 5.6.1 as the default. Note: Perl > 5.00503 is still the default version of Perl in the 4.X base OS. > > If you experience problems with any of these changes (or with the other > recent changes listed in /usr/ports/CHANGES), please report them on the > ports@ list and to the appropriate maintainers as soon as possible. > Thanks. > > Joe Regards, Vladimir