Hi, > So, could you please try to find out, which softmac header is > included, if you do not define SOFTMAC_DIR?
It's not a problem of wrong header files. The build process always takes the softmace headers from /lib/modules/<kernel-version>/include/net since this entry is first in the searchpath. A "make install" in softmac before building bcm430x should guarantee that the headers are up to date. What seems to happen is that if SOFTMAC_DIR is undefined the resulting compile command is gcc ... -I -DMODULE ... The compiler treats -DMODULE as argument to -I, resulting in MODULE being undefined. How about this patch: --- driver.orig/Makefile 2005-11-29 20:40:39.000000000 +0100 +++ driver/Makefile 2005-11-29 20:43:04.000000000 +0100 @@ -24,7 +24,10 @@ CFLAGS += -O2 endif -CFLAGS += -DBCM430x_VERSION=$(VERSION) -I/lib/modules/$(KVER)/include -I$(SOFTMAC_DIR) +CFLAGS += -DBCM430x_VERSION=$(VERSION) -I/lib/modules/$(KVER)/include +ifdef SOFTMAC_DIR +CFLAGS += -I$(SOFTMAC_DIR) +endif ifneq ($(KERNELRELEASE),) # call from kernel build system Regards, Oliver _______________________________________________ Bcm43xx-dev mailing list [email protected] http://lists.berlios.de/mailman/listinfo/bcm43xx-dev
