From owner-freebsd-python@FreeBSD.ORG Fri Feb 17 09:42:12 2012 Return-Path: Delivered-To: python@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A5C6F106566B for ; Fri, 17 Feb 2012 09:42:12 +0000 (UTC) (envelope-from johnny@interpro.com.hk) Received: from nt2000.interpro.com.hk (nt2000.interpro.com.hk [202.82.148.130]) by mx1.freebsd.org (Postfix) with ESMTP id 1D0A68FC0C for ; Fri, 17 Feb 2012 09:42:11 +0000 (UTC) Received: from mail.interpro.com.hk (unknown [10.1.170.47]) by mercury.interpro.com.hk (Postfix) with ESMTP id 443EE39932 for ; Fri, 17 Feb 2012 17:42:13 +0800 (HKT) Received: (qmail 13008 invoked by uid 89); 17 Feb 2012 09:42:09 -0000 Received: from 10.1.170.148 by mail1 (envelope-from , uid 89) with qmail-scanner-1.25 (clamdscan: 0.96.4/12283. Clear:RC:1(10.1.170.148):. Processed in 0.049343 secs); 17 Feb 2012 09:42:09 -0000 Received: from unknown (HELO ?10.1.170.148?) (johnny@interpro.com.hk@10.1.170.148) by mail1 with ESMTPA; 17 Feb 2012 09:42:09 -0000 Message-ID: <4F3E20F1.9050406@interpro.com.hk> Date: Fri, 17 Feb 2012 17:42:09 +0800 From: Johnny Sun User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: python@FreeBSD.org References: <4F3C7118.10601@interpro.com.hk> In-Reply-To: <4F3C7118.10601@interpro.com.hk> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: [SOLVED] Re: Ports-tree lang/python27 won't compile (After upgrade 8.2-RELEASE-i386->9.0-RELEASE-i386) X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Feb 2012 09:42:12 -0000 Hi, I got my answer from a FreeBSD forum. It seems that after upgrade, the symbolic link libpthread.so -> libthr.so is missing and Python27 make reference to libpthread.so. After adding back the missing link manually, it compiled okay. Best Regards, Johnny Sun Email: johnny@interpro.com.hk ------------------------------------------------------------------------ *From:* Johnny Sun *Date:* 2012-02-16 10:59 AM *Subject:* Ports-tree lang/python27 won't compile (After upgrade 8.2-RELEASE-i386->9.0-RELEASE-i386) > Hi, > > Ports-tree lang/python27 won't compile properly. Errors with > undefined reference to _sem_timedwait, etc. > > ========================================================= > cc -c -fno-strict-aliasing -O2 -pipe -fno-strict-aliasing -DNDEBUG > -O2 -pipe -fno-strict-aliasing -I. -IInclude -I./../Include -fPIC > -DPy_BUILD_CORE -o Modules/python.o ./../Modules/python.c > cc -pthread -Wl,--export-dynamic -o python Modules/python.o -L. > -lpython2.7 -lutil -lm > ./libpython2.7.so: undefined reference to `_sem_timedwait' > ./libpython2.7.so: undefined reference to `_sem_getvalue' > ./libpython2.7.so: undefined reference to `_sem_destroy' > ./libpython2.7.so: undefined reference to `_sem_wait' > ./libpython2.7.so: undefined reference to `_sem_init' > ./libpython2.7.so: undefined reference to `_sem_post' > ./libpython2.7.so: undefined reference to `_sem_trywait' > *** Error code 1 > > Stop in /usr/ports/lang/python27/work/Python-2.7.2/portbld.shared. > *** Error code 1 > > Stop in /usr/ports/lang/python27. > *** Error code 1 > > Stop in /usr/ports/lang/python27. > ========================================================= > > Used *portsnap* to update to latest ports-tree. make rmconfig & make > clean does not solve the problem. > > Compiled NOT okay > 9.0-RELEASE-i386 version (upgraded from 8.2 using freebsd-update), > using P3/P4 era celeron CPU > Fresh Install 8.2-i386 (without any ports), then immediately upgrade > to 9.0 using freebsd-update > > Compile Okay: > Fresh install 9.0-RELEASE-386 > 8.2->9.0-AMD64 > > Any idea? Thank you in advance. > > -- > Best Regards, > Johnny Sun > Email: johnny@interpro.com.hk