When I try and emerge mjpegtools (required to update other packages) I get this undefined reference: lavplay.o(.text+0xa0f): In function `lavplay_mjpeg_set_params': : undefined reference to `XOpenDisplay' lavplay.o(.text+0xa89): In function `lavplay_mjpeg_set_params': : undefined reference to `XGetWindowAttributes' Reproducible: Always Steps to Reproduce: 1.emerge mjpegtools 2. 3. Actual Results: ** Emerge error ** gcc -mcpu=i686 -march=i686 -mcpu=athlon -march=athlon -O2 -pipe -mno-sse2 -Wall -Wunused -o .libs/lavplay lavplay.o ../utils/libmjpegutils.a ./.libs/liblavplay .so ./.libs/liblavjpeg.so -L/usr/local/src/jpeg-mmx ./.libs/liblavfile.so -L/usr /lib -lmovtar /usr/lib/libquicktime.so -ldl /usr/lib/libjpeg.so -L/usr/local/lib /usr/lib/libdv.so -lm /usr/lib/libglib.so -lpthread -L/usr/X11R6/lib gcc -mcpu=i686 -march=i686 -mcpu=athlon -march=athlon -O2 -pipe -mno-sse2 -Wall -Wunused -o .libs/lavrec lavrec.o ../utils/libmjpegutils.a ./.libs/liblavrec.so ./.libs/liblavfile.so -L/usr/lib -lmovtar /usr/lib/libquicktime.so -ldl -L/usr/ local/src/jpeg-mmx -L/usr/local/lib /usr/lib/libdv.so -lm /usr/lib/libglib.so ./ .libs/liblavjpeg.so /usr/lib/libjpeg.so -lpthread lavplay.o(.text+0xa0f): In function `lavplay_mjpeg_set_params': : undefined reference to `XOpenDisplay' lavplay.o(.text+0xa89): In function `lavplay_mjpeg_set_params': : undefined reference to `XGetWindowAttributes' collect2: ld returned 1 exit status make[2]: *** [lavplay] Error 1 make[2]: *** Waiting for unfinished jobs.... creating lavrec make[2]: Leaving directory `/var/tmp/portage/mjpegtools-1.6.1.90-r1/work/mjpegto ols-1.6.1.90/lavtools' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/mjpegtools-1.6.1.90-r1/work/mjpegto ols-1.6.1.90' make: *** [all] Error 2 !!! ERROR: media-video/mjpegtools-1.6.1.90-r1 failed. !!! Function src_compile, Line 65, Exitcode 2 !!! compile problem Expected Results: Compiled. ** Emerge info ** Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.20-gentoo-r5 ================================================================= System uname: 2.4.20-gentoo-r5 i686 AMD Athlon(tm) Processor Gentoo Base System version 1.4.3.13 Autoconf: sys-devel/autoconf-2.58-r1 Automake: sys-devel/automake-1.7.7 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-mcpu=athlon -march=athlon -O2 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3. /share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozill /defaults/pref /usr/share/config /usr/share/texmf/tex/generic/config/ /usr/shar /texmf/tex/platex/config/ /var/qmail/alias /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O2 -mcpu=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Lin x/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X aalib alsa apm arts avi berkdb bonobo cdr crypt cups directfb encode esd fbcon foomaticdb gdbm gif gnome gpm gtk gtk2 gtkhtml guile imlib java jpeg kde ibg++ libwww mad mikmod motif mozilla mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl slang spell ssl svga tcltk tcp tetex truetype x86 xml2 xmms xv zlib"
This is a dupe of Bugzilla Bug 36771
*** Bug 44830 has been marked as a duplicate of this bug. ***
Christian, why do you think this is a dupe? The bug you mention refers to versions > .90, as far as I can see.
Kyle, Giovanni, please do me a favour and test the following: 1. see if you can still reproduce the problem 2. remove the line starting with "epatch" from the ebuild in src_unpack 3. retry and report if it works Thank you.
removed 'epatch "${FILESDIR}/no-x11-lib.patch"' from mjpegtools-1.6.1.90-r2.ebuild. now it work. thanks.
Ok, since this is a compile time problem, I'll silently fix this for -r2. Thanks for testing.
test