Date: Fri, 17 Feb 2012 17:42:09 +0800 From: Johnny Sun <johnny@interpro.com.hk> To: python@FreeBSD.org Subject: [SOLVED] Re: Ports-tree lang/python27 won't compile (After upgrade 8.2-RELEASE-i386->9.0-RELEASE-i386) Message-ID: <4F3E20F1.9050406@interpro.com.hk> In-Reply-To: <4F3C7118.10601@interpro.com.hk> References: <4F3C7118.10601@interpro.com.hk>
index | next in thread | previous in thread | raw e-mail
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 <johnny@interpro.com.hk> *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.hkhelp
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4F3E20F1.9050406>
