[FFmpeg-trac] #7521(build system:new): FFmpeg failed to build tests/api/api-h264-slice-test.c with error C2065 with MSVC

FFmpeg trac at avcodec.org
Mon Oct 29 10:11:17 EET 2018


#7521: FFmpeg failed to build tests/api/api-h264-slice-test.c with error C2065
with MSVC
-------------------------------------+-------------------------------------
             Reporter:  KarenHuang   |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:  build        |                  Version:  git-
  system                             |  master
             Keywords:  msvc         |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 Summary of the bug:
 FFmpeg failed to build tests/api/api-h264-slice-test.c(183): error C2065:
 'ssize_t': undeclared identifier when build with VS2017 on Windows. This
 issue can be reproduced from master revision fb7925b. I think 'ssize_t'
 type maybe undeclared, if we change 'ssize_t' to 'size_t' type and build
 pass. 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"
 9. .\tools\msys32\usr\bin\sh.exe --login -i -c "/D/ffmpeg/tools/test.sh"

 Actual result:
 tests/api/api-h264-slice-test.c(183): error C2065: 'ssize_t': undeclared
 identifier
 tests/api/api-h264-slice-test.c(183): error C2146: syntax error: missing
 ';' before identifier 'ret'
 tests/api/api-h264-slice-test.c(183): error C2065: 'ret': undeclared
 identifier
 tests/api/api-h264-slice-test.c(184): error C2065: 'ret': undeclared
 identifier
 tests/api/api-h264-slice-test.c(187): error C2065: 'ret': undeclared
 identifier
 tests/api/api-h264-slice-test.c(190): error C2065: 'ret': undeclared
 identifier
 tests/api/api-h264-slice-test.c(191): error C2065: 'ret': undeclared
 identifier
 tests/api/api-h264-slice-test.c(195): error C2065: 'ret': undeclared
 identifier
 make: *** [ffbuild/common.mak:60: tests/api/api-h264-slice-test.o] Error 2
 make: *** Waiting for unfinished jobs....

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


More information about the FFmpeg-trac mailing list