Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 83146 - emerge media-video/mjpegtools-1.6.2-r3 fails: invalid option to libtool given
Summary: emerge media-video/mjpegtools-1.6.2-r3 fails: invalid option to libtool given
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-24 00:09 UTC by Johnny Wezel
Modified: 2005-04-24 19:22 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 Johnny Wezel 2005-02-24 00:09:28 UTC
Error
=====

/bin/sh ../../libtool --mode=compile --tag=CC /bin/sh ../../strip_fPIC.sh /usr/bin/nasm -f elf -o mblock_bsad_mmx.lo mblock_bsad_mmx.s
libtool: unrecognized option `--tag=CC'
Try `libtool --help' for more information.
make[3]: *** [mblock_bsad_mmx.lo] Error 1
make[3]: Leaving directory `/var/tmp/portage/mjpegtools-1.6.2-r3/work/mjpegtools-1.6.2/utils/mmxsse'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/mjpegtools-1.6.2-r3/work/mjpegtools-1.6.2/utils'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/mjpegtools-1.6.2-r3/work/mjpegtools-1.6.2'
make: *** [all] Error 2

!!! ERROR: media-video/mjpegtools-1.6.2-r3 failed.
!!! Function src_compile, Line 100, Exitcode 2


Reproducible: Always
Steps to Reproduce:
1. emerge mjpegtools

Actual Results:  
Error

Expected Results:  
Success

Portage 2.0.51-r15 (default-linux/x86/2004.0, gcc-3.3.3,
glibc-2.3.4.20040808-r1, 2.6.10-gentoo-r6 i686)
=================================================================
System uname: 2.6.10-gentoo-r6 i686 Pentium III (Coppermine)
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.3-r1 [2.3.3 (#1, May 14 2004, 04:05:02)]
distcc 2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.3-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.14.90.0.8-r1
sys-devel/libtool:   1.4.3-r4
virtual/os-headers:  2.4.19-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium3 -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium3 -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://gentoo.inode.at/
http://ftp.snt.utwente.nl/pub/os/linux/gentoo
http://sunsite.cnlab-switch.ch/ftp/mirror/gentoo/
http://ftp.uni-erlangen.de/pub/mirrors/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.nl.gentoo.org/gentoo-portage"
USE="x86 3dnow X acpi alsa avi berkdb bitmap-fonts bonobo cdr crypt cups curl
emboss encode esd f77 fam flac font-server foomaticdb fortran freetype gdbm gif
gnome gpm gstreamer gtk gtk2 gtkhtml guile imagemagick imlib imlib2 innodb ipv6
jack java jpeg ldap libg++ libwww mad mcal mikmod motif mozilla mpeg mysql
ncurses nls odbc oggvorbis opengl oss pam pda pdflib perl png python qt
quicktime readline ruby sdl slang spell sqlite ssl svg tcltk tcpd tiff truetype
truetype-fonts type1-fonts wxwin wxwindows xml xml2 xmms xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
Comment 1 Ajay Sharma 2005-03-12 00:59:31 UTC
I'm getting a different libtool error...    any ideas about this one??

 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/include -DG_LOG_DOMAIN=\"lavtools\" -DLAVPLAY_VERSION=\"1.6.2\" -Ino/include -I/usr/include/quicktime -I/usr/X11R6/include -I /usr/X11R6/include -I../utils -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -I/usr/include/jpeg-mmx -O2 -march=athlon-xp -mno-sse2 -MT avilib.lo -MD -MP -MF .deps/avilib.Tpo -c avilib.c  -fPIC -DPIC -o .libs/avilib.o
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/include -DG_LOG_DOMAIN=\"lavtools\" -DLAVPLAY_VERSION=\"1.6.2\" -Ino/include -I/usr/include/quicktime -I/usr/X11R6/include -I /usr/X11R6/include -I../utils -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -I/usr/include/jpeg-mmx -O2 -march=athlon-xp -mno-sse2 -MT avilib.lo -MD -MP -MF .deps/avilib.Tpo -c avilib.c -o avilib.o >/dev/null 2>&1
/bin/sh ../libtool --mode=link i686-pc-linux-gnu-gcc  -O2 -march=athlon-xp -mno-sse2   -o liblavfile.la -rpath /usr/lib -version-info 2:2:2 -release 1.6 -export-dynamic  -L/usr/lib -lquicktime -lpthread -lz -ldl -L/usr/include/jpeg-mmx -ljpeg-mmx -Lno/lib -ldv  -lm  -L/usr/lib -lglib  -lpthread editlist.lo lav_io.lo avilib.lo  
../libtool: line 1: cd: no/lib: No such file or directory
libtool: link: cannot determine absolute directory name of `no/lib'
make[2]: *** [liblavfile.la] Error 1
make[2]: Leaving directory `/var/tmp/portage/mjpegtools-1.6.2-r3/work/mjpegtools-1.6.2/lavtools'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/mjpegtools-1.6.2-r3/work/mjpegtools-1.6.2'
make: *** [all] Error 2

!!! ERROR: media-video/mjpegtools-1.6.2-r3 failed.
!!! Function src_compile, Line 101, Exitcode 2
!!! compile problem
!!! If you need support, post the topmost build error, NOT this status message.
Comment 2 Henry Jesuiter 2005-03-12 11:16:43 UTC
Hope that it's right here. To the additional comment, i saw the same problem (no/lib not found) on my system (athlon-xp, USE="nptl nptl-only 3dnow mmx -gpm" but no "sse"). After manually given "sse" to the emerge commandline it works fine.

Regards
Comment 3 Ajay Sharma 2005-03-12 12:55:58 UTC
I already have 'sse' in my USE flags so I don't think that's it.  any other ideas?  Here's my 'emerge info':

Portage 2.0.51.19 (default-linux/x86/2004.3, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.6.9 i686)
=================================================================
System uname: 2.6.9 i686 AMD Athlon(tm) XP 2700+
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 12 2005, 01:29:22)]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.4.22-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig distlocks sandbox sfperms"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/opt/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow X alsa apache2 apm avi berkdb bitmap-fonts cdr crypt curl divx4linux dvd emboss encode fam font-server foomaticdb fortran gd gdbm gif gpm gtk gtk2 imagemagick imlib innodb ipv6 joystick jpeg libg++ libwww lirc mad mikmod mjpeg mmx motif mp3 mpeg mysql mythtv ncurses nls nvidia oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl spell sse ssl svga tcpd tiff truetype truetype-fonts type1-fonts v4l2 xml2 xv xvid zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS

Comment 4 frederic goussin 2005-03-13 08:35:36 UTC
to ajay sharma
i had the same problem with libtool. Which i just solved :
you must unmerge libquicktime in order to emerge quicktime4linux
 with its dependencies. Now you can emerge mjpegtools with no problems.
Comment 5 Ajay Sharma 2005-03-13 09:45:49 UTC
still getting the same error after removing libquicktime and emerging quicktime4linux:

/bin/sh ../libtool --mode=link i686-pc-linux-gnu-gcc  -O2 -march=athlon-xp -mno-sse2   -o liblavfile.la -rpath /usr/lib -version-info 2:2:2 -release 1.6 -export-dynamic   -L/usr/include/jpeg-mmx -ljpeg-mmx -Lno/lib -ldv  -lm  -L/usr/lib -lglib  -lpthread editlist.lo lav_io.lo avilib.lo  
../libtool: line 1: cd: no/lib: No such file or directory
libtool: link: cannot determine absolute directory name of `no/lib'
make[2]: *** [liblavfile.la] Error 1
make[2]: Leaving directory `/var/tmp/portage/mjpegtools-1.6.2-r3/work/mjpegtools-1.6.2/lavtools'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/mjpegtools-1.6.2-r3/work/mjpegtools-1.6.2'
make: *** [all] Error 2
Comment 6 Zaid A. 2005-03-13 10:11:52 UTC
Ajay Sharma:
I had the same problem which I solved by adding "dv" to my USE flags, it seems that it tries to build with "dv" even if the USE flag is not set and that's why it fails, if you look closely at this:

/bin/sh ../libtool --mode=link i686-pc-linux-gnu-gcc  -O2 -march=athlon-xp -mno-sse2   -o liblavfile.la -rpath /usr/lib -version-info 2:2:2 -release 1.6 -export-dynamic  -L/usr/lib -lquicktime -lpthread -lz -ldl -L/usr/include/jpeg-mmx -ljpeg-mmx -Lno/lib -ldv  -lm  -L/usr/lib -lglib  -lpthread editlist.lo lav_io.lo avilib.lo

You will see that it tries to link against "dv" even though you don't have "dv" set in your USE flag, so adding "dv" to your USE flag should fix the issue.

could a dev fix this problem and mark the new revision stable since many people are having problems with this.

Zaid.  
Comment 7 frederic goussin 2005-03-13 12:13:37 UTC
to ajay sharma (2)

i have libtool-1.5.14  and you don t !

i had exactly the same error : so follow my method with quicktime4linux
 and be sure to have the last libtool ( i see you have the libtool 1.5.10-r4 )

don t care about use-flags : as you see it s a problem of dependencies with lavtools and libtool (quicktime4linux and libtool)
Comment 8 Ajay Sharma 2005-03-13 19:39:15 UTC
Adding "dv" to my USE flags fixed my problem.  I was going to upgrade libtool if that didn't work.  I didn't really want to since this is mostly a 'stable' machine with the exception of a few ~x86 packages.  Thanks for all the help.
Comment 9 Darragh Bailey 2005-03-28 06:23:21 UTC
Personnally there seems to me to be an additional bug here as well. If you have either of the following 2 packages installed
media-libs/libquicktime
media-libs/libdvdread

libdv is installed. But there doesn't appear to be a use.defaults entry which adds the dv flag to USE flags when the libdv package is installed. This appears to be the problem for somepeople since it appears that certain dependancies are not calculated correctly.

Configure will set the compile flag if it finds libdv on the machine. So the idea of just adding dv to the USE flags because the compile options are incorrectly trying to use dv is wrong. It should be why isn't dv being added to the USE flags when libdv is present on the machine. 

Looks to me as though that is bug elsewhere which this package has a dependancy on.
Comment 10 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-04-21 18:14:28 UTC
Already tried re-emerging libtool ?
Comment 11 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-04-24 19:22:01 UTC
Sorry too much noise in that bug to isolate a single problem. libtool problems should go away reemerging it.
For no/lib problems please open a new bug if it still applies.