<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>42037</bug_id>
          
          <creation_ts>2004-02-18 09:16 0000</creation_ts>
          <short_desc>emerge mjpegtools-1.6.1.90-r1 failed</short_desc>
          <delta_ts>2004-03-24 10:38:37 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Unspecified</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>kyle_smith82@hotmail.com</reporter>
          <assigned_to>media-video@gentoo.org</assigned_to>
          <cc>gpanco@tiscali.it</cc>

      

      
          <long_desc isprivate="0">
            <who>kyle_smith82@hotmail.com</who>
            <bug_when>2004-02-18 09:16:44 0000</bug_when>
            <thetext>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&apos;:
: undefined reference to `XOpenDisplay&apos;
lavplay.o(.text+0xa89): In function `lavplay_mjpeg_set_params&apos;:
: undefined reference to `XGetWindowAttributes&apos;


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&apos;:
: undefined reference to `XOpenDisplay&apos;
lavplay.o(.text+0xa89): In function `lavplay_mjpeg_set_params&apos;:
: undefined reference to `XGetWindowAttributes&apos;
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&apos;
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&apos;
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=&quot;x86&quot;
AUTOCLEAN=&quot;yes&quot;
CFLAGS=&quot;-mcpu=athlon -march=athlon -O2 -pipe&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
COMPILER=&quot;gcc3&quot;
CONFIG_PROTECT=&quot;/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&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/env.d&quot;
CXXFLAGS=&quot;-O2 -mcpu=i686 -pipe&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoaddcvs ccache sandbox&quot;
GENTOO_MIRRORS=&quot;http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Lin
x/distributions/gentoo&quot;
MAKEOPTS=&quot;-j2&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;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&quot;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>slaugther@linux.nu</who>
            <bug_when>2004-03-01 04:48:03 0000</bug_when>
            <thetext>This is a dupe of Bugzilla Bug 36771</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>phosphan@gentoo.org</who>
            <bug_when>2004-03-17 03:02:53 0000</bug_when>
            <thetext>*** Bug 44830 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>phosphan@gentoo.org</who>
            <bug_when>2004-03-17 04:16:35 0000</bug_when>
            <thetext>Christian, why do you think this is a dupe? The bug you mention refers to versions &gt; .90, as far as I can see.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>phosphan@gentoo.org</who>
            <bug_when>2004-03-17 05:26:14 0000</bug_when>
            <thetext>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 &quot;epatch&quot; from the ebuild in src_unpack
3. retry and report if it works

Thank you.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>gpanco@tiscali.it</who>
            <bug_when>2004-03-17 05:49:10 0000</bug_when>
            <thetext>removed &apos;epatch &quot;${FILESDIR}/no-x11-lib.patch&quot;&apos; from mjpegtools-1.6.1.90-r2.ebuild.

now it work.

thanks.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>phosphan@gentoo.org</who>
            <bug_when>2004-03-17 05:56:32 0000</bug_when>
            <thetext>Ok, since this is a compile time problem, I&apos;ll silently fix this for -r2. Thanks for testing.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>xmit@gmx.de</who>
            <bug_when>2004-03-24 10:38:37 0000</bug_when>
            <thetext>test</thetext>
          </long_desc>
      
    </bug>

</bugzilla>