Summary: | kde-base/kdemultimedia-3.5.9: fails to compile with media-libs/xine-lib-1.1.15 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Krzysztof Wojtas <kwojtas> |
Component: | Current packages | Assignee: | Gentoo Media-video project <media-video> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | jlp.bugs, john, kde, rbu, scouter389, StormByte |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
URL: | https://bugs.kde.org/show_bug.cgi?id=169365 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 234777 |
Description
Krzysztof Wojtas
2008-08-16 15:13:43 UTC
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. |