Summary: | mjpegtools: no mpeg2dec | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Roman Valls <brainstorm> |
Component: | New packages | Assignee: | phoen][x <fisi.tilman.klar> |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | brainstorm, k, marduk, mholzer, mkennedy, tom.gl |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | http://mjpeg.sourceforge.net | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
emerge info, full emerge mjpegtools
emerge mjpegtools-1.6.0-r7.ebuild output |
Description
Roman Valls
2002-11-24 04:27:40 UTC
Heyas Roman, which version of mjpegtools do you use? And attach an "emerge info" please. Thanks, -phoen][x- Hi Phoen][x ! here's the info that you requested: * media-video/mjpegtools Latest version available: 1.6.0-r5 Latest version installed: 1.6.0-r5 Size of downloaded files: 1,454 kB Homepage: http://mjpeg.sourceforge.net/ Description: Tools for MJPEG video root@brainmachine mjpegtools # emerge info Portage 2.0.44 (default-1.0-gcc3, gcc-3.1.1, glibc-2.2.5-r4,2.2.5-r7) ================================================================= System uname: 2.4.19-gentoo-r9 i686 AuthenticAMD USE="x86 oss apm gif libg++ mikmod ncurses pdflib qtmt spell xml2 zlib gdbm berk db slang readline tetex java guile X pam libwww imlib qt motif ldap cdr mmx 3dno w opengl sdl xv dga fbcon ssl sasl -kde -arts nocardbus gnome tcltk gtk gtk2 gtk + giff jpeg png avi mpeg quicktime alsa esd dvd xmms oggvorbis lirc flash encode crypt imap tcpd mozilla truetype perl python samba gphoto2 cups svga gpm -nls" ARCH="x86" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-march=athlon -O3 -funroll-loops -pipe -fomit-frame-pointer -m3dnow -mmm x" CXXFLAGS="-march=athlon -O3 -funroll-loops -pipe -fomit-frame-pointer -m3dnow -m mmx" ACCEPT_KEYWORDS="x86" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/confi g /usr/kde/3/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" MAKEOPTS="-j2" JDK_HOME="/opt/blackdown-jdk-1.3.1" JAVA_HOME="/opt/blackdown-jdk-1.3.1" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" GENTOO_MIRRORS="http://www.ibiblio.org/gentoo" Could you retry it with -r6? Anyways, i have mpeg2dec - here's my "emerge info": Portage 2.0.44 (default-x86-1.4, gcc-3.2.1, glibc-2.3.1-r2) ================================================================= System uname: 2.4.20-pre7-mjc2 i686 AMD Athlon(tm) processor USE="x86 3dnow apm avi crypt gif jpeg libg++ mikmod mmx mpeg ncurses nls pdflib png qtmt quicktime truetype xml2 xmms xv zlib gdbm berkdb slang readline sdl tcpd pam libwww ssl perl python esd imlib oggvorbis gtk motif opengl aalib bonobo gnome cups dvd ggi gtkhtml guile java mozilla nas svga tcltk ogg vorbis objprelink fbcon oss mhash mcrypt encode -alsa -arts -kde -gpm -qt directfb X gtk2 ggz cdr evo imap -ldap spell pda mysql" ARCH="x86" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-march=athlon-tbird -O3 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4 -maccumulate-outgoing-args" CXXFLAGS="-march=athlon-tbird -O3 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4 -maccumulate-outgoing-args" ACCEPT_KEYWORDS="x86 ~x86" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" MAKEOPTS="-j2" JDK_HOME="/opt/blackdown-jdk-1.4.1_beta" JAVA_HOME="/opt/blackdown-jdk-1.4.1_beta" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" GENTOO_MIRRORS="http://www.ibiblio.org/pub/Linux/distributions/gentoo" -phoen][x- I've tried ACCEPT_KEYWORDS="x86 ~x86", emerged -r6, but it doesn't compile now :-/ Maybe it's time to try Gentoo 1.4 :-? i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/include -DG_LOG_DOMAIN =\"lavtools\" -DLAVPLAY_VERSION=\"1.6.0\" -I/usr/include -I/usr/include/glib-1.2 -I/u sr/lib/glib/include -I/usr/local/include -I /var/tmp/portage/mjpegtools-1.6.0-r6/work /quicktime4linux-1.4-patch -I/usr/X11R6/include -I /usr/X11R6/include -I../utils -I/u sr/include/avifile -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/inc lude -I/usr/X11R6/include -mcpu=i686 -march=i686 -march=i686 -Wall -Wunused -c avilib .c -MT avilib.lo -MD -MP -MF .deps/avilib.TPlo -fPIC -DPIC -o avilib.o cc1: warning: changing search order for system directory "/usr/local/include" cc1: warning: as it has already been specified as a non-system directory cc1: warning: changing search order for system directory "/usr/include" cc1: warning: as it has already been specified as a non-system directory lav_io.c: In function `check_DV2_input': lav_io.c:1385: too few arguments to function `dv_decoder_new' make[2]: *** [lav_io.lo] Error 1 make[2]: *** Waiting for unfinished jobs.... mv -f avilib.o .libs/avilib.lo i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/include -DG_LOG_DOMAIN =\"lavtools\" -DLAVPLAY_VERSION=\"1.6.0\" -I/usr/include -I/usr/include/glib-1.2 -I/u sr/lib/glib/include -I/usr/local/include -I /var/tmp/portage/mjpegtools-1.6.0-r6/work /quicktime4linux-1.4-patch -I/usr/X11R6/include -I /usr/X11R6/include -I../utils -I/u sr/include/avifile -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/inc lude -I/usr/X11R6/include -mcpu=i686 -march=i686 -march=i686 -Wall -Wunused -c avilib .c -MT avilib.lo -MD -MP -MF .deps/avilib.TPlo -o avilib.o >/dev/null 2>&1 mv -f .libs/avilib.lo avilib.lo make[2]: Leaving directory `/var/tmp/portage/mjpegtools-1.6.0-r6/work/mjpegtools-1.6. 0/lavtools' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/mjpegtools-1.6.0-r6/work/mjpegtools-1.6. 0' make: *** [all] Error 2 !!! ERROR: media-video/mjpegtools-1.6.0-r6 failed. !!! Function src_compile, Line -85, Exitcode 2 !!! (no error message) Which version of libdv do you have? (Run "emerge -s libdv" and paste the output here) -phoen][x- Here you are: * media-libs/libdv Latest version available: 0.98 Latest version installed: 0.98 Size of downloaded files: 346 kB Homepage: http://libdv.sourceforge.net/ Description: software codec for dv-format video (camcorders etc) I can confirm the issue with lav_io.c:1385: too few arguments to function `dv_decoder_new' while trying to compile mjpegtools-1.6.0-r6. I have the same version of libdv (0.98) A quick vi on /usr/include/libdv/dv.h shows me on line 50 that dv_decoder_new needs 3 parameters (at least in 0.98 which is the latest available) : extern dv_decoder_t *dv_decoder_new (int add_ntsc_setup, int clamp_luma, int clamp_chroma); So, I tried editing the ebuild and commented the 2 mv and sed to leave the call to dv_decoder_new as it is -> dv_decoder_new(0,0,0). It compiled and installed perfectly. I can't tell about it working, as I am not in front of the computer right now, but I'll try some mpeg encoding soon. Hope this helps. Marc. Nope this doesnt help a bit. It confuses me even more. See, we compile against /var/tmp/portage/mjpegtools-1.6.0-r6/work/quicktime4linux-1.4-patch/libdv.{c.h}, not against the one in /usr/include. If you check the ebuild, you'll see that the original files of mjpegtools use dv_decoder_new (0,0,0) - i used sed to patch the files (src_unpack()). Thats because the libdv in work/quicktime4linux-1.4-patch/ doesn't implement dv_decoder_new with 3 parameters - it implements the function dv_decoder_new w/o any parameters; so dv_decoder_new() would be the correct usage. Just look at bug 11163: >> lav_io.c: In function `check_DV2_input': >> lav_io.c:1385: too many arguments to function `dv_decoder_new' >> lav_io.c:1415: warning: implicit declaration of function `dv_decoder_free' Funny is it not? So in a nutshell we have the following situation: On spiders and mine box: mjpegtools fails to compile when you use dv_decoder_new(0,0,0); On your boxes: mjpegtools fails to compile when you use dv_decoder_new(); Besides, i also have libdv0.98 installed. I don't see the problem though - help will be greatly appreciated. -phoen][x- *** Bug 11349 has been marked as a duplicate of this bug. *** *** Bug 11911 has been marked as a duplicate of this bug. *** emerging mjpegtools-1.6.0-r5 still fails. But the first time I build the system it worked. That's strange, or not? Now building mjpegtools-1.6.0-r6 works, but using bei "tosvcd" (another software not included in gentoo now) fails. There is libdv0.98 installed. Does anybody have an idea? --------------------------------------------- lav_io.c: In function `check_DV2_input': lav_io.c:1385: too many arguments to function `dv_decoder_new' lav_io.c:1415: warning: implicit declaration of function `dv_decoder_free' make[2]: *** [lav_io.lo] Error 1 make[2]: *** Waiting for unfinished jobs.... mv -f .libs/editlist.lo editlist.lo 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 88, Exitcode 2 !!! (no error message) PeeBee, could you repost that last one. its just one long line to me My build fails with different errors... man, what a stinky compile this one is... /bin/sh ../libtool --mode=link gcc -mcpu=i686 -march=i686 -O3 -mcpu=athlon-tbird -march=i686 -Wall -Wunused -o lavvideo lavvideo.o gcc -mcpu=i686 -march=i686 -O3 -mcpu=athlon-tbird -march=i686 -Wall -Wunused -o lavvideo lavvideo.o gcc -mcpu=i686 -march=i686 -O3 -mcpu=athlon-tbird -march=i686 -Wall -Wunused -o .libs/lavrec lavrec.o -L/data/tmp/portage/mjpegtools-1.6.0-r6/work/mjpegtools-1.6.0/utils -lmjpegutils ./.libs/liblavrec.so ./.libs/liblavfile.so -L/usr/lib -lmovtar -L/data/tmp/portage/mjpegtools-1.6.0-r6/work/quicktime4linux-1.4-patch -L/data/tmp/portage/mjpegtools-1.6.0-r6/work/quicktime4linux-1.4-patch/i686 -lquicktime -lpthread -lpng -lz -lm -L/lib -ldl -L/usr/include/jpeg-mmx -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 -lvga -ldl -lpthread -lm /usr/lib/libglib.so -lpthread -ldl ./.libs/liblavjpeg.so /usr/lib/libjpeg.so -lpthread /bin/sh ../libtool --mode=link gcc -mcpu=i686 -march=i686 -O3 -mcpu=athlon-tbird -march=i686 -Wall -Wunused -o lav2wav lav2wav.o -L../utils -lmjpegutils liblavfile.la /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lartsc collect2: ld returned 1 exit status make[2]: *** [lavrec] Error 1 make[2]: *** Waiting for unfinished jobs.... gcc -mcpu=i686 -march=i686 -O3 -mcpu=athlon-tbird -march=i686 -Wall -Wunused -o .libs/lav2wav lav2wav.o -L/data/tmp/portage/mjpegtools-1.6.0-r6/work/mjpegtools-1.6.0/utils -lmjpegutils ./.libs/liblavfile.so -L/usr/lib -lmovtar -L/data/tmp/portage/mjpegtools-1.6.0-r6/work/quicktime4linux-1.4-patch -L/data/tmp/portage/mjpegtools-1.6.0-r6/work/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 -lvga -ldl -lpthread -lm /usr/lib/libglib.so -lpthread -ldl /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lartsc collect2: ld returned 1 exit status make[2]: *** [lav2wav] Error 1 make[2]: Leaving directory `/data/tmp/portage/mjpegtools-1.6.0-r6/work/mjpegtools-1.6.0/lavtools' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/data/tmp/portage/mjpegtools-1.6.0-r6/work/mjpegtools-1.6.0' make: *** [all] Error 2 !!! ERROR: media-video/mjpegtools-1.6.0-r6 failed. !!! Function src_compile, Line 97, Exitcode 2 !!! (no error message) Created attachment 6674 [details]
emerge info, full emerge mjpegtools
I experienced same problems concerning lav_io.lo for the quicktime problem.
FYC I put the nescessary information to the attachement to avoid bloating this
page - I hope it helps.
regards
Sascha
Created attachment 6961 [details]
emerge mjpegtools-1.6.0-r7.ebuild output
r-7 still does not merge, #11163 is not the solution (almost for me... anyone
else can confirm it ?).
I had the same problem with dv_decoder_new with r5. I was able to successfully merge r7 today though. Only problem is if I want to emerge -u world now, it tries to downgrade mjpegtools to r5, which doesn't compile. Guess I'll be unable to update world (stable) until r7 is marked stable. I was able to solve the problem in 14812 to get 1.6.0-r5 installed. To get r7 installed, I changed my CFLAGS from "-march=i686 -O3 -pipe" to "-march=i586 -O2 -pipe" and added -quicktime to USE. Portage 2.0.46-r9 (default-1.0, gcc-2.95.3, glibc-2.2.5-r7) ================================================================= System uname: 2.4.19-r1 i686 AMD Athlon(tm) Processor GENTOO_MIRRORS="http://gentoo.oregonstate.edu/ http://w ww.ibiblio.org/pub/Linux/distributions/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share /config /usr/X11R6/lib/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="/usr/local/portage" USE="cups bonobo cdr gnome-libs mozilla tcltk tetex x86 3dnow aalib -alsa apache 2 apm -arts avi berkdb crypt dvd encode -esd -fbcon gd gdbm ggi gif gnome gpm -g tk gtk2 imlib java jpeg -kde ldap libg++ libwww mikmod mmx motif mpeg mysql ncur ses nls nocardbus odbc oggvorbis opengl oss pam -pcmcia pdflib perl php png -pos tgres python -qt -qtmt -quicktime readline sdl slang slp socks5 spell ssl svga t cpd tiff truetype X xml xml2 -xmms xv" COMPILER="" CHOST="i686-pc-linux-gnu" CFLAGS="-march=i586 -O2 -pipe" CXXFLAGS="-march=i586 -O2 -pipe" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" FEATURES="sandbox ccache buildpkg" *** Bug 15287 has been marked as a duplicate of this bug. *** BTW, I worked around my particular problem described in 15388 (unable to update to gnome 2.2) by forcing portage to install mjpegtools-1.6.0-r7 (I removed the tilde in KEYWORDS in mjpegtools-1.6.0-r7.ebuild). r7 seems to compile fine. Transcoding of MPEG-2 streams to MPEG-2/MPEG-1 is supported through patches to the output drivers for mpeg2dec and ac3dec tools from the Linux Video and DVD Project. http://linuxvideo.org/ for all other Just look at bug 11163 which was fixed btw. qpkg -f /usr/bin/mpeg2decode media-video/mpeg2vidcodec * |