After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 640492 - gst-ffmpeg wants ffmpeg to be ansi-strict, but it isn't
gst-ffmpeg wants ffmpeg to be ansi-strict, but it isn't
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-libav
git master
Other Windows
: Normal blocker
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2011-01-25 00:14 UTC by LRN
Modified: 2012-05-02 05:45 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description LRN 2011-01-25 00:14:17 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
Comment 1 David Schleef 2011-03-30 19:36:08 UTC
-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.
Comment 2 Sebastian Dröge (slomo) 2011-04-08 12:20:39 UTC
Unfortuntely there's no configure parameter or anything to disable this.
Comment 3 Tim-Philipp Müller 2011-04-08 12:26:27 UTC
Maybe we can somehow append a parameter to the CFLAGS that overrides this?
Comment 4 Vincent Penquerc'h 2012-02-03 11:37:47 UTC
Or discreetly hitting it with a sed at autogen.sh time.
Comment 5 LRN 2012-05-02 05:45:43 UTC
This issue doesn't come up anymore. I guess it was fixed in libav eventually.