Hello Guys,
I am facing the below error while I am installing OpenWRT-LEDE-4.2.1.0 in my Ubuntu 20.04.5 LTS Desktop.
<pre>gcc -I. -I/media/teq/6b282e2f-57e9-4bf5-976e-aa23855e9e47/Router/PO_Documents/ST_Router/AX1800/OpenWRT_4210/Build/mtk-openwrt-lede-4.2.1.0-20200612-d2c8e460/mtk-openwrt-lede-4.2.1.0/staging_dir/host/include -I/media/teq/6b282e2f-57e9-4bf5-976e-aa23855e9e47/Router/PO_Documents/ST_Router/AX1800/OpenWRT_4210/Build/mtk-openwrt-lede-4.2.1.0-20200612-d2c8e460/mtk-openwrt-lede-4.2.1.0/staging_dir/host/usr/include -O2 -I/media/teq/6b282e2f-57e9-4bf5-976e-aa23855e9e47/Router/PO_Documents/ST_Router/AX1800/OpenWRT_4210/Build/mtk-openwrt-lede-4.2.1.0-20200612-d2c8e460/mtk-openwrt-lede-4.2.1.0/staging_dir/host/include -I/media/teq/6b282e2f-57e9-4bf5-976e-aa23855e9e47/Router/PO_Documents/ST_Router/AX1800/OpenWRT_4210/Build/mtk-openwrt-lede-4.2.1.0-20200612-d2c8e460/mtk-openwrt-lede-4.2.1.0/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
<b>freadahead.c:</b> In function '<b>freadahead</b>':
<b>freadahead.c:91:3:</b> <font color="#CC0000"><b>error: </b></font>#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 | #<font color="#CC0000"><b>error</b></font> "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."
| <font color="#CC0000"><b>^~~~~</b></font>
make[7]: *** [Makefile:1837: freadahead.o] Error 1
make[7]: Leaving directory '/media/teq/6b282e2f-57e9-4bf5-976e-aa23855e9e47/Router/PO_Documents/ST_Router/AX1800/OpenWRT_4210/Build/mtk-openwrt-lede-4.2.1.0-20200612-d2c8e460/mtk-openwrt-lede-4.2.1.0/build_dir/host/m4-1.4.17/lib'
make[6]: *** [Makefile:1602: all] Error 2
make[6]: Leaving directory '/media/teq/6b282e2f-57e9-4bf5-976e-aa23855e9e47/Router/PO_Documents/ST_Router/AX1800/OpenWRT_4210/Build/mtk-openwrt-lede-4.2.1.0-20200612-d2c8e460/mtk-openwrt-lede-4.2.1.0/build_dir/host/m4-1.4.17/lib'
make[5]: *** [Makefile:1506: all-recursive] Error 1
make[5]: Leaving directory '/media/teq/6b282e2f-57e9-4bf5-976e-aa23855e9e47/Router/PO_Documents/ST_Router/AX1800/OpenWRT_4210/Build/mtk-openwrt-lede-4.2.1.0-20200612-d2c8e460/mtk-openwrt-lede-4.2.1.0/build_dir/host/m4-1.4.17'
make[4]: *** [Makefile:1461: all] Error 2
make[4]: Leaving directory '/media/teq/6b282e2f-57e9-4bf5-976e-aa23855e9e47/Router/PO_Documents/ST_Router/AX1800/OpenWRT_4210/Build/mtk-openwrt-lede-4.2.1.0-20200612-d2c8e460/mtk-openwrt-lede-4.2.1.0/build_dir/host/m4-1.4.17'
make[3]: *** [Makefile:29: /media/teq/6b282e2f-57e9-4bf5-976e-aa23855e9e47/Router/PO_Documents/ST_Router/AX1800/OpenWRT_4210/Build/mtk-openwrt-lede-4.2.1.0-20200612-d2c8e460/mtk-openwrt-lede-4.2.1.0/build_dir/host/m4-1.4.17/.built] Error 2
make[3]: Leaving directory '/media/teq/6b282e2f-57e9-4bf5-976e-aa23855e9e47/Router/PO_Documents/ST_Router/AX1800/OpenWRT_4210/Build/mtk-openwrt-lede-4.2.1.0-20200612-d2c8e460/mtk-openwrt-lede-4.2.1.0/tools/m4'
make[2]: *** [tools/Makefile:153: tools/m4/compile] Error 2
make[2]: Leaving directory '/media/teq/6b282e2f-57e9-4bf5-976e-aa23855e9e47/Router/PO_Documents/ST_Router/AX1800/OpenWRT_4210/Build/mtk-openwrt-lede-4.2.1.0-20200612-d2c8e460/mtk-openwrt-lede-4.2.1.0'
make[1]: *** [tools/Makefile:150: /media/teq/6b282e2f-57e9-4bf5-976e-aa23855e9e47/Router/PO_Documents/ST_Router/AX1800/OpenWRT_4210/Build/mtk-openwrt-lede-4.2.1.0-20200612-d2c8e460/mtk-openwrt-lede-4.2.1.0/staging_dir/target-mipsel_24kc_musl-1.1.16/stamp/.tools_install_yyynyyyyyynyyyyynyynnyyyyyyynyyyyyyyyyyyyyyyynyynynnyyynnny] Error 2
make[1]: Leaving directory '/media/teq/6b282e2f-57e9-4bf5-976e-aa23855e9e47/Router/PO_Documents/ST_Router/AX1800/OpenWRT_4210/Build/mtk-openwrt-lede-4.2.1.0-20200612-d2c8e460/mtk-openwrt-lede-4.2.1.0'
make: *** [/media/teq/6b282e2f-57e9-4bf5-976e-aa23855e9e47/Router/PO_Documents/ST_Router/AX1800/OpenWRT_4210/Build/mtk-openwrt-lede-4.2.1.0-20200612-d2c8e460/mtk-openwrt-lede-4.2.1.0/include/toplevel.mk:199: world] Error 2
</pre>
Can you guys please help me out to solve this error?
Thank You