Summary: | media-libs/mjpegtools-1.6.0-r7 doesn't build (patch) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Lapo Calamandrei <l_calamandrei> |
Component: | Current packages | Assignee: | Television related Applications in Gentoo's Portage <media-tv> |
Status: | RESOLVED FIXED | ||
Severity: | major | CC: | kabutor, mholzer, pvdabeel |
Priority: | High | ||
Version: | 1.4_rc4 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
yuvdenoise-getopt.patch
libavifile patch |
Description
Lapo Calamandrei
2003-02-10 11:34:45 UTC
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. |