Opened 6 years ago
Closed 6 years ago
#7521 closed defect (fixed)
FFmpeg failed to build tests/api/api-h264-slice-test.c with error C2065 with MSVC
Reported by: | KarenHuang | Owned by: | |
---|---|---|---|
Priority: | important | Component: | fate |
Version: | git-master | Keywords: | msvc regression |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
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:
- git clone https://github.com/FFmpeg/FFmpeg.git D:\FFmpeg\src
- Open a VS 2017 x86 prompt and browse to D:\FFmpeg
- set FFMPEG_TARGET=i386
- set FFMPEG_SRC_PATH=D:\FFmpeg/src
- set FFMPEG_FATE_PATH=../fate-suite/
- set PATH=D:\FFmpeg\tools;%PATH%
- set MSYS2_PATH_TYPE=inherit
- .\tools\msys32\usr\bin\sh.exe --login -i -c "/D/ffmpeg/tools/build.sh"
- .\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....
Attachments (1)
Change History (4)
by , 6 years ago
Attachment: | log_x86_test.log added |
---|
comment:1 by , 6 years ago
Component: | build system → fate |
---|---|
Keywords: | regression added |
Priority: | normal → important |
comment:2 by , 6 years ago
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!
comment:3 by , 6 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Should be fixed in 8096f52049acb1861645815a54435b9fd2d5e77a
log_x86_test