Error during patch compilation at GL-AR150

Hello,

Just now I'm compiling Openwrt at AR-150 mini router when I execute make I got this error:

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."
  #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."
   ^~~~~

My OS is Debian 10.Could anyone help me ?

A greeting and thamks very much.

can you be more specific.... there are about 1001+ ways to kick that off.....

1 Like

Hello,

  • git clone https://github.com/domino-team/openwrt-cc.git
  • apt-get install subversion build-essential git-core libncurses5-dev zlib1g-dev gawk flex quilt libssl-dev xsltproc libxml-parser-perl mercurial bzr ecj cvs unzip git wget
  • ./scripts/feeds update -a
  • ./scripts/feeds install -a
  • make menuconfig
  • make ( ERROR )

The GL.iNet AR-150 should be supported by current/ vanilla OpenWrt just fine. Please understand that we can't support obsolete versions (Chaos Calmer) and even less external forks which may be based on those.

1 Like

Try the ath79 target from https://git.openwrt.org/openwrt/openwrt.git

image

The GL.iNet repo is at https://github.com/gl-inet/openwrt, but offers little, if anything over the 18.06.1 release that it was based on. While I expect GL.iNet to update after the 19.07 release, that the GL-AR150 doesn't use SPI NAND, I can't see any reason not to use the current OpenWrt sources.

Hello,
Failed again:

WARNING: Makefile 'package/feeds/gli_pub/luci-app-chinadns/Makefile' has a dependency on 'redsocks2', which does not exist
WARNING: Makefile 'package/feeds/gli_pub/luci-app-chinadns/Makefile' has a dependency on 'ShadowVPN', which does not exist
WARNING: Makefile 'package/feeds/gli_pub/shadowsocks-libev/Makefile' has a build dependency on 'libpcre', which does not exist
WARNING: Makefile 'package/feeds/gli_pub/shadowsocks-libev/Makefile' has a build dependency on 'libmbedtls', which does not exist
time: target/linux/prereq#0.37#0.05#0.41
 make[1] world
 make[2] tools/compile
 make[3] -C tools/flock compile
 make[3] -C tools/sed compile
 make[3] -C tools/patch compile
 make[3] -C tools/xz compile
 make[3] -C tools/tar compile
make -r world: build failed. Please re-run make with -j1 V=s to see what's going on
make: *** [/opt/WiFi-Pineapple/openwrt-develop/include/toplevel.mk:218: world] Error 1

There will be no 'package/feeds/gli_pub/' if you use https://git.openwrt.org/openwrt/openwrt.git/ ath79.

1 Like

You need to report problems with the GL.iNet packages at https://bugs.gl-inet.com/ and/or https://forum.gl-inet.com/