hal wants to be built after a revdep-rebuild. here is the stacktrace: i686-pc-linux-gnu-gcc -march=athlon-mp -O2 -pipe -Wall -Wchar-subscripts -Wmissing-declaratio ns -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -o .libs/lshal lshal.o /usr/ lib/libdbus-glib-1.so -lnsl /usr/lib/libgobject-2.0.so /usr/lib/libglib-2.0.so -lrt ../libhal /.libs/libhal.so /usr/lib/libdbus-1.so lshal.o: In function `main': lshal.c:(.text+0xb93): undefined reference to `dbus_connection_disconnect' collect2: ld returned 1 exit status make[3]: *** [lshal] Error 1 make[3]: *** Waiting for unfinished jobs.... i686-pc-linux-gnu-gcc -march=athlon-mp -O2 -pipe -Wall -Wchar-subscripts -Wmissing-declarations -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -o .libs/hal-get-property hal_get_property.o ../libhal/.libs/libhal.so /usr/lib/libdbus-1.so creating hal-get-property i686-pc-linux-gnu-gcc -march=athlon-mp -O2 -pipe -Wall -Wchar-subscripts -Wmissing-declarations -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -o .libs/hal-find-by-capability hal_find_by_capability.o ../libhal/.libs/libhal.so /usr/lib/libdbus-1.so creating hal-find-by-capability make[3]: Leaving directory `/var/tmp/portage/sys-apps/hal-0.5.7-r3/work/hal-0.5.7/tools' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/sys-apps/hal-0.5.7-r3/work/hal-0.5.7/tools' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/sys-apps/hal-0.5.7-r3/work/hal-0.5.7' make: *** [all] Error 2 !!! ERROR: sys-apps/hal-0.5.7-r3 failed. Call stack: ebuild.sh, line 1569: Called dyn_compile ebuild.sh, line 938: Called src_compile hal-0.5.7-r3.ebuild, line 140: Called die !!! make failed !!! If you need support, post the topmost build error, and the call stack if relevant. [root@gui - 20:40:58 - ~] # emerge --info Portage 2.1.2_rc2-r5 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r4, 2.6.18-gentoo-r2 i686) ================================================================= System uname: 2.6.18-gentoo-r2 i686 AMD Athlon(TM) MP 2400+ Gentoo Base System version 1.12.6 Last Sync: Fri, 08 Dec 2006 06:00:01 +0000 dev-java/java-config: 1.3.7, 2.0.30 dev-lang/python: 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.60 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.13-r4 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=athlon-mp -O2 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo" CXXFLAGS="-march=athlon-mp -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="fr_FR.UTF-8" LC_ALL="C" LINGUAS="fr" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/layman/xeffects /usr/local/layman/pok3d /usr/local/layman/musicbrainz /usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow 3dnowex 3dnowext X a52 aac acpi alsa apm arts artswrappersuid asf avi bash-completion berkdb bigger-fonts bindist bitmap-fonts bonobo bootsplash browserplugin bzip2 cairo calendar cdparanoia cdr chroot cli cracklib crypt cups curl dbus dga directfb divx4linux dlloader dri dv dvb dvd dvdr dvdread elibc_glibc encode esd evo exif fam fbcon ffmpeg flac foomaticdb fortran gdbm ggi gif glitz glut gnome gphoto2 gpm gstreamer gtk gtk2 hal iconv imap imlib input_devices_evdev input_devices_keyboard input_devices_mouse isdnlog jack java jbig jikes jpeg jpeg2k kde kdeenablefinal kdexdeltas kernel_linux kipi lcms libcaca libg++ linguas_fr lm_sensors logitech-mouse mad mmx mmxext mng mono motif mp3 mpeg nas ncurses nls nptl nptlonly nvidia ogg oggvorbis opengl oss pam pcre pdf perl png ppds pppd python qt qt3 qt4 quicktime readline real reflection ruby samba sdl session slp sndfile spell spl sqlite sqlite3 sse ssl svg svga tcltk tcpd theora tiff truetype truetype-fonts type1-fonts udev unicode usb userland_GNU video_cards_nv video_cards_nvidia vorbis win32codecs wmf x86 xml2 xorg xosd xv xvid yaz zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Well.. You can resolv this bug simply launch "emerge hal" then waiting for "Source unpacked" then hit ctrl-z. Now you must go in temporary dir, usually /var/tmp/portage/hal-0.5.7-r3/work/tools end edit lshal.c and hal-device.c. Search for dbus_connection_disconnect and replace it with dbus_connection_close. Now hal will compile nicely... (of course you have to start the paused job (emerge hal), usually with fg 1).
indeed it works maybe a patch is needed...
No. You're mixing ~arch dbus with arch hal. You should not mix and match without expecting some issues to crop up. ~arch hal has the situation already addressed, long long long long long ago.
*** Bug 158349 has been marked as a duplicate of this bug. ***