media-video/ffmpeg-0.4.9_p20080326 provides wrong include path in config (.pc) files. Reproducible: Always
Created attachment 154361 [details, diff] Patch probably fixing issue With this patch (may be broken) I can build swfdec 0.6.6 on my pc.
When I try to emerge media-video/ffmpeg-0.4.9_p20080326, it fails with the following: swscale.c: In function ‘sws_scale’: swscale.c:2555: warning: assignment from incompatible pointer type swscale.c: In function ‘sws_getCachedContext’: swscale.c:2969: warning: assignment discards qualifiers from pointer target type swscale.c: At top level: swscale_template.c:2926: warning: ‘swScale_C’ defined but not used i486-pc-linux-gnu-gcc -march=pentium4 -O2 -pipe -DBROKEN_RELOCATIONS -fomit-frame-pointer -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wcast-qual -Wwrite-strings -fno-math-errno -I"/var/tmp/portage/media-video/ffmpeg-0.4.9_p20080326/work/ffmpeg" -I"/var/tmp/portage/media-video/ffmpeg-0.4.9_p20080326/work/ffmpeg" -I"/var/tmp/portage/media-video/ffmpeg-0.4.9_p20080326/work/ffmpeg"/libavutil -I"/var/tmp/portage/media-video/ffmpeg-0.4.9_p20080326/work/ffmpeg"/libavcodec -I"/var/tmp/portage/media-video/ffmpeg-0.4.9_p20080326/work/ffmpeg"/libavformat -I"/var/tmp/portage/media-video/ffmpeg-0.4.9_p20080326/work/ffmpeg"/libswscale -I"/var/tmp/portage/media-video/ffmpeg-0.4.9_p20080326/work/ffmpeg"/libavdevice -I"/var/tmp/portage/media-video/ffmpeg-0.4.9_p20080326/work/ffmpeg"/libavfilter -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE -DHAVE_AV_CONFIG_H -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE -I"/var/tmp/portage/media-video/ffmpeg-0.4.9_p20080326/work/ffmpeg" -I"/var/tmp/portage/media-video/ffmpeg-0.4.9_p20080326/work/ffmpeg" -I"/var/tmp/portage/media-video/ffmpeg-0.4.9_p20080326/work/ffmpeg"/libavcodec -I"/var/tmp/portage/media-video/ffmpeg-0.4.9_p20080326/work/ffmpeg"/libavdevice -I"/var/tmp/portage/media-video/ffmpeg-0.4.9_p20080326/work/ffmpeg"/libavfilter -I"/var/tmp/portage/media-video/ffmpeg-0.4.9_p20080326/work/ffmpeg"/libavformat -I"/var/tmp/portage/media-video/ffmpeg-0.4.9_p20080326/work/ffmpeg"/libavutil -I"/var/tmp/portage/media-video/ffmpeg-0.4.9_p20080326/work/ffmpeg"/libpostproc -I"/var/tmp/portage/media-video/ffmpeg-0.4.9_p20080326/work/ffmpeg"/libswscale -march=pentium4 -O2 -pipe -DBROKEN_RELOCATIONS -fomit-frame-pointer -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wcast-qual -Wwrite-strings -fno-math-errno -c -o yuv2rgb.o yuv2rgb.c yuv2rgb.c: In function ‘yuv2rgb_get_func_ptr’: yuv2rgb.c:609: error: ‘yuv420_rgb32_MMX2’ undeclared (first use in this function) yuv2rgb.c:609: error: (Each undeclared identifier is reported only once yuv2rgb.c:609: error: for each function it appears in.) yuv2rgb.c:610: error: ‘yuv420_rgb24_MMX2’ undeclared (first use in this function) yuv2rgb.c:611: error: ‘yuv420_rgb16_MMX2’ undeclared (first use in this function) yuv2rgb.c:612: error: ‘yuv420_rgb15_MMX2’ undeclared (first use in this function) yuv2rgb.c:617: error: ‘yuv420_rgb32_MMX’ undeclared (first use in this function) yuv2rgb.c:618: error: ‘yuv420_rgb24_MMX’ undeclared (first use in this function) yuv2rgb.c:619: error: ‘yuv420_rgb16_MMX’ undeclared (first use in this function) yuv2rgb.c:620: error: ‘yuv420_rgb15_MMX’ undeclared (first use in this function) make[1]: *** [yuv2rgb.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/media-video/ffmpeg-0.4.9_p20080326/work/ffmpeg/libswscale' make: *** [lib] Error 2 * * ERROR: media-video/ffmpeg-0.4.9_p20080326 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2412: Called die * The specific snippet of code: * emake || die "make failed" * The die message: * make failed * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/media-video/ffmpeg-0.4.9_p20080326/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/media-video/ffmpeg-0.4.9_p20080326/temp/environment'. * Is this related to this bug, or should I start a new one? I'd rather not dupe if I can avoid it. Thanks Blessed be! Pappy
This patch worked for me for the problem listed below. Now, when will the update hit portage? Blessed be! Pappy
strangely enough, USE="mmx" solved this for me.
This patch worked for me as well on both x86 amd64 Cheerz
(In reply to comment #2) > When I try to emerge media-video/ffmpeg-0.4.9_p20080326, it fails with the > following: <skip> > i486-pc-linux-gnu-gcc -march=pentium4 -O2 -pipe -DBROKEN_RELOCATIONS > -fomit-frame-pointer -Wdeclaration-after-statement -Wall -Wno-switch > -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign > -Wcast-qual -Wwrite-strings -fno-math-errno > -I"/var/tmp/portage/media-video/ffmpeg-0.4.9_p20080326/work/ffmpeg" > -I"/var/tmp/portage/media-video/ffmpeg-0.4.9_p20080326/work/ffmpeg" > -I"/var/tmp/portage/media-video/ffmpeg-0.4.9_p20080326/work/ffmpeg"/libavutil > -I"/var/tmp/portage/media-video/ffmpeg-0.4.9_p20080326/work/ffmpeg"/libavcodec > -I"/var/tmp/portage/media-video/ffmpeg-0.4.9_p20080326/work/ffmpeg"/libavformat > -I"/var/tmp/portage/media-video/ffmpeg-0.4.9_p20080326/work/ffmpeg"/libswscale > -I"/var/tmp/portage/media-video/ffmpeg-0.4.9_p20080326/work/ffmpeg"/libavdevice > -I"/var/tmp/portage/media-video/ffmpeg-0.4.9_p20080326/work/ffmpeg"/libavfilter > -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE -DHAVE_AV_CONFIG_H > -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE > -I"/var/tmp/portage/media-video/ffmpeg-0.4.9_p20080326/work/ffmpeg" > -I"/var/tmp/portage/media-video/ffmpeg-0.4.9_p20080326/work/ffmpeg" > -I"/var/tmp/portage/media-video/ffmpeg-0.4.9_p20080326/work/ffmpeg"/libavcodec > -I"/var/tmp/portage/media-video/ffmpeg-0.4.9_p20080326/work/ffmpeg"/libavdevice > -I"/var/tmp/portage/media-video/ffmpeg-0.4.9_p20080326/work/ffmpeg"/libavfilter > -I"/var/tmp/portage/media-video/ffmpeg-0.4.9_p20080326/work/ffmpeg"/libavformat > -I"/var/tmp/portage/media-video/ffmpeg-0.4.9_p20080326/work/ffmpeg"/libavutil > -I"/var/tmp/portage/media-video/ffmpeg-0.4.9_p20080326/work/ffmpeg"/libpostproc > -I"/var/tmp/portage/media-video/ffmpeg-0.4.9_p20080326/work/ffmpeg"/libswscale > -march=pentium4 -O2 -pipe -DBROKEN_RELOCATIONS -fomit-frame-pointer > -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization > -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wcast-qual -Wwrite-strings > -fno-math-errno -c -o yuv2rgb.o yuv2rgb.c > yuv2rgb.c: In function ‘yuv2rgb_get_func_ptr’: > yuv2rgb.c:609: error: ‘yuv420_rgb32_MMX2’ undeclared (first use in this > function) > yuv2rgb.c:609: error: (Each undeclared identifier is reported only once > yuv2rgb.c:609: error: for each function it appears in.) > yuv2rgb.c:610: error: ‘yuv420_rgb24_MMX2’ undeclared (first use in this > function) > yuv2rgb.c:611: error: ‘yuv420_rgb16_MMX2’ undeclared (first use in this > function) > yuv2rgb.c:612: error: ‘yuv420_rgb15_MMX2’ undeclared (first use in this > function) > yuv2rgb.c:617: error: ‘yuv420_rgb32_MMX’ undeclared (first use in this > function) > yuv2rgb.c:618: error: ‘yuv420_rgb24_MMX’ undeclared (first use in this > function) > yuv2rgb.c:619: error: ‘yuv420_rgb16_MMX’ undeclared (first use in this > function) > yuv2rgb.c:620: error: ‘yuv420_rgb15_MMX’ undeclared (first use in this > function) > make[1]: *** [yuv2rgb.o] Error 1 > make[1]: Leaving directory > `/var/tmp/portage/media-video/ffmpeg-0.4.9_p20080326/work/ffmpeg/libswscale' > make: *** [lib] Error 2 I have exactly the same problem
*** Bug 229643 has been marked as a duplicate of this bug. ***
USE="mmx" solved this for me too
Does anyone get this package to work on arch x86_64? if USE=mmx, it fails with this error: i386/mpegvideo_mmx.c:61: Error: suffix or operands invalid for `movd' if USE=-mmx, it fails just like everyone else.
(In reply to comment #9) > Does anyone get this package to work on arch x86_64? > if USE=mmx, it fails with this error: > i386/mpegvideo_mmx.c:61: Error: suffix or operands invalid for `movd' > if USE=-mmx, it fails just like everyone else. > Yes, I have, but you REALLY don't want this version of ffmpeg. It causes compilation failures in at least three packages of which I know...perhaps even more. I am preparing to write a new bug report on my findings. I will post the other bug here when I get it done. Blessed be! Pappy
(In reply to comment #10) > Yes, I have, but you REALLY don't want this version of ffmpeg. It causes > compilation failures in at least three packages of which I know...perhaps even > more. You really DO want this version of ffmpeg if you want something up to date. Just make sure you use latest ~arch keyworded versions for packages that depend on ffmpeg. Mixing stable and testing is in this case not supposed to work.
*Everything* related building ffmpeg with/without MMX is *OFFTOPIC* for this issue!!! Issue just for pkgconfig files with wrong CFLAGS.
>>> Regenerating /etc/ld.so.cache... >>> media-video/ffmpeg-0.4.9_p20080326 merged. >>> Auto-cleaning packages... With patch from this issue, with mmx, on current ~amd64.
*** Bug 231157 has been marked as a duplicate of this bug. ***
This patch was rejected upstream, see http://svn.mplayerhq.hu/ffmpeg?view=rev&revision=12947
A different but related patch was proposed and accepted upstream, see http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/2008-July/049544.html If there are no arguments against, I propose to apply that patch to ffmpeg-0.4.9_p20080326
As Alexis explained to me, this last patch doesn't do anything for us, as it concerns uninstall. As the other patch has been rejected upstream, with the understanding that apps need to fix the way they include ffmpeg headers, I'm closing this bug with an upstream resolution.