if this would be a duplicate bug, i'm sorry, but i didn't find the same one. OK, when i try to emerge one of the mjpegtools, i get the same error in both cases: it stops with an error message.
Created attachment 17159 [details] output of "emerge mjpegtools"
Created attachment 17160 [details] output of "emerge mjpegtools"
eh, something went wrong in filing this bug... sorry. again: output of "emerge mjpegtools" is: Calculating dependencies ## ...done! >>> emerge (1 of 1) media-video/mjpegtools-1.6.1 to / >>> md5 src_uri ;-) mjpegtools-1.6.1.tar.gz >>> md5 src_uri ;-) quicktime4linux-1.4-patched.tar.gz gcc libtool flag-o-matic base gcc libtool flag-o-matic base gcc libtool flag-o-matic base >>> Unpacking source... >>> Unpacking mjpegtools-1.6.1.tar.gz to /var/tmp/portage/mjpegtools-1.6.1/work >>> Unpacking quicktime4linux-1.4-patched.tar.gz to /var/tmp/portage/mjpegtools-1.6.1/work >>> Source unpacked. gcc libtool flag-o-matic base #[32;01m*#[0m Working directory: /var/tmp/portage/mjpegtools-1.6.1/work/mjpegtools-1.6.1... #[32;01m*#[0m Applying libtool-sed.patch... #[32;01m*#[0m Applying libtool-portage.patch... gtk X mmx avi #[32;01m*#[0m Building quicktime4linux Configuring libquicktime MMX: 1 DV: 0 Firewire: 0 > global_config gcc -c `./c_flags` atom.c -o i686/atom.o gcc -c `./c_flags` cmodel_default.c -o i686/cmodel_default.o gcc -c `./c_flags` cmodel_yuv420p.c -o i686/cmodel_yuv420p.o gcc -c `./c_flags` cmodel_yuv422.c -o i686/cmodel_yuv422.o gcc -c `./c_flags` codecs.c -o i686/codecs.o gcc -c `./c_flags` colormodels.c -o i686/colormodels.o gcc -c `./c_flags` ctab.c -o i686/ctab.o gcc -c `./c_flags` dinf.c -o i686/dinf.o gcc -c `./c_flags` dref.c -o i686/dref.o gcc -c `./c_flags` edts.c -o i686/edts.o gcc -c `./c_flags` elst.c -o i686/elst.o gcc -c `./c_flags` graphics.c -o i686/graphics.o gcc -c `./c_flags` hdlr.c -o i686/hdlr.o gcc -c `./c_flags` ima4.c -o i686/ima4.o gcc -c `./c_flags` jpeg.c -o i686/jpeg.o gcc -c `./c_flags` jpeg_old.c -o i686/jpeg_old.o gcc -c `./c_flags` libmjpeg.c -o i686/libmjpeg.o libmjpeg.c: In function `decompress_field': libmjpeg.c:572: warning: deprecated use of label at end of compound statement gcc -c `./c_flags` matrix.c -o i686/matrix.o gcc -c `./c_flags` mdat.c -o i686/mdat.o gcc -c `./c_flags` mdhd.c -o i686/mdhd.o gcc -c `./c_flags` mdia.c -o i686/mdia.o gcc -c `./c_flags` minf.c -o i686/minf.o gcc -c `./c_flags` moov.c -o i686/moov.o gcc -c `./c_flags` mvhd.c -o i686/mvhd.o gcc -c `./c_flags` plugin.c -o i686/plugin.o gcc -c `./c_flags` qtpng.c -o i686/qtpng.o gcc -c `./c_flags` quicktime.c -o i686/quicktime.o gcc -c `./c_flags` raw.c -o i686/raw.o gcc -c `./c_flags` rawaudio.c -o i686/rawaudio.o gcc -c `./c_flags` smhd.c -o i686/smhd.o gcc -c `./c_flags` stbl.c -o i686/stbl.o gcc -c `./c_flags` stco.c -o i686/stco.o gcc -c `./c_flags` stsc.c -o i686/stsc.o gcc -c `./c_flags` stsd.c -o i686/stsd.o gcc -c `./c_flags` stsdtable.c -o i686/stsdtable.o gcc -c `./c_flags` stss.c -o i686/stss.o gcc -c `./c_flags` stsz.c -o i686/stsz.o gcc -c `./c_flags` stts.c -o i686/stts.o gcc -c `./c_flags` tkhd.c -o i686/tkhd.o gcc -c `./c_flags` trak.c -o i686/trak.o gcc -c `./c_flags` twos.c -o i686/twos.o gcc -c `./c_flags` udta.c -o i686/udta.o gcc -c `./c_flags` ulaw.c -o i686/ulaw.o gcc -c `./c_flags` util.c -o i686/util.o gcc -c `./c_flags` vmhd.c -o i686/vmhd.o gcc -c `./c_flags` workarounds.c -o i686/workarounds.o gcc -c `./c_flags` yuv2.c -o i686/yuv2.o gcc -c `./c_flags` yuv4.c -o i686/yuv4.o gcc -c `./c_flags` yv12.c -o i686/yv12.o ar rcs i686/libquicktime.a i686/atom.o i686/cmodel_default.o i686/cmodel_yuv420p.o i686/cmodel_yuv422.o i686/codecs.o i686/colormodels.o i686/ctab.o i686/dinf.o i686/dref.o i686/edts.o i686/elst.o i686/graphics.o i686/hdlr.o i686/ima4.o i686/jpeg.o i686/jpeg_old.o i686/libmjpeg.o i686/matrix.o i686/mdat.o i686/mdhd.o i686/mdia.o i686/minf.o i686/moov.o i686/mvhd.o i686/plugin.o i686/qtpng.o i686/quicktime.o i686/raw.o i686/rawaudio.o i686/smhd.o i686/stbl.o i686/stco.o i686/stsc.o i686/stsd.o i686/stsdtable.o i686/stss.o i686/stsz.o i686/stts.o i686/tkhd.o i686/trak.o i686/twos.o i686/udta.o i686/ulaw.o i686/util.o i686/vmhd.o i686/workarounds.o i686/yuv2.o i686/yuv4.o i686/yv12.o #[32;01m*#[0m Building mjpegtools configure: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used. checking for a BSD-compatible install... /bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets ${MAKE}... yes checking for i686-pc-linux-gnu-strip... no checking for strip... strip checking whether to enable maintainer-specific portions of Makefiles... no checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking for gawk... (cached) gawk checking for i686-pc-linux-gnu-gcc... gcc checking for C compiler default output... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for style of include used by make... GNU checking dependency style of gcc... gcc3 checking for i686-pc-linux-gnu-g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... gcc3 checking for a BSD-compatible install... /bin/install -c checking whether ln -s works... yes checking whether byte ordering is bigendian... no checking for gcc option to accept ANSI C... none needed checking for an ANSI C-conforming const... yes checking for inline... inline checking for ld used by GCC... /usr/i686-pc-linux-gnu/bin/ld checking if the linker (/usr/i686-pc-linux-gnu/bin/ld) is GNU ld... yes checking for /usr/i686-pc-linux-gnu/bin/ld option to reload object files... -r checking for BSD-compatible nm... nm checking how to recognise dependant libraries... pass_all checking command to parse nm output... ok checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking for i686-pc-linux-gnu-ranlib... no checking for ranlib... ranlib checking for i686-pc-linux-gnu-strip... strip checking for objdir... .libs checking for gcc option to produce PIC... -fPIC checking if gcc PIC flag -fPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.lo... yes checking if gcc supports -fno-rtti -fno-exceptions... yes checking whether the linker (/usr/i686-pc-linux-gnu/bin/ld) supports shared libraries... yes checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking dynamic linker characteristics... GNU/Linux ld.so checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking whether -lc should be explicitly linked in... no creating libtool checking fenv.h usability... yes checking fenv.h presence... yes checking for fenv.h... yes checking for stdint.h... (cached) yes checking for inttypes.h... (cached) yes checking for sys/types.h... (cached) yes checking stdbool.h usability... yes checking stdbool.h presence... yes checking for stdbool.h... yes checking getopt.h usability... yes checking getopt.h presence... yes checking for getopt.h... yes checking alloca.h usability... yes checking alloca.h presence... yes checking for alloca.h... yes checking sys/soundcard.h usability... yes checking sys/soundcard.h presence... yes checking for sys/soundcard.h... yes checking for int... yes checking size of int... 4 checking for long... yes checking size of long... 4 checking for long long... yes checking size of long long... 8 checking for getopt_long... yes checking return type of signal handlers... void checking whether glibc supports 64-bit file offsets... yes checking for alpha architecture... no checking linux/videodev.h usability... yes checking linux/videodev.h presence... yes checking for linux/videodev.h... yes checking for glib-config... /usr/bin/glib-config checking for GLIB - version >= 1.2.0... yes checking for pthread_create in -lpthread... yes checking for pthread_attr_getstacksize... no checking for jpeg_start_compress in -ljpeg-mmx... yes checking for movtar-config... /usr/bin/movtar-config checking for gawk... (cached) gawk checking for movtar - version >= 0.0.2... yes checking for png_read_info in -lpng... yes checking for quicktime_open in -lquicktime... yes checking for avifile-config... /usr/bin/avifile-config checking for IVideoDecoder::GetDestFmt() in avifile... yes checking for dv_init in -ldv... yes checking for dv_decoder_free in -ldv... yes checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include checking for gethostbyname... yes checking for connect... yes checking for remove... yes checking for shmat... yes checking for IceConnectionNumber in -lICE... yes checking for __progname... yes checking for XF86DGAQueryExtension in -lXxf86dga... yes checking for gtk-config... /usr/bin/gtk-config checking for GTK - version >= 1.2.0... yes checking target system type... i686-pc-linux-gnu checking for sdl-config... /usr/bin/sdl-config checking for SDL - version >= 1.1.3... yes checking for Intel Pentium architecture (IA32)... yes checking for PowerPC architecture... no enable_simd_accel = XX checking for support for gcc-style register parameters on Intel... yes checking for support of MMX in assembly code... yes checking for nasm... /usr/bin/nasm checking x86 sub-architecture settings... -mcpu=i686 -march=i686 checking what warning flags to pass to the C compiler... -Wall -Wunused configure: creating ./config.status config.status: creating Makefile config.status: creating docs/Makefile config.status: creating lavtools/Makefile config.status: creating yuvdenoise/Makefile config.status: creating yuvfilters/Makefile config.status: creating mpeg2enc/Makefile config.status: creating aenc/Makefile config.status: creating mplex/Makefile config.status: creating scripts/Makefile config.status: creating utils/Makefile config.status: creating utils/altivec/Makefile config.status: creating mjpegtools-config config.status: creating mjpegtools.pc config.status: creating mjpegtools.spec config.status: creating config.h config.status: executing depfiles commands MJPEG tools 1.6.1 build configuration : - X86 Optimizations: - MMX/3DNow!/SSE enabled : true - cmov support enabled : true **************************************************************************** * NOTE: * * The resultant binaries will ***NOT*** run on a K6 or Pentium CPU * **************************************************************************** - video4linux recording/playback: true - software MJPEG playback : true - movtar playback/recording : true - Quicktime playback/recording : true - Quicktime source in : /var/tmp/portage/mjpegtools-1.6.1/work/quicktime4linux-1.4-patch - AVI MJPEG playback/recording : true (always) - libDV (digital video) support : true (>= v0.9.5) - AVIFILE divx encoding support : true - Gtk+ support for glav : true - glibc support for >2GB files : true make all-recursive [cut] gcc -mcpu=i686 -march=i686 -march=i686 -Wall -Wunused -o .libs/lav2wav lav2wav.o -L/var/tmp/portage/mjpegtools-1.6.1/work/mjpegtools-1.6.1/utils -lmjpegutils ./.libs/liblavfile.so -L/usr/lib -lmovtar -L/var/tmp/portage/mjpegtools-1.6.1/work/quicktime4linux-1.4-patch -L/var/tmp/portage/mjpegtools-1.6.1/work/quicktime4linux-1.4-patch/i686 -lquicktime -lpng -lz -L/lib -L/usr/include/jpeg-mmx /usr/lib/libjpeg.so -L/usr/local/lib /usr/lib/libdv.so -lm /usr/lib/libglib.so -lpthread -ldl ./.libs/liblavfile.so: undefined reference to `mpeg3demux_read_char_packet' ./.libs/liblavfile.so: undefined reference to `mpeg3audio_dolayer3' ./.libs/liblavfile.so: undefined reference to `mpeg3_new_layer' ./.libs/liblavfile.so: undefined reference to `mpeg3_layer_header' ./.libs/liblavfile.so: undefined reference to `mpeg3_delete_layer' ./.libs/liblavfile.so: undefined reference to `mpeg3demux_read_prev_char_packet' ./.libs/liblavfile.so: undefined reference to `mpeg3io_read_buffer' collect2: ld returned 1 exit status make[2]: *** [lav2wav] Error 1 make[2]: *** Waiting for unfinished jobs.... gcc -mcpu=i686 -march=i686 -march=i686 -Wall -Wunused -o .libs/lav2yuv lav2yuv.o lav_common.o -L/var/tmp/portage/mjpegtools-1.6.1/work/mjpegtools-1.6.1/utils -lmjpegutils ./.libs/liblavfile.so -L/usr/lib -lmovtar -L/var/tmp/portage/mjpegtools-1.6.1/work/quicktime4linux-1.4-patch -L/var/tmp/portage/mjpegtools-1.6.1/work/quicktime4linux-1.4-patch/i686 -lquicktime -lpng -lz -L/lib -L/usr/include/jpeg-mmx -L/usr/local/lib ./.libs/liblavjpeg.so /usr/lib/libjpeg.so /usr/lib/libdv.so -lm /usr/lib/libglib.so -lpthread -ldl ./.libs/liblavfile.so: undefined reference to `mpeg3demux_read_char_packet' ./.libs/liblavfile.so: undefined reference to `mpeg3audio_dolayer3' ./.libs/liblavfile.so: undefined reference to `mpeg3_new_layer' ./.libs/liblavfile.so: undefined reference to `mpeg3_layer_header' ./.libs/liblavfile.so: undefined reference to `mpeg3_delete_layer' ./.libs/liblavfile.so: undefined reference to `mpeg3demux_read_prev_char_packet' ./.libs/liblavfile.so: undefined reference to `mpeg3io_read_buffer' collect2: ld returned 1 exit status make[2]: *** [lav2yuv] Error 1 make[2]: Leaving directory `/var/tmp/portage/mjpegtools-1.6.1/work/mjpegtools-1.6.1/lavtools' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/mjpegtools-1.6.1/work/mjpegtools-1.6.1' make: *** [all] Error 2 !!! ERROR: media-video/mjpegtools-1.6.1 failed. !!! Function src_compile, Line 90, Exitcode 2 !!! (no error message) Output of "emerge info": Portage 2.0.49-r3 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.6.0-test4-mm4) ================================================================= System uname: 2.6.0-test4-mm4 i686 AMD Athlon(tm) XP 2000+ ccache version 2.2 [enabled] ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -O2 -pipe -fstack-protector -fomit-frame-pointer -fprefetch-loop-arrays -ffast-math -fmerge-all-constants -frerun-cse-after-loop -frerun-loop-opt -mfpmath=sse -fforce-addr" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=athlon-xp -O2 -pipe -fstack-protector -fomit-frame-pointer -fprefetch-loop-arrays -ffast-math -fmerge-all-constants -frerun-cse-after-loop -frerun-loop-opt -mfpmath=sse -fforce-addr" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs sandbox digest ccache buildpkg" GENTOO_MIRRORS="http://gentoo.inode.at/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ http://ftp.easynet.nl/mirror/gentoo/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://gentoo.linux.no/pub/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 oss crypt cups foomaticdb gif jpeg libg++ mad mikmod motif ncurses nls pdflib png quicktime truetype xml2 xv slang tetex tcltk X gpm tcpd pam python imlib oggvorbis qt opengl cdr acpi -clamav dga -dvb dvd -foreign-package -hyriand java readline -svga -imap jikes 3dnow nptl mmx sse -oav pic samba tiff wmf -apm ssl -sdl -kde ldap spell xmms -alsa -gdbm -berkdb -arts -libwww -perl -esd -gnome gtk -xinerama zlib gtk2 encode xvid mpeg avi faad" The error is the same, regardless if i try 1.6.0-r7 or 1.6.1. It also occurs if i set my CFLAGS to "-march=athlon-xp -O2 -pipe", so i think it has got nothing to do with CFLAGS. Sorry again for this confusing style of bug-reporting...
oh well, it seems like i found the problem, though i don't understand WHY it is a problem. i had quicktime4linux installed which mjpegtools obviously didn't like. i instead installed libquicktime and - voila - it emerged without any problems.
please give mjpegtools-1.6.1.90 a try.
oh yeah, this emerges fine. thanks for this ebuild. i have some additional notes: it also compiles if you take the replace-flags "-march=athlon*" "-march=i686" line out of the ebuild. i think this has only been introduced because of problems with -march=pentium4, right? i think it appeared when people reported -march=pentium4" not to work. but i'm not sure about this. it also seems to work correctly if you take this line out. from my point of view replace-flags "-march=athlon*" "-march=i686" isn't necessary. i have set my CFLAGS to: CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -fprefetch-loop-arrays -ffast-math -frerun-cse-after-loop -mfpmath=sse -fforce-addr" i know some are redundant and -mfpmath=sse is filtered out by the ebuild, but in general i can say that -march=athlon-xp -O2 works for me. revo
Ok, I didn't see any notes in the ebuild as to why those are filtered. I'll remove them. As far as this bug goes, thank you for confirming. Closing...