Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 340539 - media-video/ffmpeg-0.6_p25423 - libswscale/swscale.c:1269: error: implicit declaration of function 'sws_init_swScale_*'
Summary: media-video/ffmpeg-0.6_p25423 - libswscale/swscale.c:1269: error: implicit de...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
: 346325 369129 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-10-11 14:40 UTC by Albert W. Hopkins
Modified: 2011-12-17 14:28 UTC (History)
8 users (show)

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


Attachments
build.log (build.log,53.50 KB, text/plain)
2010-10-11 14:41 UTC, Albert W. Hopkins
Details
emerge --info (emerge_info.txt,3.67 KB, text/plain)
2010-10-12 17:20 UTC, Albert W. Hopkins
Details
emerge --info =media-video/ffmpeg-0.6_p25423 (emerge_info_media-video-ffmpeg-0.6_p25423.out,6.93 KB, text/plain)
2010-10-16 02:38 UTC, Jesse Adelman
Details
emerge -pqv =media-video/ffmpeg-0.6_p25423 (emerge_pqv_media-video-ffmpeg-0.6_p25423.out,426 bytes, text/plain)
2010-10-16 02:39 UTC, Jesse Adelman
Details
"Complete build log" (media-video-ffmpeg-0.6_p25423-20101016-022848.log,59.51 KB, text/plain)
2010-10-16 02:41 UTC, Jesse Adelman
Details
emerge --info ffmpeg for core 2 machine (ffmpeg.info,5.27 KB, text/plain)
2010-10-22 22:30 UTC, Thomas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Albert W. Hopkins 2010-10-11 14:40:13 UTC
I've tried with gcc-4.4* and gcc-4.5*

libswscale/swscale.c:1269: error: implicit declaration of function 'sws_init_swScale_3DNow'
libswscale/swscale.c:1270: error: 'swScale_3DNow' undeclared (first use in this function)
libswscale/swscale.c:1270: error: (Each undeclared identifier is reported only once
libswscale/swscale.c:1270: error: for each function it appears in.)

There seems to be a patch from http://comments.gmane.org/gmane.comp.video.ffmpeg.devel/116710

Though I have not tried it yet.

complete build log to follow.
Comment 1 Albert W. Hopkins 2010-10-11 14:41:20 UTC
Created attachment 250231 [details]
build.log
Comment 2 Jory A. Pratt gentoo-dev 2010-10-11 14:58:00 UTC
add emerge --info to any bug report you open please.
Comment 3 onip 2010-10-12 16:50:23 UTC
tried the patch on x86 and it made ffmpeg compile just fine.

I am on a hurry now, but if emerge --info or any other info is needed tomorrow I'll post.
Comment 4 Albert W. Hopkins 2010-10-12 17:20:31 UTC
Created attachment 250375 [details]
emerge --info
Comment 5 Thomas 2010-10-13 19:58:36 UTC
This error occurs only with USE="-3dnow -3dnowext".  On a Phenom II based machine with 3dnow enabled, ffmpeg compiles just fine.
Comment 6 Jesse Adelman 2010-10-16 02:37:52 UTC
I'll add the required logs and such as attachments below from my laptop. Though I am a systems administrator, the configuration of my laptop is in no way an indication of the care which I put into systems I care for for others. ;)
Comment 7 Jesse Adelman 2010-10-16 02:38:34 UTC
Created attachment 250793 [details]
emerge --info =media-video/ffmpeg-0.6_p25423
Comment 8 Jesse Adelman 2010-10-16 02:39:02 UTC
Created attachment 250795 [details]
emerge -pqv =media-video/ffmpeg-0.6_p25423
Comment 9 Jesse Adelman 2010-10-16 02:41:42 UTC
Created attachment 250797 [details]
"Complete build log"
Comment 10 David Kredba 2010-10-22 19:54:54 UTC
Try USE="-cpudetect" if you have cpudetect enabled. It worked for me with USE="-3dnow -3dnowext".
Comment 11 Jesse Adelman 2010-10-22 20:37:49 UTC
Re: #10 If that was for me, thanks for the suggestions, I'll just stick with the previous 0.6 release until this is resolved. I'm not in a rush to get rid of performance-boosting features on my old AMD Athlon XP procs that need all the help they can get. ;) Unless devs need me to test with and without the flags enabled and report, which I'll be happy to do.

(BTW, in the logs above, I show that I have -cpudetection already off; never had it on on my boxes. Also, comments #5 and #10 seem to have the exact opposite trouble reports... yet neither person has made a full bug report for either case, with logs and --info and such. "Works for Me(tm)" might be fun in IRC, but it isn't really good in a bug report where environment comparison is helpful...)
Comment 12 Thomas 2010-10-22 22:30:52 UTC
Created attachment 251649 [details]
emerge --info ffmpeg for core 2 machine
Comment 13 Thomas 2010-10-22 22:38:40 UTC
USE=-cpudetect solves the problem for me.
Comment 14 David J Cozatt 2010-11-06 03:09:55 UTC
On my machine -cpudetction does not disable mmx or mmxext both of which it will fail to build with if I disable them.I have not tried to disable 3dnow or 3dnowext 

emerge --info is in bug #344071 comment 3 but mine is AMD64 3200 

System uname:
Linux-2.6.36-gentoo-x86_64-AMD_Athlon-tm-_64_Processor_3200+-with-gentoo-2.0.1
Timestamp of tree: Fri, 05 Nov 2010 20:45:01 +0000
Comment 15 Christian Faulhammer (RETIRED) gentoo-dev 2010-12-03 19:17:45 UTC
*** Bug 346325 has been marked as a duplicate of this bug. ***
Comment 16 Bjoern Olausson 2010-12-12 21:34:50 UTC
Same for me with ffmpeg-0.6_p25767

It failes on my Intel Atom N270, Intel i7 920, Intel Q9300 and Intel Pentium M processor.

No matter if I enable mmx/mmxext or disable it.

Only removing "cpudetection" from the active useflags or _adding_ "3dnow" and "3dnowext" helps.

If you need more info, let me know.
The bug is 100% reproducible.

Cheers,
Bjoern
Comment 17 Jeroen Roovers (RETIRED) gentoo-dev 2011-05-31 20:34:59 UTC
*** Bug 369129 has been marked as a duplicate of this bug. ***
Comment 18 Alexis Ballier gentoo-dev 2011-12-17 14:28:19 UTC
should be fixed in 0.9/9999. please reopen if not