[Libav-user] ff_log2_tab defined multiple times in the fmpeg 1.1 libraries, bug or feature ??

Lars Hammarstrand lars.hammarstrand at gmail.com
Wed Feb 13 18:14:15 CET 2013


Hello Carl!

Since I'm using the google mail "in-line" reply I'm not sure if it will
produce top-posts or not, please let me know if that's the case.

Regarding the link problem, I'm not sure how you manage to link
ffplay without this problem but i'll have a look. In general doing
"#include ../common/source.c" with global variables is probably a bad idea
if you want to avoid duplicate symbols in "public" libraries. I can't
locate this construction in older ffmpeg libraries and I've haven't seen
any complaints about it in the past. Any idea why this thing was introduced
in the first time?  /Regards, Lars.

But in the meantime, here is the link statement:


Ld
/Users/lars/Library/Developer/Xcode/DerivedData/XBMC-cowrsziekmorhqejlbarbpswsqbh/Build/Products/Debug/XBMC
normal i386
    cd /Users/lars/src/xbmc-12.0
    setenv MACOSX_DEPLOYMENT_TARGET 10.6

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++
-arch i386 -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk
-L/Users/lars/Library/Developer/Xcode/DerivedData/XBMC-cowrsziekmorhqejlbarbpswsqbh/Build/Products/Debug
-L/Users/lars/src/xbmc-12.0 -L/Users/lars/src/xbmc-12.0/lib/libRTV
-L/Users/lars/src/xbmc-12.0/lib/libXDAAP
-L/Users/lars/src/xbmc-12.0/lib/cmyth/libcmyth
-L/Users/lars/src/xbmc-12.0/lib/cmyth/librefmem
-L/Users/lars/src/xbmc-12.0/lib/libsquish
-L/Users/lars/src/xbmc-12.0/lib/SlingboxLib
-L/Users/lars/src/xbmc-12.0/xbmc/interfaces/json-rpc
-L/Users/lars/src/xbmc-12.0/lib/ffmpeg/libavcodec
-L/Users/lars/src/xbmc-12.0/lib/ffmpeg/libavutil
-L/Users/lars/src/xbmc-12.0/lib/ffmpeg/libavformat
-L/Users/lars/src/xbmc-12.0/lib/ffmpeg/libavfilter
-L/Users/lars/src/xbmc-12.0/lib/ffmpeg/libavdevice
-L/Users/lars/src/xbmc-12.0/lib/ffmpeg/libswresample
-L/Users/lars/src/xbmc-12.0/lib/ffmpeg/libpostproc
-L/Users/lars/src/xbmc-12.0/lib/ffmpeg/libswscale
-L/Users/lars/src/xbmc-12.0/xbmc/interfaces/python
-L/Users/lars/src/xbmc-12.0/xbmc/interfaces/legacy
-F/Users/lars/Library/Developer/Xcode/DerivedData/XBMC-cowrsziekmorhqejlbarbpswsqbh/Build/Products/Debug
-filelist
/Users/lars/Library/Developer/Xcode/DerivedData/XBMC-cowrsziekmorhqejlbarbpswsqbh/Build/Intermediates/XBMC.build/Debug/XBMC.build/Objects-normal/i386/XBMC.LinkFileList
-mmacosx-version-min=10.6 -headerpad_max_install_names -all_load
-L/Users/Shared/xbmc-depends/macosx10.8_i386/lib -lssh -llzo2 -lpcre
-lpcrecpp -lfribidi -lcdio -lfreetype -lfontconfig -lsqlite3 -lsamplerate
-ltinyxml -lmicrohttpd -lyajl -ljpeg -lcrypto -lgcrypt -lavdevice
-lavfilter -lavcodec -lavformat -lpostproc -lavutil -lswresample -lswscale
-lGLEW -lSDL -lSDL_mixer -lsmbclient -lpython2.6 -ltag
-L/Users/Shared/xbmc-depends/macosx10.8_i386/lib/mysql -lmysqlclient
-fobjc-link-runtime -lrtv -lxdaap -lsquish
/Users/lars/src/xbmc-12.0/lib/SlingboxLib/SlingboxLib.a -lz -lm -lbz2
-lxml2 -liconv -lncurses -framework ApplicationServices -framework
AudioUnit -framework AudioToolbox -framework Cocoa -framework CoreAudio
-framework CoreVideo -framework CoreServices -framework DiskArbitration
-framework IOKit -framework IOSurface -framework OpenGL -framework
QuartzCore -framework CoreFoundation -framework SystemConfiguration -o
/Users/lars/Library/Developer/Xcode/DerivedData/XBMC-cowrsziekmorhqejlbarbpswsqbh/Build/Products/Debug/XBMC

duplicate symbol _ff_log2_tab in:
    /Users/lars/src/xbmc-12.0/lib/ffmpeg/libavcodec/libavcodec.a(log2_tab.o)

/Users/lars/src/xbmc-12.0/lib/ffmpeg/libavformat/libavformat.a(log2_tab.o)
duplicate symbol _ff_log2_tab in:
    /Users/lars/src/xbmc-12.0/lib/ffmpeg/libavcodec/libavcodec.a(log2_tab.o)
    /Users/lars/src/xbmc-12.0/lib/ffmpeg/libavutil/libavutil.a(log2_tab.o)
duplicate symbol _ff_log2_tab in:
    /Users/lars/src/xbmc-12.0/lib/ffmpeg/libavcodec/libavcodec.a(log2_tab.o)

/Users/lars/src/xbmc-12.0/lib/ffmpeg/libswresample/libswresample.a(log2_tab.o)
ld: 3 duplicate symbols for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20130213/ba5d67b9/attachment.html>


More information about the Libav-user mailing list