I am trying to build osmc with latest Ubuntu 20.04 but I am getting following error:
/usr/include -MT fseek.o -MD -MP -MF $depbase.Tpo -c -o fseek.o fseek.c &&
mv -f $depbase.Tpo $depbase.Po
freadahead.c: In function ‘freadahead’:
freadahead.c:91:3: error: #error “Please port gnulib freadahead.c to your platform! Look at the definition of fflush, fread, ungetc on your system, then report this to bug-gnulib.”
91 | #error “Please port gnulib freadahead.c to your platform! Look at the definition of fflush, fread, ungetc on your system, then report this to bug-gnulib.”
| ^~~~~
What I do when I need a build environment in a special version etc., is to fire up a docker container with the required. I then build whatever I need inside that container.