[FFmpeg-user] multiple definition of `_SDL_GetError'

Kyle kshawkeye at gmail.com
Sun Sep 11 07:00:41 CEST 2011


After working through this bug: 
https://ffmpeg.org/trac/ffmpeg/ticket/282 I ran into this:
/home/kyle/software/ffmpeg/packages/sdl/sdl-1.2.14-win32/lib/libSDL.a(SDL_error.o):SDL_error.c:(.text+0x477): 
multiple definition of `_SDL_GetError'
libavdevice/libavdevice.dll.a(d000060.o):(.text+0x0): first defined here
/home/kyle/software/ffmpeg/packages/sdl/sdl-1.2.14-win32/lib/libSDL.a(SDL_thread.o):SDL_thread.c:(.text+0x2c1): 
multiple definition of `_SDL_CreateThread'
libavdevice/libavdevice.dll.a(d000030.o):(.text+0x0): first defined here
/home/kyle/software/ffmpeg/packages/sdl/sdl-1.2.14-win32/lib/libSDL.a(SDL_thread.o):SDL_thread.c:(.text+0x411): 
multiple definition of `_SDL_WaitThread'
libavdevice/libavdevice.dll.a(d000168.o):(.text+0x0): first defined here

I'm not sure if this is related to the other bug or not.

The command:
grep -ir "SDL_GetError" *

returns:
Binary file ffplay.o matches
Binary file libavdevice/avdevice.dll matches
libavdevice/avdevice-53.def:    SDL_GetError @57
Binary file libavdevice/libavdevice.dll.a matches
Binary file libavdevice/sdl.o matches
Binary file libavdevice/avdevice-53.dll matches

The command:
make V=1

returns:
i686-w64-mingw32-gcc -Llibavcodec -Llibavdevice -Llibavfilter 
-Llibavformat -Llibavutil -Llibpostproc -Llibswscale 
-L/home/kyle/software/ffmpeg/packages/sdl/sdl-1.2.14-win32/lib 
-Wl,--as-needed -Wl,--warn-common 
-Wl,-rpath-link=libpostproc:libswscale:libavfilter:libavdevice:libavformat:libavcodec:libavutil 
-o ffplay_g.exe ffplay.o cmdutils.o -lavdevice -lavfilter -lavformat 
-lavcodec -lpostproc -lswscale -lavutil -lavicap32 -lpsapi -lole32 
-lstrmiids -luuid -lws2_32 
-L/home/kyle/software/ffmpeg/packages/sdl/sdl-1.2.14-win32/lib -lmingw32 
-lSDLmain -lSDL -lm -luser32 -lgdi32 -lwinmm -ldxguid -lm -lpthread 
-lpsapi  -L/home/kyle/software/ffmpeg/packages/sdl/sdl-1.2.14-win32/lib 
-lmingw32 -lSDLmain -lSDL -lm -luser32 -lgdi32 -lwinmm -ldxguid

SDL_GetError can be found in libSDL.a and libSDLmain.a

Any ideas?



More information about the ffmpeg-user mailing list