mipsel-linux-g++ -D_REENTRANT -DPLATFORM_linux -DVERSION=\"7.0.0.7\" -DOPENWRT -DOPENWRT -g -Wall -Ipthreadcc/src -Isocketcc/src -I../../libpcap_noring -DCONFIG_FILE="\"/etc/kaid.conf\"" -Os -pipe -mips32r2 -mtune=74kc -mdspr2 -fno-caller-saves -msoft-float -mno-branch-likely -DNEED_PRINTF -c -o KaiDaemon.o KaiDaemon.cc
mipsel-linux-g++ -D_REENTRANT -DPLATFORM_linux -DVERSION=\"7.0.0.7\" -DOPENWRT -DOPENWRT -g -Wall -Ipthreadcc/src -Isocketcc/src -I../../libpcap_noring -DCONFIG_FILE="\"/etc/kaid.conf\"" -Os -pipe -mips32r2 -mtune=74kc -mdspr2 -fno-caller-saves -msoft-float -mno-branch-likely -DNEED_PRINTF -c -o Kaid.o Kaid.cc
Kaid.cc: In function 'char* tstamp()':
Kaid.cc:175:9: warning: variable 'len' set but not used [-Wunused-but-set-variable]
Kaid.cc: In function 'int main(int, char**)':
Kaid.cc:249:14: error: 'geteuid' was not declared in this scope
Kaid.cc:259:21: error: 'fork' was not declared in this scope
Kaid.cc:270:23: error: 'setsid' was not declared in this scope
Kaid.cc:275:16: error: 'STDIN_FILENO' was not declared in this scope
Kaid.cc:275:28: error: 'close' was not declared in this scope
Kaid.cc:276:16: error: 'STDOUT_FILENO' was not declared in this scope
Kaid.cc:277:16: error: 'STDERR_FILENO' was not declared in this scope
make[2]: *** [Kaid.o] Error 1
make[2]: Leaving directory `/home/compiler/DEV/DD-WRT/src/router/kaid/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/compiler/DEV/DD-WRT/src/router/kaid'
make: *** [kaid] Error 2
</code>
-Fractal
Sounds like there's something wrong with the unistd.h header. Have you tried switching :
I have commented out KAID, and it compiles just fine. however I get kernel panic when loading on E2500.
I used kernel config .config_bcmmips
and toolchain r2-linaro-4.7
here is the kernel crash:
<code>
CFE version 1.0.37 for BCM947XX (32bit,SP,LE)
Build Date: 05/30/11 16:28:42 CST (root@GavinPC.localdomain)
Copyright (C) 2000-2008 Broadcom Corporation.
Init Arena
Init Devs.
This is a Serial Flash
Boot partition size = 262144(0x40000)
Found a 8MB ST compatible serial flash
et0: Broadcom BCM47XX 10/100/1000 Mbps Ethernet Controller 5.60.127.2901 @VERSION_TYPE@
CPU type 0x19749: 300MHz
Tot mem: 65536 KBytes
I had the same issue, even though the fad-gifc.c file does gets cross compiled. Removing it from the makefile fixed the issue and kaid compiled properly...Yet, I can't get some modules to compile because it is searching for -ljanssen in LD_LIBRARY even though the libjanssen-dev is installed on my system...any idea why ?
I had the same issue, even though the fad-gifc.c file does gets cross compiled. Removing it from the makefile fixed the issue and kaid compiled properly...Yet, I can't get some modules to compile because it is searching for -ljanssen in LD_LIBRARY even though the libjanssen-dev is installed on my system...any idea why ?
Have you made any forward progress on K3x ? On your libjansen problem, it sounds to me like you need to install libjansen* on ubuntu there is a few other dependencies that it may be wanting..
I have been trying to compile 3.x for standard ea devices, I asked kong, but I don't think brains layer committed the wl drivers for the 3.10 kernel so it errors during compile on wl modules.
if I compile using standard kernel it compiles fine, but from about post it kernel panics the E2500.
Have you made any forward progress on K3x ? On your libjansen problem, it sounds to me like you need to install libjansen* on ubuntu there is a few other dependencies that it may be wanting..
I have been trying to compile 3.x for standard ea devices, I asked kong, but I don't think brains layer committed the wl drivers for the 3.10 kernel so it errors during compile on wl modules.
if I compile using standard kernel it compiles fine, but from about post it kernel panics the E2500.
-Fractal
No progress yet, and I already have every libjansen* dependencies installed. Though, it seems like it's searching for some precompiled jansen librairies inside the DD-WRT source code which is strange...anyways I'm installing openSUSE now and I'll see if it fixes that issue.
Isn't the 3.10 kernel already available and working with DD-WRT ? If it's not maybe you could try using the already fixed 3.9 wireless version as I don't think there are many differences there between 3.9 and 3.10. From your debug log, usually, Exception 8 is fixed by resetting NVRAM. Does DD-WRT export a kmsg in /proc/kmsg ? This would be more informative.
Yeah I found that openSuse worked right out of the box, all the necessary libs and updated binutils were there.
I have tried 3.9 and 3.10 all lead to exception 8 kernel panics... I would be interested to hear your progress.
My other observation is some of the precompiled modules seem to be compiled with a newer version of uclibc, aka the linaro 4.8 toolchain.. I am going to look into that next, and try a AC build since the modules are already there in the kernel.
Retried compiling with OpenSUSE...same error message with missing -ljansson when compiling K26 big build using makefile.brcm26. libjansson* packages already installed and same error happens with every toolchain tried. Any idea why ?
If I can compile this, I'll update the wiki with up-to-date info on how to compile K26 and K3.X.
Retried compiling with OpenSUSE...same error message with missing -ljansson when compiling K26 big build using makefile.brcm26. libjansson* packages already installed and same error happens with every toolchain tried. Any idea why ?
If I can compile this, I'll update the wiki with up-to-date info on how to compile K26 and K3.X.
I am running opensuse 12.3 64bit and can compile K26, and K3x however there is problems which need fixed on both.
I have up to date latest of all libs.
I am using the r2 version 4.7- linero toolchain
you need to use version 4.5- linero to compile K26, that is not labeled 4.5 but is in toolchian dir, is the only one not labeled.. I will check when I get home.
I have all these packages installed.
__________________________________________________
You never link against libs that come with the distro, that does not work and you will get errors anyways, since a distro is usually x_86_64 or X86 and the target is mipsel, arm etc., thus you would mix different architecture and probably different versions and the linker would tell you.
If it says it can't link against ljansson, then you did not configure/compile jansson in dd-wrt tree before trying to build a full fw:-) _________________ KONG PB's: http://www.desipro.de/ddwrt/
KONG Info: http://tips.desipro.de/
Thanks for your continued help!
I tried installing the packages, but most of them are already included in the distro or unavailable, and I kept having the same error message. I am using the 4.5 linaro toolchain with uClibc 0.9.32 for K26. Tried K3.X and same error too.
<Kong> wrote:
You never link against libs that come with the distro, that does not work and you will get errors anyways, since a distro is usually x_86_64 or X86 and the target is mipsel, arm etc., thus you would mix different architecture and probably different versions and the linker would tell you.
If it says it can't link against ljansson, then you did not configure/compile jansson in dd-wrt tree before trying to build a full fw:-)
I thought about this too...already tried the usual "./configure" "sudo make" "sudo make install" in the jansson folder and it did compile fine. Though, I still get the "skipping incompatible ..... .libs/libjansson.a when searching for -ljansson" error. Not quite sure if it's a misconfiguration within the jansson package or a toolchain issue. If I can't get this to compile, I guess I'll just skip this package and compile everything else.
Thanks for your continued help!
I tried installing the packages, but most of them are already included in the distro or unavailable, and I kept having the same error message. I am using the 4.5 linaro toolchain with uClibc 0.9.32 for K26. Tried K3.X and same error too.
<Kong> wrote:
You never link against libs that come with the distro, that does not work and you will get errors anyways, since a distro is usually x_86_64 or X86 and the target is mipsel, arm etc., thus you would mix different architecture and probably different versions and the linker would tell you.
If it says it can't link against ljansson, then you did not configure/compile jansson in dd-wrt tree before trying to build a full fw:-)
I thought about this too...already tried the usual "./configure" "sudo make" "sudo make install" in the jansson folder and it did compile fine. Though, I still get the "skipping incompatible ..... .libs/libjansson.a when searching for -ljansson" error. Not quite sure if it's a misconfiguration within the jansson package or a toolchain issue. If I can't get this to compile, I guess I'll just skip this package and compile everything else.
skipping incompatible-> that's what I told you, you are mixing host with target libs and try to link against a lib that you compiled for opensuse not for your target. _________________ KONG PB's: http://www.desipro.de/ddwrt/
KONG Info: http://tips.desipro.de/