OpenWrt Forum Archive

Topic: building ar71xx ....

The content of this topic has been archived on 6 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

... well I downloaded the build root

I need the package squid rebuilt.
I did as stated here on openwork doc site.

build successful.

but when I install the ipkg.. the squid binary is there but I cannot start it, or even ldd squid

root@Gargoyle:/tmp/usb_mount/000004c6-01/plugin_root/usr/sbin# ls -l
-rwxr-xr-x    1 root     root       3967288 Feb  5 13:06 squid
-rwxr-xr-x    1 root     root        514423 Jan 31  2016 tcpdump
root@Gargoyle:/tmp/usb_mount/000004c6-01/plugin_root/usr/sbin# ldd ./squid
-ash: ./squid: not found
root@Gargoyle:/tmp/usb_mount/000004c6-01/plugin_root/usr/sbin#


whats going on there

i am on a ar71xx/usb wdr 3600

-ash: ./squid: not found

Typical reason for that "-ash: <application> not found" error is that you have used a different toolchain to compile the firmware and core packages (including the musl clibc) than you have used for compiling this binary app. E.g. the musl version is different, 1.1.14 vs. 1.1.16 etc. Then the app fails to launch.

Looks like you are on a Gargoyle router, so download their sources, toolchain, SDK, whatever, and use that for compiling squid.

(preferably, re-compile the whole firmware including the squid package.)

Great. I switched now to openwrt nightly.

so the best is to git it, then recompile everything and use this as a base?

i just want to have the squid :-)


But i will try this

Thanks!

The discussion might have continued from here.