[FFmpeg-devel] Linking failure with --disable-optimizations

Michael Niedermayer michaelni
Tue Apr 15 05:22:16 CEST 2008

On Mon, Apr 14, 2008 at 10:50:24PM -0400, Jeff Downs wrote:
> Hi,
> On x86_64, ffmpeg fails to compile when configured with 
> --disable-optimizations due to one minor issue.  This was previously 
> reported at least once:
> http://thread.gmane.org/gmane.comp.video.ffmpeg.devel/64090
> The problem is in cabac.h, decode_significance_8x8_x86().  This function 
> uses a table, last_coeff_flag_offset_8x8, via MANGLE.  This table is 
> only defined (static) in h264.c.  
> Linking fails because that symbol is undefined in other translation units 
> which include cabac.h
> This isn't a problem when compiled with optimization enabled because the 
> function using that table is never called except from h264.c;  
> optimization removes the function in other translation units.
> What is preferred way to fix this?
> Follow the comment above decode_significance_x86() and move these to 
> something under i386 which is only included from h264.c? 


> (and is that ok 
> given the death-threat part of the comment :)?

well, theres only one way to find out :)

Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The worst form of inequality is to try to make unequal things equal.
-- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080415/f1632f8a/attachment.pgp>

More information about the ffmpeg-devel mailing list