Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 223701 - media-video/ffmpeg-0.4.9_p20080326 provides wrong include path in config (.pc) files
Summary: media-video/ffmpeg-0.4.9_p20080326 provides wrong include path in config (.pc...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
: 229643 231157 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-05-26 15:07 UTC by Maxim Britov
Modified: 2008-08-01 11:22 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch probably fixing issue (ffmpeg-include-configpc-fix.patch,267 bytes, patch)
2008-05-26 15:09 UTC, Maxim Britov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Maxim Britov 2008-05-26 15:07:31 UTC
media-video/ffmpeg-0.4.9_p20080326 provides wrong include path in config (.pc) files.

Reproducible: Always
Comment 1 Maxim Britov 2008-05-26 15:09:24 UTC
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.
Comment 2 Bob Raitz 2008-06-22 09:00:50 UTC
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
Comment 3 Bob Raitz 2008-06-24 19:23:05 UTC
This patch worked for me for the problem listed below. Now, when will the update hit portage?

Blessed be!
Pappy
Comment 4 Johannes Steidl 2008-06-24 22:34:06 UTC
strangely enough, USE="mmx" solved this for me.
Comment 5 A Sotirov 2008-06-25 17:30:54 UTC
This patch worked for me as well on both x86 amd64

Cheerz
Comment 6 Andrey Grozin gentoo-dev 2008-06-26 06:05:46 UTC
(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

Comment 7 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-06-26 21:18:49 UTC
*** Bug 229643 has been marked as a duplicate of this bug. ***
Comment 8 Alexandros Halatsis 2008-06-27 14:55:31 UTC
USE="mmx" solved this for me too
Comment 9 Matheus Izvekov 2008-06-29 07:26:58 UTC
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.
Comment 10 Bob Raitz 2008-06-30 07:48:47 UTC
(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
Comment 11 Ben de Groot (RETIRED) gentoo-dev 2008-06-30 09:54:00 UTC
(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. 
Comment 12 Maxim Britov 2008-06-30 10:42:20 UTC
*Everything* related building ffmpeg with/without MMX is *OFFTOPIC* for this issue!!! Issue just for pkgconfig files with wrong CFLAGS.
Comment 13 Maxim Britov 2008-06-30 11:53:16 UTC
>>> 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.
Comment 14 Ben de Groot (RETIRED) gentoo-dev 2008-07-08 14:19:24 UTC
*** Bug 231157 has been marked as a duplicate of this bug. ***
Comment 15 Ben de Groot (RETIRED) gentoo-dev 2008-07-09 10:01:45 UTC
This patch was rejected upstream, see http://svn.mplayerhq.hu/ffmpeg?view=rev&revision=12947
Comment 16 Ben de Groot (RETIRED) gentoo-dev 2008-07-10 02:28:30 UTC
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
Comment 17 Ben de Groot (RETIRED) gentoo-dev 2008-08-01 11:22:26 UTC
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.