Cygwin Compilation gives stdio.h __sgetc_r error
All, When I try to compile ffmpeg in cygwin I get the following error: CC ? ? ?libavfilter/allfilters.o In file included from ./libavutil/common.h:34, ? ? ? ? ? ? ? ? from ./libavutil/avutil.h:71, ? ? ? ? ? ? ? ? from libavfilter/avfilter.h:25, ? ? ? ? ? ? ? ? from libavfilter/allfilters.c:22: /usr/include/stdio.h:517: error: no previous prototype for '__sgetc_r' make: *** [libavfilter/allfilters.o] Error 1 Here are the configuration options: ./configure --enable-static --enable-postproc --enable-avfilter --enable-avfilter-lavf --enable-gpl --disable-indevs --disable-outdevs --disable-ffplay --disable-ffserver --enable-swscale --enable-debug=3 --disable-devices --enable-runtime-cpudetect --enable-hardcoded-tables Any ideas? Thanks Sen
Go to config.mak change the following line: CFLAGS= -Wno-missing-prototypes -Wno-error=missing-prototypes? -std=c99 -fno-common -fomit-frame-pointer -g3 -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wcast-qual -Wwrite-strings -Wundef -Wno-missing-prototypes -O3 -fno-math-errno -fno-tree-vectorize -Werror=implicit -Wno-error=missing-prototypes or remove missing-prototypes --- On Fri, 12/3/10, sun_radha at yahoo.com <sun_radha at yahoo.com> wrote: From: sun_radha at yahoo.com <sun_radha at yahoo.com> Subject: [FFmpeg-user] Cygwin Compilation gives stdio.h __sgetc_r error To: ffmpeg-user at mplayerhq.hu Date: Friday, 12 March, 2010, 16:37 All, When I try to compile ffmpeg in cygwin I get the following error: CC ? ? ?libavfilter/allfilters.o In file included from ./libavutil/common.h:34, ? ? ? ? ? ? ? ? from ./libavutil/avutil.h:71, ? ? ? ? ? ? ? ? from libavfilter/avfilter.h:25, ? ? ? ? ? ? ? ? from libavfilter/allfilters.c:22: /usr/include/stdio.h:517: error: no previous prototype for '__sgetc_r' make: *** [libavfilter/allfilters.o] Error 1 Here are the configuration options: ./configure --enable-static --enable-postproc --enable-avfilter --enable-avfilter-lavf --enable-gpl --disable-indevs --disable-outdevs --disable-ffplay --disable-ffserver --enable-swscale --enable-debug=3 --disable-devices --enable-runtime-cpudetect --enable-hardcoded-tables Any ideas? Thanks Sen ? ? ? _______________________________________________ ffmpeg-user mailing list ffmpeg-user at mplayerhq.hu https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
Hi, On Fri, Mar 12, 2010 at 12:07 PM, sun_radha at yahoo.com <sun_radha at yahoo.com> wrote:
All,
When I try to compile ffmpeg in cygwin I get the following error:
CC ? ? ?libavfilter/allfilters.o
In file included from ./libavutil/common.h:34,
?? ? ? ? ? ? ? ? from ./libavutil/avutil.h:71,
?? ? ? ? ? ? ? ? from libavfilter/avfilter.h:25,
?? ? ? ? ? ? ? ? from libavfilter/allfilters.c:22:
/usr/include/stdio.h:517: error: no previous prototype for '__sgetc_r'
make: *** [libavfilter/allfilters.o] Error 1
Here are the configuration options:
./configure --enable-static --enable-postproc --enable-avfilter
--enable-avfilter-lavf --enable-gpl --disable-indevs --disable-outdevs
--disable-ffplay --disable-ffserver --enable-swscale --enable-debug=3
--disable-devices --enable-runtime-cpudetect --enable-hardcoded-tables
Any ideas?
I cannot reproduce your problem with my Cygwin 1.7.1 / gcc 4.3.4 / ld 2.19.51. Maybe 'make distclean' and rebuild. Regards, V?ctor
participants (2)
-
sun_radha@yahoo.com -
victorpaesa@googlemail.com