[Madwifi-devel] How to compile madwifi with symbols (-g) / Oops ?
Status: Beta
Brought to you by:
otaku
From: Beat M. <Bea...@gm...> - 2006-03-06 22:19:34
|
Hi I was playing with the Oops (Thanks for the really nice article and demo prog!!!) Now I wanted compile madwifi with -g support and tried the following (as noted in http://ds9a.nl/symoops.html) i.e. in my case I starerd the build with EXTRA_CFLAGS=-g make KERNELPATH=/usr/src/linux-2.6.12-2-wrap If done so it fails with ... make -C /usr/src/linux-2.6.12-2-wrap SUBDIRS=/usr/local/devel/kernel-2.6.12-2/dist/1457-stuff/madwifi-1457-debug/src/ath_hal MODVERDIR=/usr/local/devel/kernel-2.6.12-2/dist/1457-stuff/madwifi-1457-debug/src/ath_hal/../symbols modules make[2]: Entering directory `/usr/src/linux-2.6.12-2-wrap' CC [M] /usr/local/devel/kernel-2.6.12-2/dist/1457-stuff/madwifi-1457-debug/src/ath_hal/ah_osdep.o LD [M] /usr/local/devel/kernel-2.6.12-2/dist/1457-stuff/madwifi-1457-debug/src/ath_hal/ath_hal.o Building modules, stage 2. MODPOST Warning: could not find /usr/local/devel/kernel-2.6.12-2/dist/1457-stuff/madwifi-1457-debug/src/ath_hal/.hal.o.cmd for /usr/local/devel/kernel-2.6.12-2/dist/1457-stuff/madwifi-1457-debug/src/ath_hal/hal.o CC /usr/local/devel/kernel-2.6.12-2/dist/1457-stuff/madwifi-1457-debug/src/ath_hal/ath_hal.mod.o <command line>:138476076:64112: ./../include/compat.h: No such file or directory make[3]: *** [/usr/local/devel/kernel-2.6.12-2/dist/1457-stuff/madwifi-1457-debug/src/ath_hal/ath_hal.mod.o] Error 1 make[2]: *** [modules] Error 2 make[2]: Leaving directory `/usr/src/linux-2.6.12-2-wrap' make[1]: *** [all] Error 2 make[1]: Leaving directory `/usr/local/devel/kernel-2.6.12-2/dist/1457-stuff/madwifi-1457-debug/src/ath_hal' make: *** [modules] Error 1 If then changed in src/ath_hal/Makefile in EXTRA_CFLAGS+= ${INCS} ${COPTS} to EXTRA_CFLAGS+= ${INCS} ${COPTS} -g and so it works I have no place found where EXTRA_CFLAGS are set without EXTRA_CFLAGS+=. So does EXTRA_CFLAGS+= not leave the old ones intact? Then I have tried EXTRA_CFLAGS=-g EXTRA_CFLAGS+= ${INCS} ${COPTS} and it still compiles so it seems that there will be intact ... Any idea what I'm doing wrong? How do you compile madwifi with symbols WITHOUT changing every Makefile?? Thanks for any help Beat -- Echte DSL-Flatrate dauerhaft für 0,- Euro*! "Feel free" mit GMX DSL! http://www.gmx.net/de/go/dsl |