6129 questions

7410 answers

11975 comments

7757 members

0 votes
715 views 0 comments
by

RUT240 SDK build fail on ubuntu 19.10

RUT2XX_R_GPL_00.01.10.tar.gz

With error

gcc  -I.   -I/data/dmitri/devel/openwrtr/ru240/SDK/staging_dir/host/include -I/data/dmitri/devel/openwrtr/ru240/SDK/staging_dir/host/usr/include  -O2 -I/data/dmitri/devel/openwrtr/ru240/SDK/staging_dir/host/include -I/data/dmitri/devel/openwrtr/ru240/SDK/staging_dir/host/usr/include -MT freadahead.o -MD -MP -MF $depbase.Tpo -c -o freadahead.o freadahead.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."
      |   ^~~~~
make[8]: *** [Makefile:1837: freadahead.o] Error 1
make[8]: Leaving directory '/data/dmitri/devel/openwrtr/ru240/SDK/build_dir/host/m4-1.4.17/lib'
make[7]: *** [Makefile:1602: all] Error 2
make[7]: Leaving directory '/data/dmitri/devel/openwrtr/ru240/SDK/build_dir/host/m4-1.4.17/lib'
make[6]: *** [Makefile:1506: all-recursive] Error 1
make[6]: Leaving directory '/data/dmitri/devel/openwrtr/ru240/SDK/build_dir/host/m4-1.4.17'
make[5]: *** [Makefile:1461: all] Error 2
make[5]: Leaving directory '/data/dmitri/devel/openwrtr/ru240/SDK/build_dir/host/m4-1.4.17'
make[4]: *** [Makefile:29: /data/dmitri/devel/openwrtr/ru240/SDK/build_dir/host/m4-1.4.17/.built] Error 2
make[4]: Leaving directory '/data/dmitri/devel/openwrtr/ru240/SDK/tools/m4'
make[3]: *** [tools/Makefile:123: tools/m4/compile] Error 2
make[3]: Leaving directory '/data/dmitri/devel/openwrtr/ru240/SDK'
make[2]: *** [tools/Makefile:121: /data/dmitri/devel/openwrtr/ru240/SDK/staging_dir/target-mips_34kc_uClibc-0.9.33.2/stamp/.tools_install_yynyynynynyyyyyyyyyyyyyyyyyyynyyyyynnyyynyyynnnyy] Error 2
make[2]: Leaving directory '/data/dmitri/devel/openwrtr/ru240/SDK'
make[1]: *** [Makefile:95: world] Error 2
make[1]: Leaving directory '/data/dmitri/devel/openwrtr/ru240/SDK'
make: *** [/data/dmitri/devel/openwrtr/ru240/SDK/include/toplevel.mk:183: world] Error 2

Can you help ?
Thanks.

1 Answer

0 votes
by

Hello, please use Ubuntu 16.04 for firmware compilation as recommended in the README file:

## Prerequisites
    Make sure you're running a supported Linux distribution.
    We recommend using Ubuntu 16.04 LTS (http://www.ubuntu.com/download/desktop).
    You might succeed with other distributions.

Also, take a look at this Wiki page for compilation instructions:

https://wiki.teltonika-networks.com/view/Software_Development_Kit_instructions

Best answer