make[2]: Entering directory `/var/tmp/portage/bluez-utils-2.10-r1/work/bluez-utils-2.10/tools' gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -O2 -march=athlon-xp -fomit-frame-pointer -pipe -c `test -f 'hcitool.c' || echo './'`hcitool.c gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -O2 -march=athlon-xp -fomit-frame-pointer -pipe -c `test -f 'l2ping.c' || echo './'`l2ping.c gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -O2 -march=athlon-xp -fomit-frame-pointer -pipe -c `test -f 'sdptool.c' || echo './'`sdptool.c gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -O2 -march=athlon-xp -fomit-frame-pointer -pipe -c `test -f 'ciptool.c' || echo './'`ciptool.c gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -O2 -march=athlon-xp -fomit-frame-pointer -pipe -c `test -f 'ppporc.c' || echo './'`ppporc.c sdptool.c: In function `add_handsfree': sdptool.c:1130: error: `HANDSFREE_SVCLASS_ID' undeclared (first use in this function) sdptool.c:1130: error: (Each undeclared identifier is reported only once sdptool.c:1130: error: for each function it appears in.) sdptool.c:1136: error: `HANDSFREE_PROFILE_ID' undeclared (first use in this function) sdptool.c:1152: error: `SDP_SUPPORTED_FEATURES' undeclared (first use in this function) sdptool.c: In function `add_audio_source': sdptool.c:1583: error: `AUDIO_SOURCE_SVCLASS_ID' undeclared (first use in this function) sdptool.c:1587: error: `ADVANCED_AUDIO_PROFILE_ID' undeclared (first use in this function) sdptool.c:1598: error: `AVDTP_UUID' undeclared (first use in this function) sdptool.c: In function `add_audio_sink': sdptool.c:1642: error: `AUDIO_SINK_SVCLASS_ID' undeclared (first use in this function) sdptool.c:1646: error: `ADVANCED_AUDIO_PROFILE_ID' undeclared (first use in this function) sdptool.c:1657: error: `AVDTP_UUID' undeclared (first use in this function) sdptool.c: At top level: sdptool.c:1697: error: `HANDSFREE_SVCLASS_ID' undeclared here (not in a function) sdptool.c:1697: error: initializer element is not constant sdptool.c:1697: error: (near initialization for `service[7].class') sdptool.c:1697: error: initializer element is not constant sdptool.c:1697: error: (near initialization for `service[7]') sdptool.c:1699: error: initializer element is not constant sdptool.c:1699: error: (near initialization for `service[8]') sdptool.c:1700: error: initializer element is not constant sdptool.c:1700: error: (near initialization for `service[9]') sdptool.c:1702: error: initializer element is not constant sdptool.c:1702: error: (near initialization for `service[10]') sdptool.c:1703: error: initializer element is not constant sdptool.c:1703: error: (near initialization for `service[11]') sdptool.c:1704: error: initializer element is not constant sdptool.c:1704: error: (near initialization for `service[12]') sdptool.c:1706: error: `AUDIO_SOURCE_SVCLASS_ID' undeclared here (not in a function) sdptool.c:1706: error: initializer element is not constant sdptool.c:1706: error: (near initialization for `service[13].class') sdptool.c:1706: error: initializer element is not constant sdptool.c:1706: error: (near initialization for `service[13]') sdptool.c:1707: error: `AUDIO_SINK_SVCLASS_ID' undeclared here (not in a function) sdptool.c:1707: error: initializer element is not constant sdptool.c:1707: error: (near initialization for `service[14].class') sdptool.c:1707: error: initializer element is not constant sdptool.c:1707: error: (near initialization for `service[14]') sdptool.c:1709: error: initializer element is not constant sdptool.c:1709: error: (near initialization for `service[15]') make[2]: *** [sdptool.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory `/var/tmp/portage/bluez-utils-2.10-r1/work/bluez-utils-2.10/tools' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/bluez-utils-2.10-r1/work/bluez-utils-2.10' make: *** [all] Error 2 !!! ERROR: net-wireless/bluez-utils-2.10-r1 failed. !!! Function src_compile, Line 51, Exitcode 2 !!! (no error message) This happens on upgrading from ver. 2.10 But remergen ver. 2.10 fails with the same error. Any ideas ? Reproducible: Always Steps to Reproduce: 1. 2. 3. Portage 2.0.50-r11 (gcc34-x86-2004.2, gcc-3.4.2, glibc-2.3.4.20040808-r1, 2.6.8-gentoo-r7-rei4-gcc34) ================================================================= System uname: 2.6.8-gentoo-r7-rei4-gcc34 i686 AMD Athlon(TM) XP 2100+ Gentoo Base System version 1.4.16 ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache fixpackages prelink userpriv" GENTOO_MIRRORS="http://gentoo.inode.at/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage /usr/local/bmg-main" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dfx 3dnow 3dnowex X X509 aac acpi acpi4linux alsa amd apache2 apm arts artswrappersuid avi berkdb bitmap-fonts bluetooth bzlib cddb cdr cdrom chrootcodecs composite crypt cscope cups dga dio divx divx4linux dmx dri dv dvd dvdr dvdread encode exif faac faad fam fbcon ffmpeg flac foomaticdb ftp gd gif gimp gimpprint gnokii gphoto2 gpm graphviz gs gtk gtk2 hbci imap imlib imlib2 ipv6 irda irmc java jit jpeg jpeg2k kde libg++ libwww linguas_de lirc lm_sensors lufsusermount lzo lzw lzw-tiff mad maildir mcal mikmod mime mmx mmx2 mng monkey motif moznocompose moznoirc mozsvg mozxmlterm mp3 mpeg mpeg4 mplayer ncurses nls nntp no-old-linux nptl nvidia odbc oggvorbis ooo-kde openal opengl pam pcre pda pdf pdflib pear-db pic png ppds procmail python qt quicktime readline samba scanner sdl session skey slang slp smartcard smime spamassassin spell sse sse2 ssl svg svga tcltk tcpd tetex tga theora threads tiff transcode truetype usb userlocales v4l v4l2 vim-with-x wmf x86 xine xinerama xml xml2 xmms xosd xpm xprint xv xvid xvmc yv12 zlib"
Check if you have /usr/include/bluetooth/sdp.h file. If not, reinstall bluez-libs.
Ok im sorry, this was because i merged net-wireless/bluez-sdp wich overides sdp.h with an older version. you may close this bug.
Closing,