When compiling kdemultimedia with the USE="xine" flag, there an error occurs which stops the emerge: /bin/sh ../libtool --silent --tag=CXX --mode=compile i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/kde/3.5/include/arts -I/usr/kde/3.5/include -I/usr/qt/3/include -I. -DQT_THREAD_SUPPORT -D_REENTRANT -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -O2 -march=prescott -pipe -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -c -o xinePlayObject_impl.lo xinePlayObject_impl.cpp In file included from /usr/include/xine/video_out.h:50, from /usr/include/xine/metronom.h:53, from /usr/include/xine/audio_out.h:34, from audio_fifo_out.c:22: /usr/include/xine/buffer.h:679: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_x_is_fourcc' audio_fifo_out.c: In function 'ao_fifo_get_gap_tolerance': audio_fifo_out.c:103: warning: unused parameter 'this_gen' audio_fifo_out.c: In function 'ao_fifo_get_property': audio_fifo_out.c:245: warning: unused parameter 'this_gen' audio_fifo_out.c:245: warning: unused parameter 'property' audio_fifo_out.c: In function 'ao_fifo_set_property': audio_fifo_out.c:250: warning: unused parameter 'this_gen' audio_fifo_out.c:250: warning: unused parameter 'property' make[3]: *** [audio_fifo_out.lo] Błąd 1 make[3]: *** Oczekiwanie na niezakończone zadania.... xinePlayObject_impl.cpp: In member function 'void xinePlayObject_impl::eventLoop()': xinePlayObject_impl.cpp:701: warning: 'xine_gui_send_vo_data' is deprecated (declared at /usr/include/xine.h:1124) xinePlayObject_impl.cpp:703: warning: 'xine_gui_send_vo_data' is deprecated (declared at /usr/include/xine.h:1124) xinePlayObject_impl.cpp:717: warning: 'xine_gui_send_vo_data' is deprecated (declared at /usr/include/xine.h:1124) xinePlayObject_impl.cpp:719: warning: 'xine_gui_send_vo_data' is deprecated (declared at /usr/include/xine.h:1124) xinePlayObject_impl.cpp: In member function 'virtual void xineVideoPlayObject_impl::x11WindowId(long int)': xinePlayObject_impl.cpp:751: warning: 'xine_gui_send_vo_data' is deprecated (declared at /usr/include/xine.h:1124) xinePlayObject_impl.cpp:753: warning: 'xine_gui_send_vo_data' is deprecated (declared at /usr/include/xine.h:1124) make[3]: Opuszczenie katalogu `/var/tmp/portage/kde-base/kdemultimedia-3.5.9/work/kdemultimedia-3.5.9/xine_artsplugin' make[2]: *** [all-recursive] Błąd 1 make[2]: Opuszczenie katalogu `/var/tmp/portage/kde-base/kdemultimedia-3.5.9/work/kdemultimedia-3.5.9/xine_artsplugin' make[1]: *** [all-recursive] Błąd 1 make[1]: Opuszczenie katalogu `/var/tmp/portage/kde-base/kdemultimedia-3.5.9/work/kdemultimedia-3.5.9' make: *** [all] Błąd 2 * * ERROR: kde-base/kdemultimedia-3.5.9 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 4072: Called kde_src_compile * environment, line 2879: Called kde_src_compile 'src_compile' * environment, line 2999: Called kde_src_compile 'src_compile' 'all' 'myconf' * environment, line 2995: Called die * The specific snippet of code: * emake || die "died running emake, $FUNCNAME:make" * The die message: * died running emake, kde_src_compile:make * * 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/kde-base/kdemultimedia-3.5.9/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/kde-base/kdemultimedia-3.5.9/temp/environment'. * I've chcecked this file /usr/include/xine/buffer.h and found out the keyword 'inline' is not recognizable by the '-ansi' option of gcc. I propose to either remove -ansi from gcc options in case to compile this or remove the 'inline' keyword from the xine header file. I did the last thing and I've successfully compiled kdemultimedia. Reproducible: Always Steps to Reproduce: USE="xine" emerge -1 =kde-base/kdemultimedia-3.5.9 Actual Results: compile error Expected Results: successful compilation Portage 2.1.4.4 (default/linux/x86/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.26-gentoo i686) ================================================================= System uname: 2.6.26-gentoo i686 Intel(R) Core(TM)2 Duo CPU T7500 @ 2.20GHz Timestamp of tree: Sat, 16 Aug 2008 11:15:01 +0000 app-shells/bash: 3.2_p33 dev-java/java-config: 1.3.7, 2.1.6 dev-lang/python: 2.5.2-r6 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r2 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=prescott -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/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-O2 -march=prescott -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://ftp.vectranet.pl/gentoo/ ftp://ftp.vectranet.pl/gentoo/ http://gentoo.prz.rzeszow.pl http://gentoo.zie.pg.gda.pl http://gentoo.po.opole.pl ftp://gentoo.po.opole.pl ftp://mirror.icis.pcz.pl/gentoo/ http://gentoo.mirror.pw.edu.pl/ " LANG="pl_PL.UTF-8" LC_ALL="pl_PL.UTF-8" LDFLAGS="-Wl,-O1" LINGUAS="pl" MAKEOPTS="-j3" 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" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X aac acl acpi alsa apm arts berkdb bzip2 cdr cli cracklib crypt doc dri dvd dvdr dvdread encode ffmpeg firefox fortran gdbm gif gpm gstreamer hal iconv isdnlog java java6 jpeg kde kdeenablefinal latex lm_sensors midi mp3 mudflap ncurses nls nptl nptlonly opengl openmp pam pcre pdf perl pmu png posix pppd python qt3 qt4 readline reflection session slang spl sse sse2 ssl sysfs tcpd threads truetype unicode wifi win32codecs x86 xine xorg xulrunner zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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="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="glibc" INPUT_DEVICES="keyboard mouse evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pl" USERLAND="GNU" VIDEO_CARDS="nvidia" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Sorry, the error appeared when I used USE="gstreamer" flag, "xine" flag had been enabled before.
I also have this problem when compiling kde-base/phonon-xine-4.1.0: In file included from /usr/include/xine/input_plugin.h:35, from /usr/include/xine/xine_internal.h:55, from /var/tmp/paludis/kde-base-phonon-xine-4.1.0/work/phonon-xine-4.1.0/phonon/xine/net_buf_ctrl.c:37: /usr/include/xine/buffer.h:679: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_x_is_fourcc' /var/tmp/paludis/kde-base-phonon-xine-4.1.0/work/phonon-xine-4.1.0/phonon/xine/net_buf_ctrl.c: In function 'nbc_init': /var/tmp/paludis/kde-base-phonon-xine-4.1.0/work/phonon-xine-4.1.0/phonon/xine/net_buf_ctrl.c:550: warning: 'xine_xmalloc' is deprecated (declared at /usr/include/xine/xineutils.h:624) make[2]: *** [phonon/xine/CMakeFiles/phonon_xine.dir/net_buf_ctrl.o] Error 1
It should probably stop using -ansi as there are other occurences of the inline keyword in xine headers. If you want to preserve strict ansi compatibility for xine headers, please send a patch upstream -> http://bugs.xine-project.org/
*** Bug 235114 has been marked as a duplicate of this bug. ***
This bug has been reported upstream - https://bugs.kde.org/show_bug.cgi?id=169365 Sput has worked on a workaround that was commited to kdesvn-portage and applied by keytoaster on the kde overlay.
-std=iso9899:1990 also poses a problem and needed to be removed.
As pointed out in https://bugs.kde.org/show_bug.cgi?id=169365#c3 this is a xine header bug. KDE maintainer suggests we apply the following patch that has been commited to the mercurial source of xine: --- a/src/xine-engine/buffer.h Mon Aug 18 18:27:55 2008 +0100 +++ b/src/xine-engine/buffer.h Tue Aug 19 00:26:52 2008 +0200 @@ -676,7 +676,7 @@ void _x_bmiheader_le2me( xine_bmiheader /* convert xine_waveformatex struct from little endian */ void _x_waveformatex_le2me( xine_waveformatex *wavex ) XINE_PROTECTED; -static inline _x_is_fourcc(void *ptr, void *tag) { +static __inline int _x_is_fourcc(void *ptr, void *tag) { return memcmp(ptr, tag, 4) == 0; }
(In reply to comment #3) > It should probably stop using -ansi as there are other occurences of the inline > keyword in xine headers. If you want to preserve strict ansi compatibility for > xine headers, please send a patch upstream -> http://bugs.xine-project.org/ > Exactly. There are another occurrences of 'inline' in xine headers: $ cat /usr/include/xine/*.h | grep "\ inline\ " static inline _x_is_fourcc(void *ptr, void *tag) { static inline post_video_port_t *_x_post_video_frame_to_port(vo_frame_t *frame) { static inline post_video_port_t *_x_post_ovl_manager_to_port(video_overlay_manager_t *manager) { static inline void _x_post_rewire(post_plugin_t *post) { static inline void _x_post_lock(post_plugin_t *post) { static inline void _x_post_unlock(post_plugin_t *post) { I wonder if the patch would correct all of them...
*** Bug 235257 has been marked as a duplicate of this bug. ***
[ 96%] In file included from /usr/include/xine/input_plugin.h:35, from /usr/include/xine/xine_internal.h:55, from /var/tmp/portage/kde-base/phonon-4.0.5/work/phonon-4.0.5/phonon/xine/net_buf_ctrl.c:37: /usr/include/xine/buffer.h:679: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_x_is_fourcc' /var/tmp/portage/kde-base/phonon-4.0.5/work/phonon-4.0.5/phonon/xine/net_buf_ctrl.c: In function 'nbc_init': /var/tmp/portage/kde-base/phonon-4.0.5/work/phonon-4.0.5/phonon/xine/net_buf_ctrl.c:550: warning: 'xine_xmalloc' is deprecated (declared at /usr/include/xine/xineutils.h:624) make[2]: *** [phonon/xine/CMakeFiles/phonon_xine.dir/net_buf_ctrl.o] Error 1 make[2]: *** Waiting for unfinished jobs.... Building C object phonon/xine/CMakeFiles/phonon_xine.dir/plugins.o /var/tmp/portage/kde-base/phonon-4.0.5/work/phonon-4.0.5/phonon/xine/volumefader_plugin.cpp: In function 'post_plugin_t* kvolumefader_open_plugin(post_class_t*, int, xine_audio_port_t**, xine_video_port_t**)': /var/tmp/portage/kde-base/phonon-4.0.5/work/phonon-4.0.5/phonon/xine/volumefader_plugin.cpp:381: warning: 'xine_xmalloc' is deprecated (declared at /usr/include/xine/xineutils.h:624) /var/tmp/portage/kde-base/phonon-4.0.5/work/phonon-4.0.5/phonon/xine/volumefader_plugin.cpp:381: warning: 'xine_xmalloc' is deprecated (declared at /usr/include/xine/xineutils.h:624) In file included from /usr/include/xine/input_plugin.h:35, from /var/tmp/portage/kde-base/phonon-4.0.5/work/phonon-4.0.5/phonon/xine/plugins.c:24: /usr/include/xine/buffer.h:679: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_x_is_fourcc' /var/tmp/portage/kde-base/phonon-4.0.5/work/phonon-4.0.5/phonon/xine/plugins.c:39: warning: initialization discards qualifiers from pointer target type /var/tmp/portage/kde-base/phonon-4.0.5/work/phonon-4.0.5/phonon/xine/plugins.c:40: warning: initialization discards qualifiers from pointer target type /var/tmp/portage/kde-base/phonon-4.0.5/work/phonon-4.0.5/phonon/xine/plugins.c:42: warning: initialization discards qualifiers from pointer target type make[2]: *** [phonon/xine/CMakeFiles/phonon_xine.dir/plugins.o] Error 1 make[1]: *** [phonon/xine/CMakeFiles/phonon_xine.dir/all] Error 2 make: *** [all] Error 2 * * ERROR: kde-base/phonon-4.0.5 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2920: Called kde4-meta_src_compile * environment, line 2277: Called kde4-meta_src_make * environment, line 2326: Called kde4-base_src_make * environment, line 2041: Called cmake-utils_src_make * environment, line 712: Called die * The specific snippet of code: * emake "$@" || die "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/kde-base/phonon-4.0.5/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/kde-base/phonon-4.0.5/temp/environment'. * * Messages for package kde-base/phonon-4.0.5: * * ERROR: kde-base/phonon-4.0.5 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2920: Called kde4-meta_src_compile * environment, line 2277: Called kde4-meta_src_make * environment, line 2326: Called kde4-base_src_make * environment, line 2041: Called cmake-utils_src_make * environment, line 712: Called die * The specific snippet of code: * emake "$@" || die "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/kde-base/phonon-4.0.5/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/kde-base/phonon-4.0.5/temp/environment'. * # emerge --info Portage 2.1.4.4 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r4 i686) ================================================================= System uname: 2.6.24-gentoo-r4 i686 Intel(R) Core(TM)2 CPU T5500 @ 1.66GHz Timestamp of tree: Fri, 22 Aug 2008 03:00:02 +0000 distcc 2.18.3 i486-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [enabled] app-shells/bash: 3.2_p33 dev-java/java-config: 1.3.7, 2.1.6 dev-lang/python: 2.4.4-r6, 2.5.2-r6 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r2 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="x86" CBUILD="i486-pc-linux-gnu" CFLAGS="-O2 -mtune=i686 -pipe" CHOST="i486-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/4.0/env /usr/kde/4.0/share/config /usr/kde/4.0/shutdown /usr/share/config" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -mtune=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" MAKEOPTS="-j3" 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" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac acl alsa berkdb cli cracklib crypt cups dbus dri dts dvd firefox fortran gdbm gpm gtk hal iconv ipod ipv6 isdnlog jpeg matroska midi mp3 mpeg mplayer mudflap ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pcre perl png pppd python quicktime readline reflection session spl ssl tcpd tivo unicode vcd vorbis win32codecs x86 xorg xv xvid xvmc zlib" ALSA_CARDS="hda-intel" 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="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="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
My problem was while emerging phonon A solution appears to be to: ACCEPT_KEYWORDS="~x86" emerge xine-lib, which will pull in media-libs/xine-lib-1.1.15-r1 and phonon will compile sucessfully.
(In reply to comment #11) > My problem was while emerging phonon > > A solution appears to be to: > > ACCEPT_KEYWORDS="~x86" emerge xine-lib, which will pull in > media-libs/xine-lib-1.1.15-r1 and phonon will compile successfully. > Then the solution is to have that package brought down to the masses or update the depends for every package that fails. Having to manually mask and keyword things is never a solution, it's a workaround.
(In reply to comment #11) > My problem was while emerging phonon > > A solution appears to be to: > > ACCEPT_KEYWORDS="~x86" emerge xine-lib, which will pull in > media-libs/xine-lib-1.1.15-r1 and phonon will compile sucessfully. > You must be running the live ebuilds on the kdesvn-portage overlay. This issue has been fixed there and the required version has been bumped to xine-lib-1.1.15-r1 also for phonon-4.1.0 in both the kdesvn-portage and kde overlays. So the issue for kde-4 ebuilds should be fixed for now.
In the above comment I meant phonon-xine-4.1.0. (In reply to comment #0) > When compiling kdemultimedia with the USE="xine" flag, there an error occurs > which stops the emerge: Krzysztof Wojtas, can you please try to build kdemultimedia-3.5.9 again after updating to xine-lib-1.1.15-r1?
> can you please try to build kdemultimedia-3.5.9 again after updating to > xine-lib-1.1.15-r1? yeah, it works - kdemultimedia emerged successfully:)
From my understanding, this is a regression in stable (due to kdemultimedia-3.5.9). OK to process xine-lib-1.1.15-r1 for fast stabling?
(In reply to comment #16) > From my understanding, this is a regression in stable (due to > kdemultimedia-3.5.9). OK to process xine-lib-1.1.15-r1 for fast stabling? > yeah, make it stable then, please
stabling on bug 234777, feel free to close this if there's nothing more to do for kde/media-video.