Closed cm281273 closed 6 years ago
Is it solve?
LEDE project still have problems Use git://git.archive.openwrt.org/15.05/openwrt.git version chaos_calmer
then do #336
I fixed (bypassed) this by changing line 26 of "include/click/llrpc.h". Instead of testing the " linux " macro, I changed it to test the " GLIBC " macro, since musl I believe does not contain " IOC DIRSHIFT ". I attached a .patch file. Just ignore the .txt extension at the end of the filename and run the following command
patch include/click/llrpc.h < ${PATCH_DIR}/llrpc.patch
Then run
make elemlist
make
as you normally would. My configuration for compiling click looks like the following (using OpenWRT 18.06.4):
./configure --disable-app-fuzzer --disable-app-performance --disable-app-sniffer --enable-app-tunnel --disable-app-stats --disable-doc --disable-doc-man --enable-local --enable-wifi --disable-linuxmodule --enable-userlevel --host=i486-openwrt-linux-musl --build=x86_64-pc-linux-gnu --with-linux=/home/Andre/Documents/thesis/openwrt/build_dir/toolchain-i386_pentium_gcc-7.4.0_musl/linux
I had to patch a few other things, in order for it to work. Feel free to reach out if you want me to go into further detail.
I also found another solution
https://github.com/Wi5/odin-wi5/tree/master/Odin_Wi5_firmware_build/custom/click/files
Device : TP-LINK archer c7 v2
Hi all, I'm trying to cross compile click to openwrt (lede) and I'm having the following error when make reaches
anonipaddr.cc
. Apparently the ioctl.h has no definition for _IOC_DIRSHIFT macro. Thing is that sys/ioctl.h includes bits/ioctl.h which should contain the macro but it doesn't. Any thoughts?This may give some idea of the linux version I'd like to compile it to:
and...
$make