Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 7081 - mjpegtools-1.6.0-r3 fails to compile
Summary: mjpegtools-1.6.0-r3 fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Dan Armak (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-08-26 16:41 UTC by Andreas Proschofsky (RETIRED)
Modified: 2003-02-24 18:30 UTC (History)
1 user (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 Andreas Proschofsky (RETIRED) gentoo-dev 2002-08-26 16:41:59 UTC
When trying to emerge the new rhythmbox, the building of mjpegtools-1.6.0-r3
(which is a dependency) fails with the following error:

gcc -mcpu=i686 -march=i686 -march=i686 -O3 -pipe -Wall -Wunused -o .libs/lav2wav
lav2wav.o  -L/var/tmp/portage/mjpegtools-1.6.0-r3/work/mjpegtools-1.6.0/utils
-lmjpegutils ./.libs/liblavfile.so -L/usr/lib -lmovtar
-L/var/tmp/portage/mjpegtools-1.6.0-r3/work/mjpegtools-1.6.0/../quicktime4linux-1.4-patch
-L/var/tmp/portage/mjpegtools-1.6.0-r3/work/mjpegtools-1.6.0/../quicktime4linux-1.4-patch/i686
-lquicktime -lpthread -lpng -lz -lm -L/lib -ldl -L/usr/include/jpeg-mmx
/usr/lib/libjpeg.so -L/usr/local/lib /usr/lib/libdv.so /usr/lib/libpopt.so
/usr/lib/libSDL.so -L/usr/kde/3/lib -lartsc /usr/lib/libesd.so
/usr/lib/libaudiofile.so -lm /usr/lib/libasound.so -L/usr/X11R6/lib -lX11 -lXext
-lggi /usr/lib/libgii.so /usr/lib/libgg.so -lvga /usr/lib/libaa.so -ldl
-lpthread -lm /usr/lib/libglib.so -lpthread -ldl
/usr/i686-pc-linux-gnu/bin/ld: cannot find -lartsc
collect2: ld returned 1 exit status
make[2]: *** [lav2wav] Fehler 1
make[2]: *** Warte auf noch nicht beendete Prozesse....
gcc -mcpu=i686 -march=i686 -march=i686 -O3 -pipe -Wall -Wunused -o .libs/lav2yuv
lav2yuv.o lav_common.o 
-L/var/tmp/portage/mjpegtools-1.6.0-r3/work/mjpegtools-1.6.0/utils -lmjpegutils
./.libs/liblavfile.so -L/usr/lib -lmovtar
-L/var/tmp/portage/mjpegtools-1.6.0-r3/work/mjpegtools-1.6.0/../quicktime4linux-1.4-patch
-L/var/tmp/portage/mjpegtools-1.6.0-r3/work/mjpegtools-1.6.0/../quicktime4linux-1.4-patch/i686
-lquicktime -lpthread -lpng -lz -lm -L/lib -ldl -L/usr/include/jpeg-mmx
-L/usr/local/lib -L/usr/kde/3/lib -lm -L/usr/X11R6/lib -ldl -lpthread -lm
-lpthread -ldl ./.libs/liblavjpeg.so /usr/lib/libjpeg.so /usr/lib/libdv.so
/usr/lib/libpopt.so /usr/lib/libSDL.so -lartsc /usr/lib/libesd.so
/usr/lib/libaudiofile.so -lm /usr/lib/libasound.so -lX11 -lXext -lggi
/usr/lib/libgii.so /usr/lib/libgg.so -lvga /usr/lib/libaa.so -ldl -lpthread -lm
/usr/lib/libglib.so -lpthread -ldl
/usr/i686-pc-linux-gnu/bin/ld: cannot find -lartsc
collect2: ld returned 1 exit status
make[2]: *** [lav2yuv] Fehler 1
make[2]: Verlassen des Verzeichnisses Verzeichnis
/var/tmp/portage/mjpegtools-1.6.0-r3/work/mjpegtools-1.6.0/lavtools
make[1]: *** [all-recursive] Fehler 1
make[1]: Verlassen des Verzeichnisses Verzeichnis
/var/tmp/portage/mjpegtools-1.6.0-r3/work/mjpegtools-1.6.0
make: *** [all] Fehler 2

!!! ERROR: The ebuild did not complete successfully.
!!! Function src_compile, Line -159, Exitcode 2
!!! (no error message)

!!! emerge aborting on 
/usr/portage/media-video/mjpegtools/mjpegtools-1.6.0-r3.ebuild .


I am using gcc 2.95. Could this problem have something to do with that I am
using KDE 3.1 beta1? (and so arts 1.0.7)

bye 
suka
Comment 1 Andreas Proschofsky (RETIRED) gentoo-dev 2002-08-28 16:57:56 UTC
Ok solved the problem myself: It originated because I only have the KDE 3.1
beta1 installed which goes into the /usr/kde/3.1 dir, doing a symlink to
/usr/kde/3 allowed me to build it. Should be taken care of (how?) as this could
result in bigger problems when moving to a KDE 3.1 only system...
Comment 2 Hannes Mehnert (RETIRED) gentoo-dev 2002-08-28 17:41:14 UTC
Hi, 
 
I think You have KDEDIR=/usr/kde/3/ defined anywhere in Your environment 
(possibly in /etc/make.conf or /etc/make.globals?). 
 
Try `env` to get Your environment. 
Comment 3 Andreas Proschofsky (RETIRED) gentoo-dev 2002-08-28 17:48:58 UTC
The only KDE related variable I get when typing env is:

KDEDIRS=/usr/kde/3.1:/usr

ALso in /etc/env.d/ I only have the paths set to the 3.1-dirs, so I don't think
this is the problem
Comment 4 Hannes Mehnert (RETIRED) gentoo-dev 2002-08-28 17:54:27 UTC
is there any "KDEDIR=" in /etc/make*? 
Comment 5 Andreas Proschofsky (RETIRED) gentoo-dev 2002-08-28 18:04:46 UTC
No, no KDEDIR= in make.conf, make.globals or any of the files in make.profile
Comment 6 Dan Armak (RETIRED) gentoo-dev 2002-08-30 05:34:26 UTC
OK, this is what I believe is happening:  
 
libsdl and libdv both have optional deps on arts (via USE arts). You must have  
compiled one or both with kde 3.0.x installed, so their .la files still have  
the /usr/kde/3 path in them.  
 
mjpegtools will link against all libraries that libsdl and libdv link against.  
Including arts. So to fix this problem, please remerge both libdv and libsdl  
(those of the two that you have installed). emerge mjpegtools should now work  
(please test without your symlink in /usr/kde).  
  
I'll add the missing dep on libdv to mjpegtools, as well as an optional one on  
arts.  
Comment 7 Andreas Proschofsky (RETIRED) gentoo-dev 2002-08-30 11:13:40 UTC
Now that I recompiled both the compile of mjpegtools works without problems
(even without the symlink). BUT: More applications seem to have the problem, at
least I get the same error with xmms, so how to avoid such problems at a whole?
Comment 8 Dan Armak (RETIRED) gentoo-dev 2002-08-30 16:03:09 UTC
There are ways to fix such a situation - remerge offending apps or edit (or sed 
from a script) all .la files in /usr/lib to refer to /usr/kde/3.1 not 
/usr/kde/3. 
 
To avoid such problems, stop them from happening in the first place - I am not 
aware of any way to do that :-( I'm afraid you'll have to remerge xmms and 
anything else that gives trouble (xmms-arts too I suppose). 
Comment 9 Andreas Proschofsky (RETIRED) gentoo-dev 2002-08-30 16:38:33 UTC
thanks a lot for your help, at least now I know what the problem is. (and so I
already solved the xmms problem)

bye
suka
Comment 10 CJ Kucera 2003-02-24 18:28:40 UTC
Whoa, um, I...ah.... pasted that into the wrong bug's window.  So sorry.  :P
Comment 11 CJ Kucera 2003-02-24 18:30:33 UTC
Argh.  Er, no I didn't.  I just got caught by that "Your NEXT BUG Follows" thing and thought that I had . . . *ahem*  Yeah.  So disregard that message.  /me ducks!