#7521(build system:new): FFmpeg failed to build tests/api/api-h264-slice-test.c with error C2065 with MSVC
#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
#7521: FFmpeg failed to build tests/api/api-h264-slice-test.c with error C2065 with MSVC -----------------------------------------+-------------------------------- Reporter: KarenHuang | Owner: Type: defect | Status: new Priority: important | Component: fate Version: git-master | Resolution: Keywords: msvc regression | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -----------------------------------------+-------------------------------- Changes (by cehoyos): * keywords: msvc => msvc regression * priority: normal => important * component: build system => fate -- Ticket URL: <https://trac.ffmpeg.org/ticket/7521#comment:1> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#7521: FFmpeg failed to build tests/api/api-h264-slice-test.c with error C2065 with MSVC -----------------------------------------+-------------------------------- Reporter: KarenHuang | Owner: Type: defect | Status: new Priority: important | Component: fate Version: git-master | Resolution: Keywords: msvc regression | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -----------------------------------------+-------------------------------- Comment (by KarenHuang): Hello, any updates here? This issue can still be reproduced on d98fb55 commit.Could some one help to look at this? Thanks you in advanced! -- Ticket URL: <https://trac.ffmpeg.org/ticket/7521#comment:2> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#7521: FFmpeg failed to build tests/api/api-h264-slice-test.c with error C2065 with MSVC -------------------------------------+------------------------------------- Reporter: KarenHuang | Owner: Type: defect | Status: closed Priority: important | Component: fate Version: git-master | Resolution: fixed Keywords: msvc | Blocked By: regression | Reproduced by developer: 0 Blocking: | Analyzed by developer: 0 | -------------------------------------+------------------------------------- Changes (by jamrial): * status: new => closed * resolution: => fixed Comment: Should be fixed in 8096f52049acb1861645815a54435b9fd2d5e77a -- Ticket URL: <https://trac.ffmpeg.org/ticket/7521#comment:3> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
participants (1)
-
FFmpeg