Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 135153 - [gcc 4.1.1] Linking error in gst-plugins-ffmpeg 0.10.1
Summary: [gcc 4.1.1] Linking error in gst-plugins-ffmpeg 0.10.1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: Highest major (vote)
Assignee: GStreamer package maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-01 06:42 UTC by Radoslaw Szkodzinski
Modified: 2006-06-19 06:16 UTC (History)
5 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Radoslaw Szkodzinski 2006-06-01 06:42:37 UTC
gst-plugins-ffmpeg-0.10.1 fails to link.
It seems something forgot to link against Xlib.

I'm using modular X.

ffplay-ffplay.o: In function `main':
ffplay.c:(.text+0x3278): undefined reference to `XOpenDisplay'
ffplay.c:(.text+0x32ab): undefined reference to `XCloseDisplay'
collect2: ld returned 1 exit status
make[7]: *** [ffplay] Error 1
make[7]: Leaving directory `/var/tmp/portage/gst-plugins-ffmpeg-0.10.1/work/gst-ffmpeg-0.10.1/gst-libs/ext/ffmpeg'
make[6]: *** [all-recursive] Error 1
make[6]: Leaving directory `/var/tmp/portage/gst-plugins-ffmpeg-0.10.1/work/gst-ffmpeg-0.10.1/gst-libs/ext/ffmpeg'
make[5]: *** [all] Error 2
make[5]: Leaving directory `/var/tmp/portage/gst-plugins-ffmpeg-0.10.1/work/gst-ffmpeg-0.10.1/gst-libs/ext/ffmpeg'
make[4]: *** [all-local] Error 2
make[4]: Leaving directory `/var/tmp/portage/gst-plugins-ffmpeg-0.10.1/work/gst-ffmpeg-0.10.1/gst-libs/ext'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/gst-plugins-ffmpeg-0.10.1/work/gst-ffmpeg-0.10.1/gst-libs/ext'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/gst-plugins-ffmpeg-0.10.1/work/gst-ffmpeg-0.10.1/gst-libs'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gst-plugins-ffmpeg-0.10.1/work/gst-ffmpeg-0.10.1'
make: *** [all] Error 2

!!! ERROR: media-plugins/gst-plugins-ffmpeg-0.10.1 failed.
Call stack:
  ebuild.sh, line 1531:   Called dyn_compile
  ebuild.sh, line 931:   Called src_compile
  gst-plugins-ffmpeg-0.10.1.ebuild, line 42:   Called die

INFO:
Portage 2.1_rc3-r3 (default-linux/x86/2005.1, gcc-4.1.1, glibc-2.4-r3, 2.6.17-rc2-ck1 i686)
=================================================================
System uname: 2.6.17-rc2-ck1 i686 Mobile AMD Sempron(tm) Processor 2800+
Gentoo Base System version 1.12.0
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r1
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=k8 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/NX/etc /usr/NX/home /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O2 -march=k8 -pipe -fomit-frame-pointer -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks parallel-fetch sandbox sfperms strict userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.prz.rzeszow.pl http://ftp.roedu.net/pub/mirrors/gentoo.org/"
LANG="pl_PL.UTF-8"
LC_ALL="pl_PL.UTF-8"
LINGUAS="pol"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X a52 aac accessibility acpi aio alsa ao aotuv apache2 asf async authlib automount avi bash-completion beagle berkdb bitmap-fonts bl bonjour browserplugin bzip2 cairo caps cddb cdparanoia cdr cgi cjk cli crypt cscope cups curl curlwrappers d3d dba dbus dillo dlloader dri dts dv dvd dvdread dxr3 dynagraph ecc emacs emboss encode erandom exif exit expat extraengine extraicons extramodules extras fam fbcon ffmpeg filepro flac fontconfig foomaticdb fpx ftp gd gdbm gif gimpprint gitsendemail glibc-omitfp glut gnome gnuplot gnutls gpg2-experimental gpm graphviz gs gstreamer gtk gtk2 gtkhtml guile hal howl iconv icu idea imagemagick imap imlib inifile iontruetype isdnlog ithreads jack java java-external javascript jbig jpeg jpeg2k libg++ libgda libwww linguas_pl lzo mad mailwrapper matroska mikmod mmap mmx mmxext mng modplug mono motif mozcalendar mozsvg mp3 mpeg musepack mysql ncurses netjack nls nntp nodrm nptl nptlonly numeric objc ogg oggvorbis openal opengl oss pam pcre pdf pdflib pear perl php pic plotutils png posix ppds pppd preview-latex pwdb python qt quicktime readline real reflection rle rtc ruby samba sasl sdl sensord session silc simplexml slang sndfile socks5 speex spell spl sqlite sse sse2 ssl startup-notification svg sysfs syslog sysvipc tcltk tcpd tetex tga theora threads tidy tiff timidity tokenizer truetype truetype-fonts type1-fonts ucs2 unicode urandom usb userlocales utf8 vcd voice vorbis win32codecs wmf xanim xinerama xml xml2 xorg xpm xv xvid xvmc zip zlib elibc_glibc input_devices_evdev input_devices_keyboard input_devices_synaptics input_devices_mouse kernel_linux linguas_pol userland_GNU video_cards_sis"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 João Oliveirinha 2006-06-01 15:49:21 UTC
I have the same problem.. 
Already reemerged libsdl with Use="X" but nothing ... 
This happens after upgrade to gcc 4.1.1 and emerge -e world


emerge --info

Portage 2.1_rc3-r2 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.4-r3, 2.6.16-gentoo i686)
=================================================================
System uname: 2.6.16-gentoo i686 Intel(R) Pentium(R) M processor 2.00GHz
Gentoo Base System version 1.12.0
ccache version 2.4 [enabled]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r1
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -O2 -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/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium-m -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://darkstar.ist.utl.pt/gentoo/"
LANG="en_US@euro"
LC_ALL="en_US@euro"
LINGUAS="pt"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/xgl"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa apache2 apm arts audiofile avi berkdb bitmap-fonts bzip2 cairo cdr cli crypt ctype cups dba dri eds elibc_glibc emboss encode esd ethereal exif expat fam fastbuild foomaticdb force-cgi-redirect fortran ftp gd gdbm gif glitz glut gmp gnome gpm gstreamer gtk gtk2 gtkhtml guile idn imlib ipv6 isdnlog jpeg kde kernel_linux lcms libg++ libwww mad memlimit mikmod mmx mmxext mng motif mozilla mp3 mpeg ncurses nls nptl nptlonly nsplugin ogg opengl oss pam pcre pdflib perl png posix pppd python qt quicktime readline reflection samba sdl session simplexml slang soap sockets spell spl sse sse2 ssl tcltk tcpd tiff tokenizer truetype truetype-fonts type1-fonts udev userland_GNU vorbis x86 xml xml2 xmms xorg xsl xv zlib input_devices_keyboard input_devices_mouse input_devices_synaptics linguas_pt video_cards_fglrx video_cards_vesa video_cards_fbdev"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 foser (RETIRED) gentoo-dev 2006-06-02 02:36:15 UTC
is this a known ffmpeg problem in general ?
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-06-02 02:48:24 UTC
Uh... why you're trying to build ffplay ?_?
Comment 4 Radoslaw Szkodzinski 2006-06-02 10:17:04 UTC
I'm not trying anything. It's being installed from plain ebuild.
The ebuild uses econf, emake and then emake DESTDIR=${D} install.
Comment 5 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-06-02 10:22:47 UTC
Sorry I wasn't clear :) I was asking that to the gstreamer team, not to you :)
Comment 6 foser (RETIRED) gentoo-dev 2006-06-03 01:11:03 UTC
I think that is something for zaheer to answer, but afaik he's away for a couple of days.
Comment 7 Timothy Hoffmeyer 2006-06-03 21:41:21 UTC
Having the same problem with gcc from svn...

Gentoo Base System version 1.12.0
Portage 2.1_rc3-r5 (default-linux/x86/2006.0, gcc-4.1.2-pre20060602, glibc-2.4.90.20060516-r0, 2.6.16-beyond4 i686)
=================================================================
System uname: 2.6.16-beyond4 i686 AMD Sempron(tm) Processor 2800+
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.93-r6
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.16
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon64 -fomit-frame-pointer -pipe -ftracer -fweb -fprefetch-loop-arrays -fno-ident -frename-registers"
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/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O2 -march=athlon64 -fomit-frame-pointer -pipe -ftracer -fweb -fprefetch-loop-arrays -fno-ident -frename-registers -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://gentoo.chem.wisc.edu/gentoo/ ftp://gentoo.chem.wisc.edu/gentoo/ http://cudlug.cudenver.edu/gentoo/ http://gentoo.mirrors.pair.com/ ftp://gentoo.mirrors.pair.com/ http://gentoo.mirrors.tds.net/gentoo ftp://gentoo.mirrors.tds.net/gentoo "
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,-Bdirect -Wl,-hashvals -Wl,-zdynsort"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/xgl-coffee"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X aac acpi aim alsa apache2 apm arts audiofile avi berkdb bitmap-fonts bzip2 cdb cdr cli crypt cups dbus directfb dri dvd dvdr dvdread eds emboss encode esd ffmpeg filepro flac font-server foomaticdb fortran ftp gd gdbm gif gnome gpm gstreamer gtk gtk2 imagemagick imap imlib ipv6 isdnlog java jikes jpeg kde libg++ libwww lm_sensors mad memlimit mhash mikmod mime ming mmx mmxext motif mp3 mpeg mysql ncurses nls nptl nptlonly nvidia ogg oggvorbis opengl oss pam pcre pdflib perl php png pppd python qt quicktime readline reflection samba sdl session snmp sockets spell spl sse sse2 ssl svg symlink tcpd tetex tidy tiff truetype truetype-fonts type1-fonts udev vorbis vv wifi win32codecs xml xml2 xmms xorg xscreensaver xv xvid zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_-acecad input_devices_-aiptek input_devices_-calcomp input_devices_-citron input_devices_-digitaledge input_devices_-dmc input_devices_-dynapro input_devices_-elo2300 input_devices_-elographics input_devices_-evdev input_devices_-fpit input_devices_-hyperpen input_devices_-jamstudio input_devices_-joystick input_devices_-magellan input_devices_-magictouch input_devices_-microtouch input_devices_-mutouch input_devices_-palmax input_devices_-penmount input_devices_-spaceorb input_devices_-summa input_devices_-synaptics% input_devices_-tek4957 input_devices_-ur98 input_devices_-vmmouse input_devices_-void kernel_linux userland_GNU video_cards_nv video_cards_nvidia video_cards_-i128 video_cards_-mga video_cards_-radeon video_cards_-savage video_cards_-apm video_cards_-ark video_cards_-chips video_cards_-cirrus video_cards_-cyrix video_cards_-dummy video_cards_-fbdev video_cards_-fglrx% video_cards_-glint video_cards_-i740 video_cards_-i810 video_cards_-imstt video_cards_-mach64 video_cards_-neomagic video_cards_-newport video_cards_-nsc video_cards_-r128 video_cards_-rendition video_cards_-s3 video_cards_-s3virge video_cards_-siliconmotion video_cards_-sis video_cards_-sisusb video_cards_-sunbw2 video_cards_-suncg14 video_cards_-suncg3 video_cards_-suncg6 video_cards_-sunffb video_cards_-sunleo video_cards_-suntcx video_cards_-tdfx video_cards_-tga video_cards_-trident video_cards_-tseng video_cards_-v4l video_cards_-vesa video_cards_-vga video_cards_-via video_cards_-vmware video_cards_-voodoo"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 8 Jan Slaninka 2006-06-07 05:42:43 UTC
I've included "-lX11 -L/usr/X11R6/lib" to CFLAGS in my make.conf (as written in 102094) and was able to compile it.
Comment 9 Zeksers 2006-06-13 22:22:26 UTC
I can confirm that including "-lX11 -L/usr/X11R6/lib" to CFLAGS in my make.conf made it emerge.
Comment 10 Francisco J. Vazquez 2006-06-17 03:06:52 UTC
It seems only ffserver and ffmpeg are disabled in configure.ac. Adding "--disable-ffplay" to the econf command in the ebuild solves the problem.
Comment 11 biohazrd 2006-06-17 10:17:42 UTC
(In reply to comment #10)
> It seems only ffserver and ffmpeg are disabled in configure.ac. Adding
> "--disable-ffplay" to the econf command in the ebuild solves the problem.
> 
I have confirmed this solution for editing the ebuild with econf --disable-ffplay.  'CFLAGS="-lX11 -L/usr/X11R6/lib" emerge gst-plugins-ffmpeg' had no effect for me and actually created more undefinded references.  I did have X as a USE flag for libsdl from the beginning.


Comment 12 unz.snu 2006-06-18 03:35:54 UTC
econf --disable-ffplay works for me too ... what about a -r1 ebuild?
Comment 13 Zaheer Abbas Merali (RETIRED) gentoo-dev 2006-06-19 06:16:27 UTC
Thanks, fixed now