Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 389221 - kde-base/phonon-kde-4.6.5 build fails: 'CA_PROP_CANBERRA_FORCE_CHANNEL ' was not declared in this scope
Summary: kde-base/phonon-kde-4.6.5 build fails: 'CA_PROP_CANBERRA_FORCE_CHANNEL ' was ...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-01 18:24 UTC by erik falor
Modified: 2011-12-14 17:08 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
output of emerge --info (emerge.info,5.97 KB, text/plain)
2011-11-01 18:24 UTC, erik falor
Details
ebuild environment file (environment,174.72 KB, text/plain)
2011-11-01 18:25 UTC, erik falor
Details
complete build log (kde-basephonon-kde-4.6.520111101-180356.log,18.48 KB, text/plain)
2011-11-01 18:26 UTC, erik falor
Details

Note You need to log in before you can comment on or make changes to this bug.
Description erik falor 2011-11-01 18:24:53 UTC
Created attachment 291467 [details]
output of emerge --info

/usr/include/canberra.h, on line 491 has #define CA_PROP_CANBERRA_FORCE_CHANNEL, but while building phonon-kde the compiler doesn't recognize it and treats the symbol as an undeclared variable name.

This is the relevant output from cmake:

Building CXX object phonon/kcm/CMakeFiles/kcm_phonon.dir/testspeakerwidget.o
/var/tmp/portage/kde-base/phonon-kde-4.6.5/work/phonon-kde-4.6.5/phonon/kcm/testspeakerwidget.cpp: In member function 'void TestSpeakerWidget::
clicked()':
/var/tmp/portage/kde-base/phonon-kde-4.6.5/work/phonon-kde-4.6.5/phonon/kcm/testspeakerwidget.cpp:47:32: error: 'CA_PROP_CANBERRA_FORCE_CHANNEL
' was not declared in this scope

FWIW, I was able to successfully install phonon-kde-4.6.5 by manually replacing 'CA_PROP_CANBERRA_FORCE_CHANNEL' with its textual expansion in testspaekerwidget.cpp.
Comment 1 erik falor 2011-11-01 18:25:50 UTC
Created attachment 291469 [details]
ebuild environment file
Comment 2 erik falor 2011-11-01 18:26:08 UTC
Created attachment 291471 [details]
complete build log
Comment 3 erik falor 2011-11-01 18:27:34 UTC
Portage 2.1.10.11 (default/linux/amd64/10.0/desktop, gcc-4.5.3, glibc-2.12.2-r0, 2.6.36-gentoo-r5 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.36-gentoo-r5-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_4200+-with-gentoo-2.0.3
Timestamp of tree: Tue, 01 Nov 2011 10:45:02 +0000
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.4.6, 2.5.4-r4, 2.6.5-r3, 2.7.2-r3, 3.1.2-r4
dev-util/cmake:           2.8.4-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.4
sys-devel/autoconf:       2.13::<unknown repository>, 2.68
sys-devel/automake:       1.4_p6::<unknown repository>, 1.5::<unknown repository>, 1.6.3::<unknown repository>, 1.7.9-r1::<unknown repository>, 1.8.5-r3::<unknown repository>, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            3.4.6-r2::<unknown repository>, 4.1.2, 4.3.4, 4.4.5, 4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.12.2
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* AdobeFlash-10.1"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=k8 "
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=k8 "
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=y"
FEATURES="assume-digests binpkg-logs ccache distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv"
FFLAGS=""
GENTOO_MIRRORS="ftp://mirror.datapipe.net/gentoo ftp://gentoo.mirrors.pair.com/ "
LDFLAGS="-Wl,--as-needed"
LINGUAS="en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac acpi alsa amd64 apache2 arts audiofile auto-hinter avahi berkdb bluetooth branding bzip2 cairo cdda cdparanoia cdr chicken cleartype cli consolekit cracklib crypt css cups curl curlwrappers cxx dbus dedicated dri dts dvd dvdr encode exif expat fam ffmpeg fftw firefox flac fortran ftp gd gdbm gdu geoip gif glitz glut gmp gnuplot gphoto2 gpm graphviz gstreamer gtk hddtemp iconv ieee1394 imagemagick ipod ipv6 jabber java java6 joystick jpeg jpeg2k kde kerberos lame latex lcms libedit libnotify libwww lm_sensors logrotate lzo mad mhash mime mjpeg mmap mmx mng modules moonlight mp3 mp4 mpeg mplayer mudflap multilib musicbrainz ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pango pcre pdf perl plotutils png policykit posix ppds pppd profile pulseaudio python qt3support qt4 quicktime rdesktop readline rss ruby samba sdl semantic-desktop session sndfile sockets sox spell sqlite3 sse sse2 ssl startup-notification subversion svg symlink sysfs syslog szip taglib tcl tcpd tetex threads tiff timidity tk truetype udev unicode usb vcd verbose videos vim-syntax vnc vorbis x264 xcb xcomposite xine xinerama xinetd xml xorg xpm xscreensaver xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="cgid" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="adc65 agfa_cl20 canon casio_qv clicksmart310 digigr8 digita dimagev dimera3500 directory enigma13 fuji gsmart300 hp215 iclick jamcam jd11 kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200 konica konica_qm150 largan lg_gsm mars mustek panasonic_coolshot panasonic_dc1000 panasonic_dc1580 panasonic_l859 pccam300 pccam600 polaroid_pdc320 polaroid_pdc640 polaroid_pdc700 ptp2 ricoh ricoh_g3 samsung sierra sipix_blink sipix_blink2 sipix_web2 smal sonix sony_dscf1 sony_dscf55 soundvision spca50x sq905 stv0674 stv0680 sx330z template toshiba_pdrm11" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev nv vesa virtualbox vmware" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

kde-base/phonon-kde-4.6.5 was built with the following:
USE="alsa (multilib) pulseaudio xine (-aqua) -debug (-kdeenablefinal)"
Comment 4 Andreas K. Hüttel archtester gentoo-dev 2011-11-20 17:14:05 UTC
Please try if it works when you disable ccache.
Comment 5 erik falor 2011-11-21 23:11:00 UTC
Unfortunately, removing ccache from FEATURES did not make the problem go away.

Updated emerge --info:
Portage 2.1.10.11 (default/linux/amd64/10.0/desktop, gcc-4.5.3, glibc-2.12.2-r0, 3.0.6-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.0.6-gentoo-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_4200+-with-gentoo-2.0.3
Timestamp of tree: Mon, 21 Nov 2011 17:15:01 +0000
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.4.6, 2.5.4-r4, 2.6.5-r3, 2.7.2-r3, 3.1.4-r3
dev-util/cmake:           2.8.4-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.4
sys-devel/autoconf:       2.13::<unknown repository>, 2.68
sys-devel/automake:       1.4_p6::<unknown repository>, 1.5::<unknown repository>, 1.6.3::<unknown repository>, 1.7.9-r1::<unknown repository>, 1.8.5-r3::<unknown repository>, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            3.4.6-r2::<unknown repository>, 4.1.2, 4.3.4, 4.4.5, 4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.12.2
Repositories: gentoo fadein_testing
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* AdobeFlash-10.1"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=k8 "
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=k8 "
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=y"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv"
FFLAGS=""
GENTOO_MIRRORS="ftp://mirror.datapipe.net/gentoo ftp://gentoo.mirrors.pair.com/ "
LANG="en_US.UTF-8"
LDFLAGS="-Wl,--as-needed"
LINGUAS="en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac acpi alsa amd64 apache2 arts audiofile auto-hinter avahi berkdb bluetooth branding bzip2 cairo cdda cdparanoia cdr chicken cleartype cli consolekit cracklib crypt css cups curl curlwrappers cxx dbus dedicated dri dts dvd dvdr encode exif expat fam ffmpeg fftw firefox flac fortran ftp gd gdbm gdu geoip gif glitz glut gmp gnuplot gphoto2 gpm graphviz gstreamer gtk hddtemp iconv ieee1394 imagemagick ipod ipv6 jabber java java6 joystick jpeg jpeg2k kde kerberos lame latex lcms libedit libnotify libwww lm_sensors logrotate lzo mad mhash mime mjpeg mmap mmx mng modules moonlight mp3 mp4 mpeg mplayer mudflap multilib musicbrainz ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pango pcre pdf perl plotutils png policykit posix ppds pppd profile pulseaudio python qt3support qt4 quicktime rdesktop readline rss ruby samba sdl semantic-desktop session sndfile sockets sox spell sqlite3 sse sse2 ssl startup-notification subversion svg symlink sysfs syslog szip taglib tcl tcpd tetex threads tiff timidity tk truetype udev unicode usb vcd verbose videos vim-syntax vnc vorbis x264 xcb xcomposite xine xinerama xinetd xml xorg xpm xscreensaver xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="cgid" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="adc65 agfa_cl20 canon casio_qv clicksmart310 digigr8 digita dimagev dimera3500 directory enigma13 fuji gsmart300 hp215 iclick jamcam jd11 kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200 konica konica_qm150 largan lg_gsm mars mustek panasonic_coolshot panasonic_dc1000 panasonic_dc1580 panasonic_l859 pccam300 pccam600 polaroid_pdc320 polaroid_pdc640 polaroid_pdc700 ptp2 ricoh ricoh_g3 samsung sierra sipix_blink sipix_blink2 sipix_web2 smal sonix sony_dscf1 sony_dscf55 soundvision spca50x sq905 stv0674 stv0680 sx330z template toshiba_pdrm11" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev nv vesa virtualbox vmware" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

kde-base/phonon-kde-4.6.5 was built with the following:
USE="alsa (multilib) pulseaudio xine (-aqua) -debug (-kdeenablefinal)"
Comment 6 Johannes Huber (RETIRED) gentoo-dev 2011-12-09 10:16:11 UTC
KDE SC 4.7.3 is stable now. Problem gone?
Comment 7 erik falor 2011-12-13 17:23:39 UTC
Unfortunately, the upgrade to KDE SC 4.7.3 did not alleviate this problem.  I'm not actually convinced that this is a problem with kde-phonon per se, as other #defines from /usr/include/canberra.h are used in the very same file.

I'm not one to blame the compiler, but I must wonder at it.  I'll continue to poke around with it to see what I can figure out why this #define isn't visible.
Comment 8 Johannes Huber (RETIRED) gentoo-dev 2011-12-13 18:08:03 UTC
Output of gcc --version please.
Comment 9 erik falor 2011-12-14 16:00:28 UTC
% gcc --version
gcc (Gentoo 4.5.3-r1 p1.0, pie-0.4.5) 4.5.3
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Comment 10 Johannes Huber (RETIRED) gentoo-dev 2011-12-14 16:24:09 UTC
Comment on attachment 291467 [details]
output of emerge --info

And why you have all those different versions on your system (for example python, automake, gcc)? You should start to clean up your system. In my opinion you have messed up your system a little bit.

Perhaps you missed some bits while a gcc upgrade, see this guide:
http://www.gentoo.org/doc/en/gcc-upgrading.xml

And also have a look  at "emerge -av --depclean".
Comment 11 erik falor 2011-12-14 17:08:22 UTC
Nevermind and sorry for the noise.

It turns out that I had manually installed libcanberra-0.11 into /usr/local in
2009.  phonon-kde was simply trying to use a #define that didn't exist back
then.

Thanks to both Andreas and Johannes for your assistance.