GNOME Bugzilla – Bug 640492
gst-ffmpeg wants ffmpeg to be ansi-strict, but it isn't
Last modified: 2012-05-02 05:45:43 UTC
gst-ffmepg attempts to compile ffmpeg with -std=c99, which makes gcc define __STRICT_ANSI__, which makes strcasecmp unavailable in string.h on MinGW, which makes ffmpeg compilation fail with: libavformat/avidec.c:293:13: error: implicit declaration of function 'strcasecmp' How to fix: A) Don't use -std=c99 (or anything else that leads to __STRICT_ANSI__ being defined) to build ffmpeg B) Kindly ask ffmpeg developers to not to use strcasecmp
-std=c99 is added by the ffmpeg configure script, not by GStreamer. I'm surprised there aren't upstream problems with this. In any case, it would smart to disable it in gst-ffmpeg.
Unfortuntely there's no configure parameter or anything to disable this.
Maybe we can somehow append a parameter to the CFLAGS that overrides this?
Or discreetly hitting it with a sed at autogen.sh time.
This issue doesn't come up anymore. I guess it was fixed in libav eventually.