Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 17515 - media-video/mjpegtools-1.6.0-r5 failed to compile "/usr/i686-pc-linux-gnu/bin/ld: cannot find -lartsc"
Summary: media-video/mjpegtools-1.6.0-r5 failed to compile "/usr/i686-pc-linux-gnu/bin...
Status: RESOLVED DUPLICATE of bug 1991
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
: 21572 24500 (view as bug list)
Depends on:
Reported: 2003-03-14 10:42 UTC by Aniruddha Shankar
Modified: 2009-01-29 16:18 UTC (History)
3 users (show)

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


Note You need to log in before you can comment on or make changes to this bug.
Description Aniruddha Shankar 2003-03-14 10:42:40 UTC
<<< please note that after I got this error, I unmerged and emerged arts just to confirm that it wasnt a problem with my arts build>>>

(cd .libs && rm -f && ln -s ../
/bin/sh ../libtool --mode=link gcc  -mcpu=i686 -march=i686 -march=i686 -O3 -pipe -Wall -Wunused   -o testrec  testrec.o audiolib.o -lpthread -L../utils -lmjpegutils 
gcc -mcpu=i686 -march=i686 -march=i686 -O3 -pipe -Wall -Wunused -o testrec testrec.o audiolib.o  -lpthread -L/var/tmp/portage/mjpegtools-1.6.0-r5/work/mjpegtools-1.6.0/utils -lmjpegutils
(cd .libs && rm -f && ln -s ../
/bin/sh ../libtool --mode=link gcc  -mcpu=i686 -march=i686 -march=i686 -O3 -pipe -Wall -Wunused   -o lavvideo  lavvideo.o  
/bin/sh ../libtool --mode=link gcc  -mcpu=i686 -march=i686 -march=i686 -O3 -pipe -Wall -Wunused   -o yuvmedianfilter  yuvmedianfilter.o -L../utils -lmjpegutils 
gcc -mcpu=i686 -march=i686 -march=i686 -O3 -pipe -Wall -Wunused -o lavvideo lavvideo.o 
gcc -mcpu=i686 -march=i686 -march=i686 -O3 -pipe -Wall -Wunused -o yuvmedianfilter yuvmedianfilter.o  -L/var/tmp/portage/mjpegtools-1.6.0-r5/work/mjpegtools-1.6.0/utils -lmjpegutils
/bin/sh ../libtool --mode=link gcc  -mcpu=i686 -march=i686 -march=i686 -O3 -pipe -Wall -Wunused   -o lavaddwav  lavaddwav.o -L../utils -lmjpegutils 
/bin/sh ../libtool --mode=link gcc  -mcpu=i686 -march=i686 -march=i686 -O3 -pipe -Wall -Wunused   -o lavtrans  lavtrans.o -L../utils -lmjpegutils 
gcc -mcpu=i686 -march=i686 -march=i686 -O3 -pipe -Wall -Wunused -o .libs/lavaddwav lavaddwav.o  -L/var/tmp/portage/mjpegtools-1.6.0-r5/work/mjpegtools-1.6.0/utils -lmjpegutils ./.libs/ -L/usr/lib -lmovtar -L/var/tmp/portage/mjpegtools-1.6.0-r5/work/mjpegtools-1.6.0/../quicktime4linux-1.4-patch -L/var/tmp/portage/mjpegtools-1.6.0-r5/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/ -L/usr/local/lib /usr/lib/ /usr/lib/ /usr/lib/ -L/usr/kde/3/lib -lartsc /usr/lib/ /usr/lib/ -lm /usr/lib/ -L/usr/X11R6/lib -lX11 -lXext /usr/lib/ /usr/lib/ /usr/lib/ -lvga /usr/lib/ -ldl -lpthread -lm /usr/lib/ -lpthread -ldl
gcc -mcpu=i686 -march=i686 -march=i686 -O3 -pipe -Wall -Wunused -o .libs/lavtrans lavtrans.o  -L/var/tmp/portage/mjpegtools-1.6.0-r5/work/mjpegtools-1.6.0/utils -lmjpegutils ./.libs/ -L/usr/lib -lmovtar -L/var/tmp/portage/mjpegtools-1.6.0-r5/work/mjpegtools-1.6.0/../quicktime4linux-1.4-patch -L/var/tmp/portage/mjpegtools-1.6.0-r5/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/ -L/usr/local/lib /usr/lib/ /usr/lib/ /usr/lib/ -L/usr/kde/3/lib -lartsc /usr/lib/ /usr/lib/ -lm /usr/lib/ -L/usr/X11R6/lib -lX11 -lXext /usr/lib/ /usr/lib/ /usr/lib/ -lvga /usr/lib/ -ldl -lpthread -lm /usr/lib/ -lpthread -ldl
/usr/i686-pc-linux-gnu/bin/ld: cannot find -lartsc
collect2: ld returned 1 exit status
make[2]: *** [lavaddwav] Error 1
make[2]: *** Waiting for unfinished jobs....
/usr/i686-pc-linux-gnu/bin/ld: cannot find -lartsc
collect2: ld returned 1 exit status
make[2]: *** [lavtrans] Error 1
make[2]: Leaving directory `/var/tmp/portage/mjpegtools-1.6.0-r5/work/mjpegtools-1.6.0/lavtools'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/mjpegtools-1.6.0-r5/work/mjpegtools-1.6.0'
make: *** [all] Error 2

!!! ERROR: media-video/mjpegtools-1.6.0-r5 failed.
!!! Function src_compile, Line 91, Exitcode 2
!!! (no error message)

Reproducible: Always
Steps to Reproduce:
1. try to emerge mjpegtools

Actual Results:  
emerge fails.

Expected Results:  
mjpegtools should have compiled.

Portage 2.0.47-r10 (default-1.0, gcc-2.95.3, glibc-2.2.5-r7)
System uname: 2.4.20-ck4 i686 Celeron (Coppermine)
GENTOO_MIRRORS="ftp://localhost/ http://www.ibibl"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share      /config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
USE="x86 oss avi crypt cups encode jpeg libg++ mikmod mmx mpeg ncurses pdflib qu      icktime spell truetype xml2 xmms xv arts berkdb bonobo cdr gdbm gif gnome-libs g      pm gtk guile imlib java kde libwww motif nls oggvorbis opengl pam png python qt       readline scanner sdl slang ssl svga tcltk tcpd X -3dnow aalib acpi alsa -apm dga       directfb doc esd fbcon flash gd ggi ggz gnome gtkhtml imap lcms ldap mozilla na      s nocardbus perl samba slp sse tetex tiff wmf xml zlib"
CFLAGS="-march=i686 -O3 -pipe"
CXXFLAGS="-march=i686 -O3 -pipe"
FEATURES="sandbox ccache userpriv usersandbox"
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2003-03-14 18:47:54 UTC
the problem is actually that some lib that this is linking to was compiled against arts, so you need to remerge that lib so it doesn't any more.  try:

find /usr/lib/*.so | xargs ldd | grep larts

Comment 2 Maarten Thibaut (RETIRED) gentoo-dev 2003-05-26 14:13:22 UTC
This is not a correct resolution. The real problem is this part of the commandline:


This is however not the correct path, it should be -L/usr/kde/3.1/lib and in this case the program does compile correctly. The wrong commandline is:

gcc -mcpu=i686 -march=i686 -march=i686 -Wall -Wunused -o .libs/lav2yuv lav2yuv.o lav_common.o  -L/var/tmp/portage/mjpegtools-1.6.0-r7/work/mjpegtools-1.6.0/utils -lmjpegutils ./.libs/ -L/usr/lib -lmovtar -L/var/tmp/portage/mjpegtools-1.6.0-r7/work/quicktime4linux-1.4-patch -L/var/tmp/portage/mjpegtools-1.6.0-r7/work/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/ /usr/lib/ /usr/lib/ /usr/lib/ /usr/lib/ -lartsc /usr/lib/ /usr/lib/ -lm /usr/lib/ -lX11 -lXext -lvga -ldl -lpthread -lm /usr/lib/ -lpthread -ldl

The right commandline is:

gcc -mcpu=i686 -march=i686 -march=i686 -Wall -Wunused -o .libs/lav2yuv lav2yuv.o lav_common.o  -L/var/tmp/portage/mjpegtools-1.6.0-r7/work/mjpegtools-1.6.0/utils -lmjpegutils ./.libs/ -L/usr/lib -lmovtar -L/var/tmp/portage/mjpegtools-1.6.0-r7/work/quicktime4linux-1.4-patch -L/var/tmp/portage/mjpegtools-1.6.0-r7/work/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.1/lib -lm -L/usr/X11R6/lib -ldl -lpthread -lm -lpthread -ldl ./.libs/ /usr/lib/ /usr/lib/ /usr/lib/ /usr/lib/ -lartsc /usr/lib/ /usr/lib/ -lm /usr/lib/ -lX11 -lXext -lvga -ldl -lpthread -lm /usr/lib/ -lpthread -ldl

I haven't looked deep enough to see where the /usr/kde/3/lib is coming from, but fact remains that this is a huge problem for a lot people. I myself haven't been able to do any emerging of world for several months now, and it is impacting my ability and willingness to keep using gentoo...

Please _FIX_ this issue. If it needs to be fixed on the user side then please tell us how: complete reinstall using nothing from KDE3.0? Complete removal of KDE? Complete removal of KDE 3?
Comment 3 Martin Holzer (RETIRED) gentoo-dev 2003-05-26 15:32:46 UTC
try out #revdep-rebuild  
from gentoolkit
Comment 4 Martin Holzer (RETIRED) gentoo-dev 2003-06-01 08:06:02 UTC
*** Bug 21572 has been marked as a duplicate of this bug. ***
Comment 5 Martin Holzer (RETIRED) gentoo-dev 2003-06-04 16:35:12 UTC

*** This bug has been marked as a duplicate of 1991 ***
Comment 6 Martin Holzer (RETIRED) gentoo-dev 2003-07-15 01:59:00 UTC
*** Bug 24500 has been marked as a duplicate of this bug. ***