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: joh...@interpro.com.hk ------------------------------------------------------------------------ *From:* Johnny Sun <joh...@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: joh...@interpro.com.hk _______________________________________________ freebsd-python@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-python To unsubscribe, send any mail to "freebsd-python-unsubscr...@freebsd.org"