Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 145265 - Emerge of media-video/mjpegtools-1.8.0-r1 failed
Summary: Emerge of media-video/mjpegtools-1.8.0-r1 failed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Television related Applications in Gentoo's Portage
URL:
Whiteboard:
Keywords:
: 145490 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-08-27 09:23 UTC by Martin May
Modified: 2006-08-29 09:34 UTC (History)
2 users (show)

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


Attachments
mjpegtools-1.8.0-as-needed.patch - with dependencies now (mjpegtools-1.8.0-as-needed.patch,1015 bytes, patch)
2006-08-28 12:04 UTC, Matthias Schwarzott
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin May 2006-08-27 09:23:07 UTC
Hello together!

When I try to emerge mjpegtools, this ends up as follows:

.....
x86_64-pc-linux-gnu-gcc -shared  .libs/liblavrec_la-liblavrec.o .libs/liblavrec_la-audiolib.o .libs/liblavrec_la-frequencies.o  -llavfile -llavjpeg -lm  -march=x86-64 -mcpu=x86-64 -march=nocona -pthread -Wl,-soname -Wl,liblavrec-1.8.so.0 -o .libs/liblavrec-1.8.so.0.0.0
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -llavfile
collect2: ld returned 1 exit status
make[2]: *** [liblavrec.la] Error 1
make[2]: *** Waiting for unfinished jobs....
x86_64-pc-linux-gnu-gcc -shared  .libs/liblavjpeg_la-jpegutils.o  /usr/lib64/libjpeg.so -lm  -march=x86-64 -mcpu=x86-64 -march=nocona -pthread -Wl,-soname -Wl,liblavjpeg-1.8.so.0 -o .libs/liblavjpeg-1.8.so.0.0.0
(cd .libs && rm -f liblavjpeg-1.8.so.0 && ln -s liblavjpeg-1.8.so.0.0.0 liblavjpeg-1.8.so.0)
(cd .libs && rm -f liblavjpeg.so && ln -s liblavjpeg-1.8.so.0.0.0 liblavjpeg.so)
x86_64-pc-linux-gnu-ar cru .libs/liblavjpeg.a  liblavjpeg_la-jpegutils.o
x86_64-pc-linux-gnu-ranlib .libs/liblavjpeg.a
creating liblavjpeg.la
(cd .libs && rm -f liblavjpeg.la && ln -s ../liblavjpeg.la liblavjpeg.la)
x86_64-pc-linux-gnu-gcc -shared  .libs/liblavfile_la-editlist.o .libs/liblavfile_la-lav_io.o .libs/liblavfile_la-avilib.o  /usr/lib64/libjpeg.so /usr/lib64/libdv.so /usr/lib64/libgtk.so -L/usr/lib64 /usr/lib64/libgdk.so /usr/lib64/libXi.so /usr/lib64/libXext.so /usr/lib64/libX11.so /usr/lib64/libglib.so -lm  -march=x86-64 -mcpu=x86-64 -march=nocona -pthread -Wl,-soname -Wl,liblavfile-1.8.so.0 -o .libs/liblavfile-1.8.so.0.0.0
(cd .libs && rm -f liblavfile-1.8.so.0 && ln -s liblavfile-1.8.so.0.0.0 liblavfile-1.8.so.0)
(cd .libs && rm -f liblavfile.so && ln -s liblavfile-1.8.so.0.0.0 liblavfile.so)
x86_64-pc-linux-gnu-ar cru .libs/liblavfile.a  liblavfile_la-editlist.o liblavfile_la-lav_io.o liblavfile_la-avilib.o
x86_64-pc-linux-gnu-ranlib .libs/liblavfile.a
creating liblavfile.la
(cd .libs && rm -f liblavfile.la && ln -s ../liblavfile.la liblavfile.la)
make[2]: Leaving directory `/var/tmp/portage/mjpegtools-1.8.0-r1/work/mjpegtools-1.8.0/lavtools'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/mjpegtools-1.8.0-r1/work/mjpegtools-1.8.0'
make: *** [all] Error 2

!!! ERROR: media-video/mjpegtools-1.8.0-r1 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_compile
  ebuild.sh, line 939:   Called src_compile
  mjpegtools-1.8.0-r1.ebuild, line 100:   Called die

!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if relevant.


I tried also disabling the other USE-Flags:
USE="-X -gtk -png -sdl -v4l" emerge mjpegtools
with the same result.

Would be great to get some help. Thanks a lot!
Martin


"emerge --info" gives:
Portage 2.1-r2 (default-linux/amd64/2006.0, gcc-4.1.1, glibc-2.4-r3, 2.6.18-rc4-mm2 x86_64)
=================================================================
System uname: 2.6.18-rc4-mm2 x86_64 Intel(R) Core(TM)2 CPU          6400  @ 2.13GHz
Gentoo Base System version 1.12.4
app-admin/eselect-compiler: [Not Present]
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.17
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-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=nocona"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=nocona"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="de_DE@euro"
LINGUAS="de"
MAKEOPTS="-j3"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X a52 aac acpi alsa avi berkdb bitmap-fonts bzip2 cairo chroot cli crypt cups dhcp dlloader dmi dri dvb dvbplayer dvd dvdr dvdread eds emboss encode ffmpeg foomaticdb fortran gcc64 gif gimp gimpprint glut gpm gstreamer gtk gtk2 gzip h323 hal hbci id3 imlib ipv6 isdnlog java jpeg jpeg2k kde lame lm_sensors lzw lzw-tiff mp3 mp4 mpeg nas ncurses nls no-seamonkey nptl nptlonly nvidia opengl openssh pam pcre pdf pdflib perl png pppd print proj python qt3 qt4 readline reflection reiserfs scanner sdl sensord session spell spl ssl svg tcpd threads threadsafe tiff truetype truetype-fonts type1-fonts unicode usb v4l v4l2 vcd vim wmf x264 xcomposite xine xinerama xmms xorg xpm xprint xrandr xscreensaver xv xvid zip zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux linguas_de userland_GNU video_cards_nvidia video_cards_vga"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Matthias Schwarzott gentoo-dev 2006-08-27 12:20:17 UTC
Bad! Could have something todo with as-needed patch. It adds a new (for strict case needed) inter-lib dependency. Perhaps a makefile-depend is missing.

Can you please check if it works with

MAKEOPTS="-j1" emerge mjpegtools
Comment 2 Michael Ditum 2006-08-27 12:32:23 UTC
I had the same problem with my AMD system and MAKEOPTS="-j1" emerge mjpegtools fixed it.
Comment 3 Martin May 2006-08-27 12:42:34 UTC
MAKEOPTS="-j1" emerge mjpegtools

Yes! Works for me, too!

Thanks
Martin
Comment 4 Matthias Schwarzott gentoo-dev 2006-08-28 12:04:33 UTC
Created attachment 95309 [details, diff]
mjpegtools-1.8.0-as-needed.patch - with dependencies now
Comment 5 Matthias Schwarzott gentoo-dev 2006-08-28 12:06:53 UTC
That "-j1" works is a sign that the depends inside the Makefile are missing.
Can you check if it works with that updated file mjpegtools-1.8.0-as-needed.patch.
Replace the original file inside /usr/portage/media-video/mjpegtools/file.
Comment 6 Martin May 2006-08-28 13:40:58 UTC
I emerged it once again, after updating the patch using MAKEOPTS="-j3"
Now it works!
Well done!

Greetings
Martin
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2006-08-29 09:34:39 UTC
*** Bug 145490 has been marked as a duplicate of this bug. ***