[FFmpeg-trac] #413(undetermined:new): error: implicit declaration of function 'strtok_r' [-Werror=implicit-function-declaration]
FFmpeg
trac at avcodec.org
Tue Aug 23 07:53:44 CEST 2011
#413: error: implicit declaration of function 'strtok_r' [-Werror=implicit-
function-declaration]
--------------------------+-----------------------
Reporter: KSHawkEye | Type: defect
Status: new | Priority: critical
Component: undetermined | Version: git
Keywords: | Blocked By:
Blocking: | Reproduced: 0
Analyzed: 0 |
--------------------------+-----------------------
I'm having troubles compiling FFmpeg for Windows. This error comes up:
{{{
/home/kyle/software/ffmpeg/source/ffmpeg-git/libavfilter/asrc_abuffer.c:
In function 'init':
/home/kyle/software/ffmpeg/source/ffmpeg-
git/libavfilter/asrc_abuffer.c:259:5: error: implicit declaration of
function 'strtok_r' [-Werror=implicit-function-declaration]
/home/kyle/software/ffmpeg/source/ffmpeg-
git/libavfilter/asrc_abuffer.c:259:9: warning: assignment makes pointer
from integer without a cast [enabled by default]
/home/kyle/software/ffmpeg/source/ffmpeg-
git/libavfilter/asrc_abuffer.c:271:5: warning: assignment makes pointer
from integer without a cast [enabled by default]
/home/kyle/software/ffmpeg/source/ffmpeg-
git/libavfilter/asrc_abuffer.c:272:5: warning: assignment makes pointer
from integer without a cast [enabled by default]
/home/kyle/software/ffmpeg/source/ffmpeg-
git/libavfilter/asrc_abuffer.c:273:5: warning: assignment makes pointer
from integer without a cast [enabled by default]
/home/kyle/software/ffmpeg/source/ffmpeg-
git/libavfilter/asrc_abuffer.c:274:5: warning: assignment makes pointer
from integer without a cast [enabled by default]
cc1: some warnings being treated as errors
}}}
Here is what V=1 shows:
{{{
i686-w64-mingw32-gcc -I. -I/home/kyle/software/ffmpeg/source/ffmpeg-git/
-D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-U__STRICT_ANSI__ -DHAVE_AV_CONFIG_H -std=c99 -fno-common -fomit-frame-
pointer -g -Wdeclaration-after-statement -Wall -Wno-parentheses -Wno-
switch -Wno-format-zero-length -Wdisabled-optimization -Wpointer-arith
-Wredundant-decls -Wno-pointer-sign -Wcast-qual -Wwrite-strings -Wtype-
limits -Wundef -Wmissing-prototypes -Wno-pointer-to-int-cast -O3 -fno-
math-errno -fno-signed-zeros -fno-tree-vectorize -Werror=implicit-
function-declaration -Werror=missing-prototypes -MMD -MF
libavfilter/asrc_abuffer.d -MT libavfilter/asrc_abuffer.o -c -o
libavfilter/asrc_abuffer.o /home/kyle/software/ffmpeg/source/ffmpeg-
git/libavfilter/asrc_abuffer.c
}}}
Here is my configure:
{{{
cross_prefix=i686-w64-mingw32- target_os=mingw32 arch=x86 pkg_config=pkg-
config ../source/ffmpeg-git/configure --enable-gpl --enable-version3
--enable-runtime-cpudetect
}}}
I've giving this critical priority because FFmpeg is unable to be built
with MinGW-w64.
I'm using the latest FFmpeg.
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/413>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list