I am trying to compile this driver, but the distro i am using (voyage linux, embedded system OS based off debian) does not come with the source. I copied the source, created a symbolic link in the proper directory. Some variables are still not being defined...
Here is the make output:
Code:
make -C tools
make[1]: Entering directory `/files/2010_0709_RT3572_Linux_STA_v2.4.0.1/tools'
gcc -g bin2h.c -o bin2h
make[1]: Leaving directory `/files/2010_0709_RT3572_Linux_STA_v2.4.0.1/tools'
/files/2010_0709_RT3572_Linux_STA_v2.4.0.1/tools/bin2h
cp -f os/linux/Makefile.6 /files/2010_0709_RT3572_Linux_STA_v2.4.0.1/os/linux/Ma
kefile
make -C /lib/modules/2.6.30-486-voyage-beta/build SUBDIRS=/files/2010_0709_RT357
2_Linux_STA_v2.4.0.1/os/linux modules
make[1]: Entering directory `/usr/src/linux-source-2.6.30-voyage'

  WARNING: Symbol version dump /usr/src/linux-source-2.6.30-voyage/Module.symver
s
           is missing; modules will have no dependencies and modversions.

  CC [M]  /files/2010_0709_RT3572_Linux_STA_v2.4.0.1/os/linux/../../common/crypt
_md5.o
In file included from include/linux/gfp.h:4,
                 from include/linux/kmod.h:22,
                 from include/linux/module.h:13,
                 from /files/2010_0709_RT3572_Linux_STA_v2.4.0.1/include/os/rt_l
inux.h:40,
                 from /files/2010_0709_RT3572_Linux_STA_v2.4.0.1/include/rtmp_os
.h:42,
                 from /files/2010_0709_RT3572_Linux_STA_v2.4.0.1/include/rt_conf
ig.h:72,
                 from /files/2010_0709_RT3572_Linux_STA_v2.4.0.1/os/linux/../../
common/crypt_md5.c:28:
include/linux/mmzone.h:18:26: error: linux/bounds.h: No such file or directory
include/linux/mmzone.h:256:5: warning: "MAX_NR_ZONES" is not defined
include/linux/mmzone.h:258:7: warning: "MAX_NR_ZONES" is not defined
include/linux/mmzone.h:260:7: warning: "MAX_NR_ZONES" is not defined
In file included from include/linux/gfp.h:4,
                 from include/linux/kmod.h:22,
                 from include/linux/module.h:13,
                 from /files/2010_0709_RT3572_Linux_STA_v2.4.0.1/include/os/rt_l
inux.h:40,
                 from /files/2010_0709_RT3572_Linux_STA_v2.4.0.1/include/rtmp_os
.h:42,
                 from /files/2010_0709_RT3572_Linux_STA_v2.4.0.1/include/rt_conf
ig.h:72,
                 from /files/2010_0709_RT3572_Linux_STA_v2.4.0.1/os/linux/../../
common/crypt_md5.c:28:
include/linux/mmzone.h:290: error: 'MAX_NR_ZONES' undeclared here (not in a func
tion)
In file included from /files/2010_0709_RT3572_Linux_STA_v2.4.0.1/include/rtmp_os
.h:42,
                 from /files/2010_0709_RT3572_Linux_STA_v2.4.0.1/include/rt_conf
ig.h:72,
                 from /files/2010_0709_RT3572_Linux_STA_v2.4.0.1/os/linux/../../
common/crypt_md5.c:28:
/files/2010_0709_RT3572_Linux_STA_v2.4.0.1/include/os/rt_linux.h:41:27: error: l
inux/version.h: No such file or directory
In file included from /usr/src/linux-source-2.6.30-voyage/arch/x86/include/asm/p
ci.h:4,
                 from include/linux/pci.h:1098,
                 from /files/2010_0709_RT3572_Linux_STA_v2.4.0.1/include/os/rt_l
inux.h:50,
                 from /files/2010_0709_RT3572_Linux_STA_v2.4.0.1/include/rtmp_os
.h:42,
                 from /files/2010_0709_RT3572_Linux_STA_v2.4.0.1/include/rt_conf
ig.h:72,
                 from /files/2010_0709_RT3572_Linux_STA_v2.4.0.1/os/linux/../../
common/crypt_md5.c:28:
include/linux/mm.h:446:63: warning: "NR_PAGEFLAGS" is not defined
include/linux/mm.h:494:62: warning: "NR_PAGEFLAGS" is not defined
In file included from /files/2010_0709_RT3572_Linux_STA_v2.4.0.1/include/rtmp_os
.h:42,
                 from /files/2010_0709_RT3572_Linux_STA_v2.4.0.1/include/rt_conf
ig.h:72,
                 from /files/2010_0709_RT3572_Linux_STA_v2.4.0.1/os/linux/../../
common/crypt_md5.c:28:
/files/2010_0709_RT3572_Linux_STA_v2.4.0.1/include/os/rt_linux.h:79:5: warning:
"LINUX_VERSION_CODE" is not defined
/files/2010_0709_RT3572_Linux_STA_v2.4.0.1/include/os/rt_linux.h:79:27: warning:
 "KERNEL_VERSION" is not defined
/files/2010_0709_RT3572_Linux_STA_v2.4.0.1/include/os/rt_linux.h:79:41: error: m
issing binary operator before token "("
/files/2010_0709_RT3572_Linux_STA_v2.4.0.1/include/os/rt_linux.h:88:5: warning:
"LINUX_VERSION_CODE" is not defined
/files/2010_0709_RT3572_Linux_STA_v2.4.0.1/include/os/rt_linux.h:88:27: warning:
 "KERNEL_VERSION" is not defined
/files/2010_0709_RT3572_Linux_STA_v2.4.0.1/include/os/rt_linux.h:88:41: error: m
issing binary operator before token "("
/files/2010_0709_RT3572_Linux_STA_v2.4.0.1/include/os/rt_linux.h:171:5: warning:
 "LINUX_VERSION_CODE" is not defined
/files/2010_0709_RT3572_Linux_STA_v2.4.0.1/include/os/rt_linux.h:171:27: warning
: "KERNEL_VERSION" is not defined
/files/2010_0709_RT3572_Linux_STA_v2.4.0.1/include/os/rt_linux.h:171:41: error:
missing binary operator before token "("
/files/2010_0709_RT3572_Linux_STA_v2.4.0.1/include/os/rt_linux.h:182:5: warning:
 "LINUX_VERSION_CODE" is not defined
/files/2010_0709_RT3572_Linux_STA_v2.4.0.1/include/os/rt_linux.h:182:27: warning
: "KERNEL_VERSION" is not defined
/files/2010_0709_RT3572_Linux_STA_v2.4.0.1/include/os/rt_linux.h:182:41: error:
missing binary operator before token "("
/files/2010_0709_RT3572_Linux_STA_v2.4.0.1/include/os/rt_linux.h:469:5: warning:
 "LINUX_VERSION_CODE" is not defined
/files/2010_0709_RT3572_Linux_STA_v2.4.0.1/include/os/rt_linux.h:469:27: warning
: "KERNEL_VERSION" is not defined
/files/2010_0709_RT3572_Linux_STA_v2.4.0.1/include/os/rt_linux.h:469:41: error:
missing binary operator before token "("
/files/2010_0709_RT3572_Linux_STA_v2.4.0.1/include/os/rt_linux.h:519:5: warning:
 "LINUX_VERSION_CODE" is not defined
/files/2010_0709_RT3572_Linux_STA_v2.4.0.1/include/os/rt_linux.h:519:27: warning
: "KERNEL_VERSION" is not defined
/files/2010_0709_RT3572_Linux_STA_v2.4.0.1/include/os/rt_linux.h:519:41: error:
missing binary operator before token "("
/files/2010_0709_RT3572_Linux_STA_v2.4.0.1/include/os/rt_linux.h:763:5: warning:
 "LINUX_VERSION_CODE" is not defined
/files/2010_0709_RT3572_Linux_STA_v2.4.0.1/include/os/rt_linux.h:763:27: warning
: "KERNEL_VERSION" is not defined
/files/2010_0709_RT3572_Linux_STA_v2.4.0.1/include/os/rt_linux.h:763:41: error:
missing binary operator before token "("
/files/2010_0709_RT3572_Linux_STA_v2.4.0.1/include/os/rt_linux.h:1029:5: warning
: "LINUX_VERSION_CODE" is not defined
In file included from /files/2010_0709_RT3572_Linux_STA_v2.4.0.1/include/rtmp_os
.h:42,
                 from /files/2010_0709_RT3572_Linux_STA_v2.4.0.1/include/rt_conf
ig.h:72,
                 from /files/2010_0709_RT3572_Linux_STA_v2.4.0.1/os/linux/../../
common/crypt_md5.c:28:
/files/2010_0709_RT3572_Linux_STA_v2.4.0.1/include/os/rt_linux.h:1030: error: ex
pected declaration specifiers or '...' before numeric constant
/files/2010_0709_RT3572_Linux_STA_v2.4.0.1/include/os/rt_linux.h:1030: error: co
nflicting types for 'alloc_netdev_mq'
include/linux/netdevice.h:1787: note: previous declaration of 'alloc_netdev_mq'
was here
/files/2010_0709_RT3572_Linux_STA_v2.4.0.1/include/os/rt_linux.h:1051:5: warning
: "LINUX_VERSION_CODE" is not defined
/files/2010_0709_RT3572_Linux_STA_v2.4.0.1/include/os/rt_linux.h:1051:27: warnin
g: "KERNEL_VERSION" is not defined
/files/2010_0709_RT3572_Linux_STA_v2.4.0.1/include/os/rt_linux.h:1051:41: error:
 missing binary operator before token "("
/files/2010_0709_RT3572_Linux_STA_v2.4.0.1/include/os/rt_linux.h:1066:5: warning
: "LINUX_VERSION_CODE" is not defined
/files/2010_0709_RT3572_Linux_STA_v2.4.0.1/include/os/rt_linux.h:1066:27: warnin
g: "KERNEL_VERSION" is not defined
/files/2010_0709_RT3572_Linux_STA_v2.4.0.1/include/os/rt_linux.h:1066:41: error:
 missing binary operator before token "("
/files/2010_0709_RT3572_Linux_STA_v2.4.0.1/include/os/rt_linux.h:1116:5: warning
: "LINUX_VERSION_CODE" is not defined
/files/2010_0709_RT3572_Linux_STA_v2.4.0.1/include/os/rt_linux.h:1116:27: warnin
g: "KERNEL_VERSION" is not defined
/files/2010_0709_RT3572_Linux_STA_v2.4.0.1/include/os/rt_linux.h:1116:41: error:
 missing binary operator before token "("
/files/2010_0709_RT3572_Linux_STA_v2.4.0.1/include/os/rt_linux.h:1129:7: warning
: "LINUX_VERSION_CODE" is not defined
/files/2010_0709_RT3572_Linux_STA_v2.4.0.1/include/os/rt_linux.h:1129:28: warnin
g: "KERNEL_VERSION" is not defined
/files/2010_0709_RT3572_Linux_STA_v2.4.0.1/include/os/rt_linux.h:1129:42: error:
 missing binary operator before token "("
/files/2010_0709_RT3572_Linux_STA_v2.4.0.1/include/os/rt_linux.h:1166:5: warning
: "LINUX_VERSION_CODE" is not defined
/files/2010_0709_RT3572_Linux_STA_v2.4.0.1/include/os/rt_linux.h:1166:27: warnin
g: "KERNEL_VERSION" is not defined
/files/2010_0709_RT3572_Linux_STA_v2.4.0.1/include/os/rt_linux.h:1166:41: error:
 missing binary operator before token "("
/files/2010_0709_RT3572_Linux_STA_v2.4.0.1/include/os/rt_linux.h:1199:5: warning
: "LINUX_VERSION_CODE" is not defined
/files/2010_0709_RT3572_Linux_STA_v2.4.0.1/include/os/rt_linux.h:1199:27: warnin
g: "KERNEL_VERSION" is not defined
/files/2010_0709_RT3572_Linux_STA_v2.4.0.1/include/os/rt_linux.h:1199:41: error:
 missing binary operator before token "("
/files/2010_0709_RT3572_Linux_STA_v2.4.0.1/include/os/rt_linux.h:1227:5: warning
: "LINUX_VERSION_CODE" is not defined
/files/2010_0709_RT3572_Linux_STA_v2.4.0.1/include/os/rt_linux.h:1227:27: warnin
g: "KERNEL_VERSION" is not defined
/files/2010_0709_RT3572_Linux_STA_v2.4.0.1/include/os/rt_linux.h:1227:41: error:
 missing binary operator before token "("
/files/2010_0709_RT3572_Linux_STA_v2.4.0.1/include/os/rt_linux.h:1255:5: warning
: "LINUX_VERSION_CODE" is not defined
/files/2010_0709_RT3572_Linux_STA_v2.4.0.1/include/os/rt_linux.h:1255:27: warnin
g: "KERNEL_VERSION" is not defined
/files/2010_0709_RT3572_Linux_STA_v2.4.0.1/include/os/rt_linux.h:1255:41: error:
 missing binary operator before token "("
In file included from /files/2010_0709_RT3572_Linux_STA_v2.4.0.1/include/rt_conf
ig.h:99,
                 from /files/2010_0709_RT3572_Linux_STA_v2.4.0.1/os/linux/../../
common/crypt_md5.c:28:
/files/2010_0709_RT3572_Linux_STA_v2.4.0.1/include/rtmp.h:7614:5: warning: "LINU
X_VERSION_CODE" is not defined
/files/2010_0709_RT3572_Linux_STA_v2.4.0.1/include/rtmp.h:7614:27: warning: "KER
NEL_VERSION" is not defined
/files/2010_0709_RT3572_Linux_STA_v2.4.0.1/include/rtmp.h:7614:41: error: missin
g binary operator before token "("
make[2]: *** [/files/2010_0709_RT3572_Linux_STA_v2.4.0.1/os/linux/../../common/c
rypt_md5.o] Error 1
make[1]: *** [_module_/files/2010_0709_RT3572_Linux_STA_v2.4.0.1/os/linux] Error
 2
make[1]: Leaving directory `/usr/src/linux-source-2.6.30-voyage'
make: *** [LINUX] Error 2