Build error on Ubuntu: Please port gnulib fseterr.c to your platform!
Description
I tried to build libvlc-all and pushlish to maven using on Ubuntu 20.04.4 LTS.
The terminal shows the following error when I tried to run buildsystem/compile.sh
lib/fseterr.c: In function 'fseterr':
lib/fseterr.c:77:3: error: #error "Please port gnulib fseterr.c to your platform! Look at the definitions of ferror and clearerr on your system, then report this to bug-gnulib."
77 | #error "Please port gnulib fseterr.c to your platform! Look at the definitions of ferror and clearerr on your system, then report this to bug-gnulib."
| ^~~~~
make[3]: *** [Makefile:3461: lib/fseterr.o] Error 1
make[3]: Leaving directory '/home/tungpx/Desktop/DEVELOP/VLC/vlc-android/vlc/extras/tools/bison'
make[2]: *** [Makefile:4522: all-recursive] Error 1
make[2]: Leaving directory '/home/tungpx/Desktop/DEVELOP/VLC/vlc-android/vlc/extras/tools/bison'
make[1]: *** [Makefile:2625: all] Error 2
make[1]: Leaving directory '/home/tungpx/Desktop/DEVELOP/VLC/vlc-android/vlc/extras/tools/bison'
make: *** [/home/tungpx/Desktop/DEVELOP/VLC/vlc-android/vlc/extras/tools/tools.mak:358: .buildbison] Error 2
make: *** Waiting for unfinished jobs....
System info
Ubuntu 20.04.4 LTS
Required dependencies version:
$ sudo apt install automake ant autopoint cmake build-essential libtool-bin patch pkg-config protobuf-compiler ragel subversion unzip git openjdk-8-jre openjdk-8-jdk flex python wget
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'python-is-python2' instead of 'python'
automake is already the newest version (1:1.16.1-4ubuntu6).
autopoint is already the newest version (0.19.8.1-10build1).
cmake is already the newest version (3.16.3-1ubuntu1).
flex is already the newest version (2.6.4-6.2).
libtool-bin is already the newest version (2.4.6-14).
patch is already the newest version (2.7.6-6).
pkg-config is already the newest version (0.29.1-0ubuntu4).
unzip is already the newest version (6.0-25ubuntu1).
ant is already the newest version (1.10.7-1).
protobuf-compiler is already the newest version (3.6.1.3-2ubuntu5).
python-is-python2 is already the newest version (2.7.17-4).
ragel is already the newest version (6.10-1build1).
build-essential is already the newest version (12.8ubuntu1.1).
git is already the newest version (1:2.25.1-1ubuntu3.3).
wget is already the newest version (1.20.3-1ubuntu2).
openjdk-8-jdk is already the newest version (8u312-b07-0ubuntu1~20.04).
openjdk-8-jre is already the newest version (8u312-b07-0ubuntu1~20.04).
subversion is already the newest version (1.13.0-3ubuntu0.1).
0 upgraded, 0 newly installed, 0 to remove and 36 not upgraded.
NDK version 21.4.7075529
Expected behavior
-
Build libvlc-all.
-
Could you share your development specification?
Actual behavior
Build error
lib/fseterr.c: In function 'fseterr':
lib/fseterr.c:77:3: error: #error "Please port gnulib fseterr.c to your platform! Look at the definitions of ferror and clearerr on your system, then report this to bug-gnulib."
77 | #error "Please port gnulib fseterr.c to your platform! Look at the definitions of ferror and clearerr on your system, then report this to bug-gnulib."
| ^~~~~
make[3]: *** [Makefile:3461: lib/fseterr.o] Error 1
Full log: log.txt
It's OK on Ubuntu 18.04
Steps to reproduce
- Follow the build step on readme https://code.videolan.org/videolan/vlc-android#build-1
Edited by XuanTung95