Re: undefined symbol: ff_gcd

Roland Roberts <[email protected]>
Newsgroups gmane.comp.video.kino.devel
Message-ID <[email protected]>
Dan Dennedy wrote:
> On Tue, Feb 10, 2009 at 9:45 AM, Roland Roberts <[email protected]> wrote:
>   
>> I'm running on Fedora 10, recently upgraded from Fedora 8. kino will no longer launch giving me this error:
>>
>> kino: symbol lookup error: /usr/lib/libavcodec.so.51: undefined symbol:
>> ff_gcd
>>     
>
> Kino does not directly use ff_gcd. I can not help you fix this
> problem. Send a patch if you are building yourself or complain to Fedora if you are using a package.
>   
The reference to rational.c was to the code below.  I am about to try to 
build with this change.  Yes, I was using a package, but I checked to 
see before I fired off a message.

271 roland> diff -uw kino-1.3.3/ffmpeg/libavutil/rational.c.~1~ 
kino-1.3.3/ffmpeg/libavutil/rational.c
--- kino-1.3.3/ffmpeg/libavutil/rational.c.~1~    2008-02-24 
01:05:10.000000000 -0500
+++ kino-1.3.3/ffmpeg/libavutil/rational.c    2009-02-10 
16:54:13.000000000 -0500
@@ -35,7 +35,7 @@
 int av_reduce(int *dst_nom, int *dst_den, int64_t nom, int64_t den, 
int64_t max){
     AVRational a0={0,1}, a1={1,0};
     int sign= (nom<0) ^ (den<0);
-    int64_t gcd= ff_gcd(FFABS(nom), FFABS(den));
+    int64_t gcd= av_gcd(FFABS(nom), FFABS(den));
 
     if(gcd){
         nom = FFABS(nom)/gcd;
@@ -66,7 +66,7 @@
         nom= den;
         den= next_den;
     }
-    assert(ff_gcd(a1.num, a1.den) <= 1U);
+    assert(av_gcd(a1.num, a1.den) <= 1U);
 
     *dst_nom = sign ? -a1.num : a1.num;
     *dst_den = a1.den;

-- 
		       PGP Key ID: 66 BC 3B CD
Roland B. Roberts, PhD                             RL Enterprises
[email protected]                            6818 Madeline Court
[email protected]                           Brooklyn, NY 11220


------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.