[FFmpeg-devel] [BUG] Linking error when using Intel's compiler

Panagiotis Issaris takis.issaris
Thu Jun 14 18:23:53 CEST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I'm not suggesting to get the attached patch applied. But, it was the
only thing that stopped Intel's C compiler (version 10.0) from linking
ffmpeg_g, which is why I'm posting it here.

It seems weird to me though, the symbol is being referenced from within
the same file, and still... removing the static fixes the linking error.
An ICC bug?

...
/opt/intel/cc/10.0.023/bin/icc -L"/mnt/build/ffmpeg-icc"/libavformat
- -L"/mnt/build/ffmpeg-icc"/libavcodec -L"/mnt/build/ffmpeg-icc"/libavutil
- -Wl,--warn-common  -rdynamic -export-dynamic -Wl,--as-needed
- -Wl,-rpath-link,"/mnt/build/ffmpeg-icc"/libavcodec
- -Wl,-rpath-link,"/mnt/build/ffmpeg-icc"/libavformat
- -Wl,-rpath-link,"/mnt/build/ffmpeg-icc"/libavutil -g -o ffmpeg_g
ffmpeg.o cmdutils.o -lavformat -lavcodec -lavutil -lm -lz
icc: command line warning #10156: ignoring option '-export'; no argument
required
IPO link: Warning unknown option '--as-needed'.
/mnt/build/ffmpeg-icc/libavcodec/libavcodec.a(h264.o): In function
`decode_cabac_residual':
/usr/local/src/ffg/ffmpeg/libavcodec/h264.c:5769: undefined reference to
`last_coeff_flag_offset_8x8'
make: *** [ffmpeg_g] Error 1


 h264.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

With friendly regards,
Takis
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGcWuZ9kOxLuzz4CkRAkIKAJ4iIg1ZMFRDP2ZUNUU3P8JjT24+/ACeJqmR
jnOSXsfF3Q/7IGdA0LkVNXI=
=ccZX
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pi-20070614T162156-ffmpeg-icc_linking_fix.diff
Type: text/x-patch
Size: 518 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070614/db388f1f/attachment.bin>



More information about the ffmpeg-devel mailing list