GNOME Bugzilla – Bug 440107
[libavcodec] linking fails on MinGW
Last modified: 2008-05-06 13:07:43 UTC
random is defined in libiberty.a when using MinGW. Patch attached below.
Created attachment 88528 [details] [review] link against libiberty.a when MinGW is used
I get the same problem, except that it also complains about undefined references to _gettimeofday, which doesn't seem to be provided by libiberty. Linking against libiberty only fixes the _random and _srandom missing references for me. The workaround I used to fix this is to comment out the tests in gst-libs/ext/ffmpeg/libavcodec/Makefile.am
Created attachment 88618 [details] [review] Patch to disable libavcodec tests
gettimeofday is provided by libiberty that the MinGW installer (5.1.3) installs
It seems like the candidate branch of mingw32's libiberty provides gettimeofday(), where as the current branch doesn't. To check this, grab the gcc-core package in the current branch of mingw, and the binutils package in the candidate branch, extract libiberty from each one of those packages (it seems like libiberty moved from gcc-core to binutils) and check the symbols.
ali , can you try with a fresh checkout of latest svn ? If there are issues in ffmpeg => file bug against ffmpeg
Closing this bug report as no further information has been provided. Please feel free to reopen this bug if you can provide the information asked for. Thanks!