[FFmpeg-trac] #7555(fate:new): FFmpeg failed to build libavutil/avsscanf.c with error C2061 with MSVC

FFmpeg trac at avcodec.org
Mon Nov 19 11:56:11 EET 2018


#7555: FFmpeg failed to build libavutil/avsscanf.c with error C2061 with MSVC
-------------------------------------+-------------------------------------
             Reporter:  KarenHuang   |                     Type:  defect
               Status:  new          |                 Priority:  important
            Component:  fate         |                  Version:  git-
             Keywords:  msvc         |  master
  regression                         |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 Summary of the bug:
 FFmpeg failed to build libavutil/avsscanf.c(42): error C2061: syntax
 error: identifier 'off_t' when build with VS2017 on Windows. This issue
 can be first reproduced from master revision 4b30726. I think 'off_t' type
 maybe undeclared. Could you please help take a look at this? Thank you!

 Steps to reproduce:
 1.git clone ‚Äčhttps://github.com/FFmpeg/FFmpeg.git D:\FFmpeg\src
 2.Open a VS 2017 x86 prompt and browse to D:\FFmpeg
 3.set FFMPEG_TARGET=i386
 4.set FFMPEG_SRC_PATH=D:\FFmpeg/src
 5.set FFMPEG_FATE_PATH=../fate-suite/
 6.set PATH=D:\FFmpeg\tools;%PATH%
 7.set MSYS2_PATH_TYPE=inherit
 8..\tools\msys32\usr\bin\sh.exe --login -i -c "/D/ffmpeg/tools/build.sh"

 Actual result:
 libavutil/avsscanf.c(42): error C2061: syntax error: identifier 'off_t'
 libavutil/avsscanf.c(45): error C2059: syntax error: '}'
 libavutil/avsscanf.c(56): error C2143: syntax error: missing ')' before
 '*'
 libavutil/avsscanf.c(56): error C2143: syntax error: missing '{' before
 '*'
 libavutil/avsscanf.c(56): error C2059: syntax error: ')'
 libavutil/avsscanf.c(57): error C2054: expected '(' to follow 'f'
 libavutil/avsscanf.c(62): error C2143: syntax error: missing ')' before
 '*'
 libavutil/avsscanf.c(62): error C2143: syntax error: missing '{' before
 '*'
 libavutil/avsscanf.c(62): error C2059: syntax error: 'type'
 libavutil/avsscanf.c(62): error C2059: syntax error: ')'
 libavutil/avsscanf.c(78): error C2143: syntax error: missing ')' before
 '*'
 libavutil/avsscanf.c(78): error C2143: syntax error: missing '{' before
 '*'
 libavutil/avsscanf.c(78): error C2059: syntax error: ')'
 libavutil/avsscanf.c(79): error C2054: expected '(' to follow 'f'
 libavutil/avsscanf.c(85): error C2143: syntax error: missing ')' before
 '*'
 libavutil/avsscanf.c(85): error C2143: syntax error: missing '{' before
 '*'
 libavutil/avsscanf.c(85): error C2146: syntax error: missing ';' before
 identifier 'lim'
 libavutil/avsscanf.c(85): error C2059: syntax error: ')'
 libavutil/avsscanf.c(86): error C2054: expected '(' to follow 'lim'
 libavutil/avsscanf.c(96): error C2143: syntax error: missing ')' before
 '*'
 libavutil/avsscanf.c(96): error C2143: syntax error: missing '{' before
 '*'
 libavutil/avsscanf.c(96): error C2059: syntax error: ')'
 libavutil/avsscanf.c(97): error C2054: expected '(' to follow 'f'
 libavutil/avsscanf.c(138): error C2143: syntax error: missing ')' before
 '*'
 libavutil/avsscanf.c(138): error C2143: syntax error: missing '{' before
 '*'
 libavutil/avsscanf.c(138): error C2059: syntax error: 'type'
 libavutil/avsscanf.c(138): error C2059: syntax error: ')'
 libavutil/avsscanf.c(214): error C2143: syntax error: missing ')' before
 '*'
 libavutil/avsscanf.c(214): error C2143: syntax error: missing '{' before
 '*'
 libavutil/avsscanf.c(214): error C2059: syntax error: 'type'
 libavutil/avsscanf.c(214): error C2059: syntax error: ')'
 libavutil/avsscanf.c(247): error C2143: syntax error: missing ')' before
 '*'
 libavutil/avsscanf.c(247): error C2143: syntax error: missing '{' before
 '*'
 libavutil/avsscanf.c(247): error C2059: syntax error: 'type'
 libavutil/avsscanf.c(247): error C2059: syntax error: ')'
 libavutil/avsscanf.c(498): error C2143: syntax error: missing ')' before
 '*'
 libavutil/avsscanf.c(498): error C2143: syntax error: missing '{' before
 '*'
 libavutil/avsscanf.c(498): error C2059: syntax error: 'type'
 libavutil/avsscanf.c(498): error C2059: syntax error: ')'
 libavutil/avsscanf.c(611): error C2143: syntax error: missing ')' before
 '*'
 libavutil/avsscanf.c(611): error C2143: syntax error: missing '{' before
 '*'
 libavutil/avsscanf.c(611): error C2059: syntax error: 'type'
 libavutil/avsscanf.c(611): error C2059: syntax error: ')'
 libavutil/avsscanf.c(728): error C2143: syntax error: missing ')' before
 '*'
 libavutil/avsscanf.c(728): error C2143: syntax error: missing '{' before
 '*'
 libavutil/avsscanf.c(728): error C2059: syntax error: 'type'
 libavutil/avsscanf.c(728): error C2059: syntax error: ')'
 libavutil/avsscanf.c(955): error C2065: 'FFFILE': undeclared identifier
 libavutil/avsscanf.c(955): error C2146: syntax error: missing ';' before
 identifier 'f'
 libavutil/avsscanf.c(955): error C2059: syntax error: '{'
 libavutil/avsscanf.c(960): warning C4013: 'ff_vfscanf' undefined; assuming
 extern returning int
 make: *** [ffbuild/common.mak:60: libavutil/avsscanf.o] Error 2

--
Ticket URL: <https://trac.ffmpeg.org/ticket/7555>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list