Opened 4 years ago

Closed 4 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


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 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/"
  9. .\tools\msys32\usr\bin\sh.exe --login -i -c "/D/ffmpeg/tools/"

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
* Waiting for unfinished jobs....

Attachments (1)

log_x86_test.log (5.7 KB ) - added by KarenHuang 4 years ago.

Download all attachments as: .zip

Change History (4)

by KarenHuang, 4 years ago

Attachment: log_x86_test.log added


comment:1 by Carl Eugen Hoyos, 4 years ago

Component: build systemfate
Keywords: regression added
Priority: normalimportant

comment:2 by KarenHuang, 4 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 James, 4 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.