From owner-freebsd-stable@FreeBSD.ORG Mon Jan 26 16:59:08 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 78E8410656D4 for ; Mon, 26 Jan 2009 16:59:08 +0000 (UTC) (envelope-from sorin.panca@psrk.com) Received: from mail1.psrk.com (64.147.114.45.static.nyinternet.net [64.147.114.45]) by mx1.freebsd.org (Postfix) with ESMTP id 2AFC88FC0A for ; Mon, 26 Jan 2009 16:59:07 +0000 (UTC) (envelope-from sorin.panca@psrk.com) Received: from [82.77.123.155] (port=45432) by mail1.psrk.com with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1LRUni-00089u-Rr for freebsd-stable@freebsd.org; Mon, 26 Jan 2009 11:59:07 -0500 Message-ID: <497DEBD2.9000800@psrk.com> Date: Mon, 26 Jan 2009 18:58:58 +0200 From: =?UTF-8?B?U29yaW4gUMOibmNh?= User-Agent: Thunderbird 2.0.0.19 (X11/20090106) MIME-Version: 1.0 To: freebsd-stable@freebsd.org References: <497B85DE.1040005@psrk.com> <497BA079.6060309@FreeBSD.org> <497C28A6.9040701@psrk.com> <497CAA5C.2050900@FreeBSD.org> <497D67B6.2090501@psrk.com> In-Reply-To: <497D67B6.2090501@psrk.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Antivirus-Scanner: Clean mail though you should still use an Antivirus Subject: Packages that depend on libpthread fail to compile on amd64 after freebsd-update upgrade from 6.x to 7.x - was: Installing packages using ports after freebsd-update doesn't work on amd64 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jan 2009 16:59:17 -0000 Sorin Panca wrote: > Doug Barton wrote: >> Sorin Panca wrote: >>> Prior to starting the upgrade I did a pkg_delete -a. I wanted a clean >>> system (just like a reinstallation). How do I ensure that all packages >>> were removed by pkg_delete -a ? >> Check /usr/local and make sure there is nothing there. In particular >> make sure that /usr/local/lib/compat/pkg does not exist. It sounds >> like this is already true, but also make sure that /var/db/pkg is >> empty as well. If none of that works then you've got a bigger problem. >> >> If you still can't install ruby and/or portupgrade, try installing a >> simple port just using 'make clean ; make install' in the port's >> directory. If that works, try a more complex port until something >> fails. If nothing fails installing manually it's a problem with >> portupgrade and/or ruby and you can send in a new bug report focusing >> on that. >> >> You might also consider using portmaster of course. :) >> >> >> hope this helps, >> >> Doug >> > > /usr/local/compat/pkg existed but I followed your advice and removed it. > /var/db/pkg was empty when I checked it. > I proceeded to trying to install /usr/ports/lang/ruby18 by make clean > and then make install clean. It failed with the same error as in my > previous attempts. > > However, some packages built correctly: shells/bash, lang/perl5.8, > sysutils/ezjail and www/apache. > > I really wanted to take portmaster into consideration (it's a better > alternative to portupgrade in my opinion also), but sysutils/puppet uses > portupgrade as its backend and I use puppet on my servers. So I'm stuck > with portupgrade. > > I also noticed when compiling other programs, that the line contains the > following arguments: -fPIC -DPIC, while compiling ruby18, it only > contains -fPIC. I added -DPIC to /etc/make.conf, so that the CFLAGS line > would look like: > CFLAGS?= -O2 -fPIC -DPIC -pipe > After that, the compiler output lines still look like: > cc -O2 -fno-strict-aliasing -pipe -fPIC -DRUBY_EXPORT -I. -I. -c > variable.c > and fails as in my previous attempts. > > Sorin. New data: All packages that depend on /usr/lib/libpthread.a fail to compile on FreeBSD-7.x-RELEASE after binary upgrading from FreeBSD-6.x-RELEASE The error is: /usr/bin/ld: /usr/lib/libpthread.a(thr_concurrency.o): relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC /usr/lib/libpthread.a: could not read symbols: Bad value Among those packages are: lang/ruby18, lang/python25, net/openldap24-client and devel/glib12 Sorin.