Skip to content

libdvdread needs to check for availability of strerror_r (n/a in MinGW)

I tried to build VLC in an MSYS2/MinGW environment, automated by the media-autobuild suite, but the compilation failed:

lib/libdvdread.a(dvd_input.o):dvd_input.c:(.text+0x28c): undefined reference to `strerror_r'

The make log of libdvdread revealed the following warning:

../src/dvd_input.c: In function 'file_open':
../src/dvd_input.c:203:8: warning: implicit declaration of function 'strerror_r'; did you mean 'strerror_s'? [-Wimplicit-function-declaration]
  203 |     if(strerror_r(errno, buf, 256) != 0)
      |        ^~~~~~~~~~
      |        strerror_s

ab-suite.make.log

Edited by LigH-de
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information