On Saturday 17 May 2008 10:53:18 Jeroen Janssen wrote:
Kris Moore <kris <at> pcbsd.com> writes:
It seems something is wrong with your pthread library?
configure:12388: checking for dbus_connection_close in -ldbus-1 configure:12423: cc -o conftest -O2 -fno-strict-aliasing -pipe -I/usr/local/include -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/local/include/hal -I/usr/local/include/dbus-1.0 -I/usr/local/include/dbus-1.0/include -L/usr/local/lib conftest.c -ldbus-1 -L/usr/local/lib -lhal -ldbus-1 >&5 /usr/local/lib/libdbus-1.so: undefined reference to `pthread_equal' /usr/local/lib/libdbus-1.so: undefined reference to `pthread_cond_timedwait'
This patch to the port Makefile should fix it. The problem exists only on FreeBSD 6 because libs like libdbus-1 aren't linked to a pthread library and so when you link an executable with libdbus-1 some threading lib needs to be explicitly specified as well. Just to confirm this, can you post the output of "ldd /usr/local/lib/libdbus-1.so" on FreeBSD 6?
--- Makefile.orig 2008-05-17 15:33:49.000000000 +0200 +++ Makefile 2008-05-17 15:26:59.000000000 +0200 @@ -52,6 +52,7 @@ .if ${OSVERSION} < 700041 ${REINPLACE_CMD} 's/-lpthread/-lthr/g' ${WRKSRC}/configure .endif + ${REINPLACE_CMD} '/ac_hal_libs=/s/"$$/ -lthr"/' ${WRKSRC}/configure
pre-build: cd ${WRKSRC} && make depend