Build error: <SNIP> LINK libgstapp-0.10.la Making all in gst Making all in adder CC gstadder.o LINK libgstadder.la Making all in app CC gstapp.o In file included from gstapp.c:27: /usr/include/gstreamer-0.10/gst/app/gstappsink.h:106: error: expected specifier-qualifier-list before ‘GstBufferList’ /usr/include/gstreamer-0.10/gst/app/gstappsink.h:131: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token make[3]: *** [libgstapp_la-gstapp.lo] Error 1 make[2]: *** [all-recursive] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 * * ERROR: media-libs/gst-plugins-base-0.10.23 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 3129: Called die * The specific snippet of code: * emake || die "emake failed." * The die message: * emake failed. Portage 2.1.6.13 (default/linux/x86/2008.0/desktop, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r6 i686) ================================================================= System uname: Linux-2.6.30-gentoo-r6-i686-Intel-R-_Pentium-R-_4_CPU_3.00GHz-with-gentoo-1.12.11.1 Timestamp of tree: Thu, 24 Sep 2009 15:15:01 +0000 app-shells/bash: 4.0_p28 dev-java/java-config: 2.1.8-r1 dev-lang/python: 2.6.2-r1 dev-python/pycrypto: 2.0.1-r8 dev-util/cmake: 2.6.4 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.5, 1.7.9-r1, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer" 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/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS=" --with-bdeps y" FEATURES="buildpkg collision-protect distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch userpriv userpriv_fakeroot usersandbox verify-rdepend" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8" LDFLAGS="-Wl,-O1" LINGUAS="en en_US" 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/layman/sunrise /usr/local/portage/layman/nerone /usr/local/portage/layman/kde-testing" SYNC="rsync://portage.nerone.org/gentoo-portage" USE="X a52 aac acl acpi alsa amr asf audiofile avahi bash-completion branding browserplugin bsf bzip2 cairo caps cddb cdparanoia cleartype cli cracklib crypt cups curl dbus dri dts dvd dvdr dvdread emboss encode evo exif faac faad fam fame ffmpeg fftw firefox flac flash ftp gd gdbm gif glib glut gmp gnutls gpm gstreamer gtk hal iconv idn imap imlib isdnlog ithreads jack java javascript jpeg kde kdehiddenvisibility kipi lame libnotify live lzo mad matroska mbrola mcal memlimit mikmod mjpeg mmap mmx modules mozilla mozsvg mp3 mp4 mpeg mplayer mudflap musicbrainz mysql ncurses network network-cron nls nntp nptl nptlonly nsplugin nvidia offensive ogg openexr opengl pam pch pcre pdf physfs png postgres ppds pppd python qt3 qt3support qt4 quicktime readline reflection reiserfs rtc sasl schroedinger sdl session sndfile speex spell spl sql sqlite sse sse2 ssl startup-notification subversion svg symlink sysfs taglib theora threads threadsafe thunar tiff tk truetype unicode usb utempter utf8 vcd vim-syntax vorbis webdav win32codecs wps x264 x86 xattr xcb xcomposite xforms xine xml xorg xosd xulrunner xv xvid 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="alias auth_basic authn_alias authn_default authn_file authz_default authz_groupfile authz_host authz_user autoindex dav dav_fs dir env include info log_config mime mime_magic negotiation proxy proxy_http rewrite setenvif status unique_id" APACHE2_MPMS="event" CAMERAS="canon directory ptp2" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" USERLAND="GNU" VIDEO_CARDS="intel vesa" Unset: CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
I was able to fix this by first uninstalling then rebuilding gstreamer itself. I can't swear that the uninstall was strictly necessary.
Please attach a full build.log
I can add that emerge -C gst-plugins-base and then emerge -av gst-plugins-base solved the problem for me.
It seems as if the compilation of gst-plugins-base is picking up system headers of gst-plugins-base at that point (GstApp), not the headers provided by the tarball itself that are the newer version that is currently being compiled. As in, gstapp.c should be picking up the gstappsink.h from the same directory, but it seems to pick it from the system installation instead, which might be an upstream CFLAGS ordering issue upstream. We should check what the state is in current versions
I believe there were some changes since then to not pick up system deps. Can you reproduce this with a newer gstreamer and gst-plugins-base?
*I* have no way to test this anymore. Anyone else?