/bin/bash ../libtool --tag=CC --mode=link i686-gentoo-freebsd6.2-gcc -O2 -march=pentium4 -pipe -fomit-frame-pointer -rdynamic -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -Wdeclaration-after-statement -fno-common -o dbus-daemon-launch-helper activation-helper-bin.o config-loader-expat.o config-parser-common.o config-parser-trivial.o desktop-file.o utils.o activation-helper.o -lexpat ../dbus/libdbus-convenience.la i686-gentoo-freebsd6.2-gcc -O2 -march=pentium4 -pipe -fomit-frame-pointer -rdynamic -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -Wdeclaration-after-statement -fno-common -o dbus-daemon-launch-helper-test dbus_daemon_launch_helper_test-activation-helper-bin.o dbus_daemon_launch_helper_test-config-loader-expat.o dbus_daemon_launch_helper_test-config-parser-common.o dbus_daemon_launch_helper_test-config-parser-trivial.o dbus_daemon_launch_helper_test-desktop-file.o dbus_daemon_launch_helper_test-utils.o dbus_daemon_launch_helper_test-activation-helper.o /usr/lib/libexpat.so ../dbus/.libs/libdbus-convenience.a ../dbus/.libs/libdbus-convenience.a(dbus-sysdeps-i686-gentoo-freebsd6.2-gcc -O2 -march=pentium4 -pipe -fomit-frame-pointer -rdynamic -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -Wdeclaration-after-statement -fno-common -o dbus-daemon-launch-helper activation-helper-bin.o config-loader-expat.o config-parser-common.o config-parser-trivial.o desktop-file.o utils.o activation-helper.o /usr/lib/libexpat.so ../dbus/.libs/libdbus-convenience.a pthread.o): In function `_dbus_pthread_mutex_lock': dbus-sysdeps-pthread.c:(.text+0x99): undefined reference to `pthread_equal' ../dbus/.libs/libdbus-convenience.a(dbus-sysdeps-pthread.o): In function `_dbus_pthread_condvar_wait_timeout': dbus-sysdeps-pthread.c:(.text+0x24d): undefined reference to `pthread_cond_timedwait' collect2: ld returned 1 exit status ../dbus/.libs/libdbus-convenience.a(dbus-sysdepsgmake[2]: *** [dbus-daemon-launch-helper-test] Error 1 gmake[2]: *** Waiting for unfinished jobs.... -pthread.o): In function `_dbus_pthread_mutex_lock': dbus-sysdeps-pthread.c:(.text+0x99): undefined reference to `pthread_equal' ../dbus/.libs/libdbus-convenience.a(dbus-sysdeps-pthread.o): In function `_dbus_pthread_condvar_wait_timeout': dbus-sysdeps-pthread.c:(.text+0x24d): undefined reference to `pthread_cond_timedwait' collect2: ld returned 1 exit status gmake[2]: *** [dbus-daemon-launch-helper] Error 1 gmake[2]: Leaving directory `/var/tmp/portage/sys-apps/dbus-1.1.4/work/dbus-1.1.4/bus' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/var/tmp/portage/sys-apps/dbus-1.1.4/work/dbus-1.1.4' gmake: *** [all] Error 2 * * ERROR: sys-apps/dbus-1.1.4 failed. * Call stack: * ebuild.sh, line 46: Called src_compile * environment, line 2758: Called die * The specific snippet of code: * emake || diefunc "$FUNCNAME" "$LINENO" "$?" "make failed" * The die message: * make failed * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/sys-apps/dbus-1.1.4/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sys-apps/dbus-1.1.4/temp/environment'. * ------------------------------------------------------------------------------- My 'emerge --info' Portage 2.1.4 (default-bsd/fbsd/6.2/x86, gcc-4.1.2, freebsd-lib-6.2-r3, 6.2-RELEASE i386) ================================================================= System uname: 6.2-RELEASE i386 i386 Timestamp of tree: Wed, 23 Jan 2008 11:30:01 +0000 app-shells/bash: 3.2_p33 dev-java/java-config: 1.3.7, 2.1.3 dev-lang/python: 2.4.4, 2.5.1-r5 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 2.0.0_rc6-r1 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1 sys-devel/binutils: 2.17-r2 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.24 virtual/os-headers: 6.2-r3 ACCEPT_KEYWORDS="x86-fbsd ~x86-fbsd" CBUILD="i686-gentoo-freebsd6.2" CFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer" CHOST="i686-gentoo-freebsd6.2" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks metadata-transfer sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://mirror.ing.unibo.it/gentoo/" LINGUAS="it en" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac aalib acl acpi adns afs arts audiofile avahi bash-completion berkdb bidi bzip2 cairo cdb cddb cdparanoia cdr clamav cli cracklib crypt cscope cups curl dbus dga dri dts dvd dvdr dvdread encode exif expat fam fastcgi ffmpeg firefox flac fortran ftp gd gdbm gif glut gmp gnustep gnutls hal howl iconv imagemagick imap inifile java java5 javascript jbig jpeg jpeg2k kde ladspa lame lesstif libedit libnotify libsamplerate libwww mad maildir mbox mhash midi mime mmap mmx mng modplug mono motif mozilla mp3 mpeg mplayer msn musepack mysql mysqli ncurses nls nntp ogg opengl oss pam pcre pdf perl php png portaudio posix postgres ppds pulseaudio python qt3 qt4 quicktime readline recode reflection ruby samba sasl scanner sdl session sharedext sharedmem slang sndfile sockets spl sqlite sqlite3 sse sse2 ssl svg syslog szip tcpd threads tiff truetype unicode usb vcd vorbis win32codecs x86-fbsd xcomposite xine xml xorg xscreensaver xv zlib" ALSA_CARDS="intel_8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="FreeBSD" INPUT_DEVICES="mouse keyboard" KERNEL="FreeBSD" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it en" USERLAND="BSD" VIDEO_CARDS="nvidia nv vesa" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
I ran into this problem earlier today as well. I was able to compile a previous version by masking 1.1.4 echo ">=sys-apps/dbus-1.1.4" >> /etc/portage/package.mask this caused 1.0.2-r2 to be emerged. If you arae having trouble installing something that depends upon dbus (such as gnome), just mask 1.1.4 and it should be ok. dbus-1.1.4 ebuild still needs to be fixed. I will take a look at it again when i return to work in the morning.
Please fill a bug upstream, the core issue is that they consider pthreads in a way that is a bit too much restrictive. The could use the m4 macro used by, among others, pulseaudio.
Created attachment 145130 [details, diff] simplest way to fix Please check this patch, it should address the issue