Build issues with latest Ubuntu

Dear devs,

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 am I doing wrong?

Vargo

You need to use an older version. Ideally, you should use Debian 9, which is the version that we ship.

Thanks I have another Debian 10 box. I guess I will have to setup an oldstable buildserver.

How can I update osmc to Debian 10? Any hints for me?

You can manually upgrade, but this is not something we can support.

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.

Thanks for the hint. I setup a jessie docker. It seems to be working now.