The ebuild in object doesn't build here, this is the output : [CUT] Making all in lavtools make[2]: Entering directory `/var/tmp/portage/mjpegtools-1.6.0-r7/work/mjpegtools-1.6.0/lavtools' source='editlist.c' object='editlist.lo' libtool=yes \ depfile='.deps/editlist.Plo' tmpdepfile='.deps/editlist.TPlo' \ depmode=gcc /bin/sh ../depcomp \ /bin/sh ../libtool --mode=compile powerpc-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/include -DG_LOG_DOMAIN=\"lavtools\" -DLAVPLAY_VERSION=\"1.6.0\" -I/usr/local/include -I /var/tmp/portage/mjpegtools-1.6.0-r7/work/quicktime4linux-1.4-patch -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 -O2 -pipe -mcpu=750 -mpowerpc-gfxopt -mmultiple -mstring -Wall -Wunused -c -o editlist.lo `test -f editlist.c || echo './'`editlist.c source='lav_io.c' object='lav_io.lo' libtool=yes \ depfile='.deps/lav_io.Plo' tmpdepfile='.deps/lav_io.TPlo' \ depmode=gcc /bin/sh ../depcomp \ /bin/sh ../libtool --mode=compile powerpc-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/include -DG_LOG_DOMAIN=\"lavtools\" -DLAVPLAY_VERSION=\"1.6.0\" -I/usr/local/include -I /var/tmp/portage/mjpegtools-1.6.0-r7/work/quicktime4linux-1.4-patch -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 -O2 -pipe -mcpu=750 -mpowerpc-gfxopt -mmultiple -mstring -Wall -Wunused -c -o lav_io.lo `test -f lav_io.c || echo './'`lav_io.c mkdir .libs powerpc-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/include -DG_LOG_DOMAIN=\"lavtools\" -DLAVPLAY_VERSION=\"1.6.0\" -I/usr/local/include -I /var/tmp/portage/mjpegtools-1.6.0-r7/work/quicktime4linux-1.4-patch -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 -O2 -pipe -mcpu=750 -mpowerpc-gfxopt -mmultiple -mstring -Wall -Wunused -c lav_io.c -Wp,-MD,.deps/lav_io.TPlo -fPIC -DPIC -o lav_io.o rm -f .libs/editlist.lo powerpc-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/include -DG_LOG_DOMAIN=\"lavtools\" -DLAVPLAY_VERSION=\"1.6.0\" -I/usr/local/include -I /var/tmp/portage/mjpegtools-1.6.0-r7/work/quicktime4linux-1.4-patch -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 -O2 -pipe -mcpu=750 -mpowerpc-gfxopt -mmultiple -mstring -Wall -Wunused -c editlist.c -Wp,-MD,.deps/editlist.TPlo -fPIC -DPIC -o editlist.o mv -f editlist.o .libs/editlist.lo powerpc-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/include -DG_LOG_DOMAIN=\"lavtools\" -DLAVPLAY_VERSION=\"1.6.0\" -I/usr/local/include -I /var/tmp/portage/mjpegtools-1.6.0-r7/work/quicktime4linux-1.4-patch -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 -O2 -pipe -mcpu=750 -mpowerpc-gfxopt -mmultiple -mstring -Wall -Wunused -c editlist.c -Wp,-MD,.deps/editlist.TPlo -o editlist.o >/dev/null 2>&1 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 .libs/editlist.lo editlist.lo make[2]: Leaving directory `/var/tmp/portage/mjpegtools-1.6.0-r7/work/mjpegtools-1.6.0/lavtools' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/mjpegtools-1.6.0-r7/work/mjpegtools-1.6.0' make: *** [all] Error 2 !!! ERROR: media-video/mjpegtools-1.6.0-r7 failed. !!! Function src_compile, Line 93, Exitcode 2 !!! (no error message) Commenting out the sed lines in the ebuild [here dv_decoder_new has 3 int as parms (0.98) : libdv/dv.h:extern dv_decoder_t *dv_decoder_new (int add_ntsc_setup, int clamp_luma, int clamp_chroma);] it builds that part, but breaks after, with that output : libdv/dv.h:extern dv_decoder_t *dv_decoder_new (int add_ntsc_setup, int clamp_luma, int clamp_chroma); Making all in yuvdenoise make[2]: Entering directory `/var/tmp/portage/mjpegtools-1.6.0-r7/work/mjpegtools-1.6.0/yuvdenoise' source='main.c' object='main.o' libtool=no \ depfile='.deps/main.Po' tmpdepfile='.deps/main.TPo' \ depmode=gcc /bin/sh ../depcomp \ powerpc-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I ../utils -I .. -funroll-all-loops -finline-functions -ffast-math -frerun-cse-after-loop -frerun-loop-opt -fexpensive-optimizations -fmove-all-movables -Werror -O2 -pipe -mcpu=750 -mpowerpc-gfxopt -mmultiple -mstring -Wall -Wunused -c `test -f main.c || echo './'`main.c source='deinterlace.c' object='deinterlace.o' libtool=no \ depfile='.deps/deinterlace.Po' tmpdepfile='.deps/deinterlace.TPo' \ depmode=gcc /bin/sh ../depcomp \ powerpc-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I ../utils -I .. -funroll-all-loops -finline-functions -ffast-math -frerun-cse-after-loop -frerun-loop-opt -fexpensive-optimizations -fmove-all-movables -Werror -O2 -pipe -mcpu=750 -mpowerpc-gfxopt -mmultiple -mstring -Wall -Wunused -c `test -f deinterlace.c || echo './'`deinterlace.c source='denoise.c' object='denoise.o' libtool=no \ depfile='.deps/denoise.Po' tmpdepfile='.deps/denoise.TPo' \ depmode=gcc /bin/sh ../depcomp \ powerpc-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I ../utils -I .. -funroll-all-loops -finline-functions -ffast-math -frerun-cse-after-loop -frerun-loop-opt -fexpensive-optimizations -fmove-all-movables -Werror -O2 -pipe -mcpu=750 -mpowerpc-gfxopt -mmultiple -mstring -Wall -Wunused -c `test -f denoise.c || echo './'`denoise.c cc1: warnings being treated as errors main.c: In function `process_commandline': main.c:300: warning: comparison is always true due to limited range of data typemake[2]: *** [main.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory `/var/tmp/portage/mjpegtools-1.6.0-r7/work/mjpegtools-1.6.0/yuvdenoise' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/mjpegtools-1.6.0-r7/work/mjpegtools-1.6.0' make: *** [all] Error 2 !!! ERROR: media-video/mjpegtools-1.6.0-r7 failed. !!! Function src_compile, Line 93, Exitcode 2 !!! (no error message) Attached a little stupid patch to make it work. emerge info output: Portage 2.0.46-r12 (default-ppc-1.0, gcc-2.95.3, glibc-2.2.5-r4,2.2.5-r7) ================================================================= System uname: 2.4.20-ppc-crypto ppc GENTOO_MIRRORS="ftp://www.ibiblio.org/pub/Linux/distributions/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/mnt/nrisx02/gentoo-distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="" USE="png ppc gnome-libs arts tetex aalib guile scanner oss slang readline gpm berkdb gdbm tcpd pam libwww ssl mitshm perl python esd gif imlib sdl oggvorbis gnome gtk X qt kde motif mozilla truetype vte alsa bonobo cdr crypt dga dvd evo fbcon flash gb gphoto2 gtkhtml imap java jpeg mpeg nls opengl -pcmcia pdflib quicktime wmf xml xml2 xv zlib spell -doc" COMPILER="" CHOST="powerpc-unknown-linux-gnu" CFLAGS="-O2 -pipe -mcpu=750 -mpowerpc-gfxopt -mmultiple -mstring" CXXFLAGS="-O2 -pipe -mcpu=750 -mpowerpc-gfxopt -mmultiple -mstring" ACCEPT_KEYWORDS="ppc ~ppc" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="ccache"
Created attachment 8128 [details] yuvdenoise-getopt.patch
Thanks Lapo Tested it and comitted to cvs, should be avail on rsync in 30 mninutes or so. Good catch :)
Lapo tells me there are still some gcc 2.95 issues here, re-opening
This is not a gcc2.95 problem, but a gcc3. With gcc3x the linker get confused by the ancient hacked version of libdv included in quicktime4linux-1.4-patched (needed by mjpegtools and compiled by this ebuild) which is not used. Here's a quick fix, it works ok on my gcc3 machine and my gcc 2.95 ppc. --- /usr/portage/media-video/mjpegtools/mjpegtools-1.6.0-r7.ebuild 2003-02-19 02:43:28.000000000 +0100 +++ mjpegtools-1.6.0-r7.ebuild 2003-02-19 02:44:10.000000000 +0100 @@ -47,13 +47,6 @@ sed -e "s:\"jpeg/jpeglib.h\":<jpeglib.h>:" libmjpeg.h.orig > libmjpeg.h cp jpeg_old.h jpeg_old.h.orig sed -e "s:\"jpeg/jpeglib.h\":<jpeglib.h>:" jpeg_old.h.orig > jpeg_old.h - - # Don't remove this - contact phoen][x <phoenix@gentoo.org> if you have problems with it. - cd ${S}/lavtools - mv lav_common.c lav_common.c.old - mv lav_io.c lav_io.c.old - sed -e "s/dv_decoder_new(0,0,0)\;/dv_decoder_new()\;/" lav_common.c.old > lav_common.c - sed -e "s/dv_decoder_new(0,0,0)\;/dv_decoder_new()\;/" lav_io.c.old > lav_io.c fi use ppc && ( cd ${S}; patch -p1 < ${FILESDIR}/1.6.0-r7-ppc.patch || die ) } @@ -87,6 +80,9 @@ cd ${WORKDIR}/quicktime4linux-1.4-patch ./configure || die make || die + # removing the ancient versions of libdv included in quicktime4linux package + # which are not needed for our purpose and confuse the linker + rm -fr libdv* cd ${S} fi
Lapo: Is this patch valid? On irc you told me there were still issues.. any news on this yet?
Don't know if this is the same bug, but I'm also getting a failure with this output: g++ -mcpu=athlon -O3 -pipe -fomit-frame-pointer -o .libs/lav2divx lav2divx.o lav_common.o -Wl,-rpath -Wl,/usr/lib -L/var/tmp/portage/mjpegtools-1.6.0-r7/work/mjpegtools-1.6.0/utils -lmjpegutils ./.libs/liblavfile.so -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 /usr/lib/libquicktime.so -lpthread -ldl -lpthread -lpng -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/liblavjpeg.so /usr/lib/libjpeg.so /usr/lib/libdv.so /usr/lib/libpopt.so -lm -ldl -lpthread -lm /usr/lib/libglib.so -lpthread -ldl /usr/lib/libaviplay.so -lz /usr/lib/libSDL.so -lartsc /usr/kde/3.1/lib/libartsc.so /usr/lib/libesd.so /usr/lib/libaudiofile.so /usr/lib/libasound.so -lm -lvga -lSM -lICE -lXinerama -lXv -lXxf86vm -lXxf86dga -lXi -lXext -lX11 -lXft /usr/lib/libfreetype.so -lfontconfig -lXrender -lpthread -lnsl -ldl -lm -Wl,--rpath -Wl,/usr/kde/3.1/lib yuv2divx.o(.text+0xb26): In function `main': : undefined reference to `avm::CImage::CImage[in-charge](avm::BitmapInfo const*, unsigned char const*, bool)' yuv2divx.o(.text+0xe4f): In function `main': : undefined reference to `avm::CreateWriteFile(char const*, long long, avm::IStream::StreamFormat, int, int)' yuv2divx.o(.text+0xe7b): In function `main': : undefined reference to `avm::CodecInfo::match(unsigned, avm::CodecInfo::Media, avm::CodecInfo const*, avm::CodecInfo::Direction)' yuv2divx.o(.text+0xe9f): In function `main': : undefined reference to `avm::CodecSetAttr(avm::CodecInfo const&, char const*, int)' yuv2divx.o(.text+0xeb9): In function `main': : undefined reference to `avm::CodecSetAttr(avm::CodecInfo const&, char const*, int)' yuv2divx.o(.text+0xed3): In function `main': : undefined reference to `avm::CodecSetAttr(avm::CodecInfo const&, char const*, int)' yuv2divx.o(.text+0x18c7): In function `main': : undefined reference to `avm::CImage::~CImage [in-charge]()' yuv2divx.o(.text+0x1c9d): In function `main': : undefined reference to `avm::CImage::~CImage [in-charge]()' yuv2divx.o(.text+0x1eae): In function `listCodecs()': : undefined reference to `avm::CreateDecoderVideo(BITMAPINFOHEADER const&, int, int, char const*)' collect2: ld returned 1 exit status make[2]: *** [yuv2divx] Error 1 make[2]: *** Waiting for unfinished jobs.... lav2divx.o(.text+0x9fc): In function `main': : undefined reference to `avm::CImage::CImage[in-charge](avm::BitmapInfo const*, unsigned char const*, bool)' lav2divx.o(.text+0xc0c): In function `main': : undefined reference to `avm::CreateWriteFile(char const*, long long, avm::IStream::StreamFormat, int, int)' lav2divx.o(.text+0xc38): In function `main': : undefined reference to `avm::CodecInfo::match(unsigned, avm::CodecInfo::Media, avm::CodecInfo const*, avm::CodecInfo::Direction)' lav2divx.o(.text+0xc5c): In function `main': : undefined reference to `avm::CodecSetAttr(avm::CodecInfo const&, char const*, int)' lav2divx.o(.text+0xc76): In function `main': : undefined reference to `avm::CodecSetAttr(avm::CodecInfo const&, char const*, int)' lav2divx.o(.text+0xc90): In function `main': : undefined reference to `avm::CodecSetAttr(avm::CodecInfo const&, char const*, int)' lav2divx.o(.text+0x12d5): In function `main': : undefined reference to `avm::CImage::~CImage [in-charge]()' lav2divx.o(.text+0x17c4): In function `main': : undefined reference to `avm::CImage::~CImage [in-charge]()' lav2divx.o(.text+0x19ce): In function `listCodecs()': : undefined reference to `avm::CreateDecoderVideo(BITMAPINFOHEADER const&, int, int, char const*)' collect2: ld returned 1 exit status make[2]: *** [lav2divx] Error 1 make[2]: Leaving directory `/var/tmp/portage/mjpegtools-1.6.0-r7/work/mjpegtools-1.6.0/lavtools' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/mjpegtools-1.6.0-r7/work/mjpegtools-1.6.0' make: *** [all] Error 2 !!! ERROR: media-video/mjpegtools-1.6.0-r7 failed. !!! Function src_compile, Line 105, Exitcode 2 !!! (no error message) goldfish mjpegtools # emerge info Portage 2.0.47-r10 (, gcc-3.2.2, glibc-2.2.5-r2,2.3.1-r4) ================================================================= System uname: 2.4.19-gentoo-r10 i686 AMD Duron(tm) Processor GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo/ http://gentoo.oregonstate.edu http://gentoo.linux.no/ http://www.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 /opt/jakarta/tomcat/conf /usr/kde/3.1/share/config /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="" USE="x86 oss 3dnow apm encode jpeg libg++ mikmod ncurses nls quicktime gtkhtml arts guile mysql gpm esd oggvorbis kde motif dvd acpi alsa gnome gtk avi cdr crypt cups dga doc fbcon evo gb gd berkdb bonobo gif gphoto2 gdbm gtk2 imlib innodb java ldap libgda libwww mmx mozilla mpeg opengl pam pdflib perl pic png python postgres qt qtmt readline samba sasl scanner sdl slang slp spell sse ssl svga tcltk tcpd tetex tiff truetype wmf X xml2 xmms xv zlib zeo" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-mcpu=athlon -O3 -pipe -fomit-frame-pointer" CXXFLAGS="-mcpu=athlon -O3 -pipe -fomit-frame-pointer" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.uk.gentoo.org/gentoo-portage/" FEATURES="sandbox ccache" I've tried re-emerging libdv to no avail. Let me know if you want me to put this in as a new bug.
Lapo: Is that patch still valid? Gerk left a while ago, and I'm currently running around trying to ping() and clean up bugs where I can. Dan: I don't know if that's the same problem, if you haven't, try upgrading your toolkit (gcc, binutils and such) to the latest versions.
Yes, it is. The patch must be applied, the sed lines removed, and the libdv rm'ed as in my comment #4 to make it compile here. BTW, perhaps there are some quirks about quicktime too, but I don't really have time to check it myself rightnow.
Created attachment 11741 [details, diff] libavifile patch I also have trouble with this package. Some undefined reference in main.c. It seems that precompiler doesnt evaluate the right version of avifile librairies (0.7 on my box). Actually it doesnt find version.h of avifile include. Here is a very simple patch (see second attachment) I wish it could help :/]
I get the same problem as Dan. The supplied patch by Lapo didn't seem to change this for me. I also tried remerging libdv but with no avail.
I'll have a look at this
I'm a little hesitant to remove the sed lines (as per phoenix comment) Phoenix left, and some people are having problems with this on non-ppc, so I'm going to reassign to bugwranglers and cc me. I seem to have no problems compiling/linking the current version on ppc. The newest I'm unable to emerge due to altivec troubles.
Ok - thanks for looking into it. I know others have done an 'emerge info' - not sure if this helps but here it is: Portage 2.0.48-r1 (default-x86-1.4, gcc-3.2.2, glibc-2.2.5-r4,2.3.1-r4) ================================================================= System uname: 2.4.19-gentoo-r7 i686 AMD Athlon(tm) XP 1600+ GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.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/kde/3.1/share/config /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="x86 apm avi encode gif jpeg libg++ libwww mad mikmod ncurses nls png quicktime truetype xv zlib gdbm berkdb slang readline svga sdl tcpd pam imlib gtk cdr scanner ruby python perl kde qt 3dnow mmx ssl postgres X dga opengl mozilla crypt arts spell sse xml2 oss oggvorbis pdflib xmms mpeg -gnome -motif -java -gpm -tcltk -cups" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-mcpu=athlon-xp -mmmx -O2 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4" CXXFLAGS="-O2 -mcpu=i686 -pipe" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache"
Mind trying mjpegtools-1.6.1.90? We want to move folks to this version so everything else can be compatible.
Closing. If problems persist with the new version, please reopen.