From owner-freebsd-ports@FreeBSD.ORG Sun Feb 8 16:26:27 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AE58D16A4CE for ; Sun, 8 Feb 2004 16:26:27 -0800 (PST) Received: from Stalker.alfacom.net (stalker.alfacom.net [193.108.124.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0397B43D31 for ; Sun, 8 Feb 2004 16:26:07 -0800 (PST) (envelope-from vkushnir@Alfacom.net) Received: from kushnir1.kiev.ua (124-160.dialup.Alfacom.net [193.108.124.160]) by Stalker.alfacom.net (8.12.10/8.12.10) with ESMTP id i190PQ9Y001185 for ; Mon, 9 Feb 2004 02:25:27 +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 i190POtB093587 for ; Mon, 9 Feb 2004 02:25:24 +0200 (EET) (envelope-from vkushnir@Alfacom.net) Date: Mon, 9 Feb 2004 02:25:24 +0200 (EET) From: Vladimir Kushnir X-X-Sender: vkushnir@kushnir1.kiev.ua To: ports@freebsd.org Message-ID: <20040209004203.S90759@kushnir1.kiev.ua> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: HEADS UP: MAJOR changes to the ports system X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Feb 2004 00:26:27 -0000 Sorry I know I should have written PR but I'm not sure about correct fix. So here it goes. After these 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 very recent -CURRENT (I just don't khow how to distinguish in an elegant way in shell script); and ii) This way libperl.so and the progs are linked with "-lpthread -lc" (in this order). 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