تا اینجا که من فهمیدم build-essential یکسری کامپایلر مثل g++برای c++ و gcc و یکسری چیزای یگه از جمله makeرو نصب میکنه
و # aptitude install linux-headers-$(uname -r) d یکسری چیزمیز که نفهمیدم و linux-compiler , ......
حالا
# aptitude install linux-headers-$(uname -r)
سپس دوباره make و
(واقعا یه چیزایی بوده که برای شروع دبیان توصیه نشده!!!!)
erfan@erfan-debian:~/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2$ make
make -C tools
make[1]: Entering directory '/home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/tools'
gcc -g bin2h.c -o bin2h
make[1]: Leaving directory '/home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/tools'
/home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/tools/bin2h
cp -f os/linux/Makefile.6 /home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/Makefile
make -C /lib/modules/3.16.0-4-686-pae/build SUBDIRS=/home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux modules
make[1]: Entering directory '/usr/src/linux-headers-3.16.0-4-686-pae'
Makefile:10: *** mixed implicit and normal rules: deprecated syntax
make[1]: Entering directory `/usr/src/linux-headers-3.16.0-4-686-pae'
CC [M] /home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../common/crypt_md5.o
In file included from /usr/src/linux-headers-3.16.0-4-common/arch/x86/include/asm/string.h:2:0,
from /usr/src/linux-headers-3.16.0-4-common/include/linux/string.h:17,
from /usr/src/linux-headers-3.16.0-4-common/arch/x86/include/asm/page_32.h:34,
from /usr/src/linux-headers-3.16.0-4-common/arch/x86/include/asm/page.h:13,
from /usr/src/linux-headers-3.16.0-4-common/arch/x86/include/asm/thread_info.h:11,
from /usr/src/linux-headers-3.16.0-4-common/include/linux/thread_info.h:54,
from /usr/src/linux-headers-3.16.0-4-common/arch/x86/include/asm/preempt.h:6,
from /usr/src/linux-headers-3.16.0-4-common/include/linux/preempt.h:18,
from /usr/src/linux-headers-3.16.0-4-common/include/linux/spinlock.h:50,
from /usr/src/linux-headers-3.16.0-4-common/include/linux/seqlock.h:35,
from /usr/src/linux-headers-3.16.0-4-common/include/linux/time.h:5,
from /usr/src/linux-headers-3.16.0-4-common/include/linux/stat.h:18,
from /usr/src/linux-headers-3.16.0-4-common/include/linux/module.h:10,
from /home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/include/os/rt_linux.h:40,
from /home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/include/rtmp_os.h:42,
from /home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/include/rt_config.h:59,
from /home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../common/crypt_md5.c:28:
/home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../common/crypt_md5.c: In function ‘MD5Final’:
/home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../common/crypt_md5.c:322:32: warning: argument to ‘sizeof’ in ‘__builtin_memset’ call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess]
NdisZeroMemory(pCtx, sizeof(pCtx)); // memory free
^
/usr/src/linux-headers-3.16.0-4-common/arch/x86/include/asm/string_32.h:325:52: note: in definition of macro ‘memset’
#define memset(s, c, count) __builtin_memset(s, c, count)
^
/home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../common/crypt_md5.c:322:5: note: in expansion of macro ‘NdisZeroMemory’
NdisZeroMemory(pCtx, sizeof(pCtx)); // memory free
^
/home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../common/crypt_md5.c: In function ‘SHAFinal’:
/home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../common/crypt_md5.c:621:32: warning: argument to ‘sizeof’ in ‘__builtin_memset’ call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess]
NdisZeroMemory(pCtx, sizeof(pCtx)); // memory free
^
/usr/src/linux-headers-3.16.0-4-common/arch/x86/include/asm/string_32.h:325:52: note: in definition of macro ‘memset’
#define memset(s, c, count) __builtin_memset(s, c, count)
^
/home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../common/crypt_md5.c:621:5: note: in expansion of macro ‘NdisZeroMemory’
NdisZeroMemory(pCtx, sizeof(pCtx)); // memory free
^
CC [M] /home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../common/crypt_sha2.o
CC [M] /home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../common/crypt_hmac.o
CC [M] /home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../common/crypt_aes.o
/home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../common/crypt_aes.c: In function ‘WscEncryptData’:
/home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../common/crypt_aes.c:1522:1: warning: the frame size of 1368 bytes is larger than 1024 bytes [-Wframe-larger-than=]
}
^
/home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../common/crypt_aes.c: In function ‘WscDecryptData’:
/home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../common/crypt_aes.c:1592:1: warning: the frame size of 1368 bytes is larger than 1024 bytes [-Wframe-larger-than=]
}
^
/home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../common/crypt_aes.c: In function ‘AES_GTK_KEY_WRAP’:
/home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../common/crypt_aes.c:2265:1: warning: the frame size of 1100 bytes is larger than 1024 bytes [-Wframe-larger-than=]
}
^
CC [M] /home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../common/crypt_arc4.o
CC [M] /home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../common/mlme.o
/home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../common/mlme.c: In function ‘BssTableSetEntry’:
/home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../common/mlme.c:4222:39: warning: operation on ‘Tab->BssOverlapNr’ may be undefined [-Wsequence-point]
Tab->BssOverlapNr = (Tab->BssOverlapNr++) % MAX_LEN_OF_BSS_TABLE;
^
/home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../common/mlme.c: In function ‘BssTableSortByRssi’:
/home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../common/mlme.c:4589:1: warning: the frame size of 1580 bytes is larger than 1024 bytes [-Wframe-larger-than=]
}
^
CC [M] /home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../common/cmm_wep.o
CC [M] /home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../common/action.o
CC [M] /home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../common/cmm_data.o
CC [M] /home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../common/rtmp_init.o
CC [M] /home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../common/cmm_tkip.o
CC [M] /home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../common/cmm_aes.o
CC [M] /home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../common/cmm_sync.o
CC [M] /home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../common/eeprom.o
CC [M] /home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../common/cmm_sanity.o
CC [M] /home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../common/cmm_info.o
CC [M] /home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../common/cmm_cfg.o
CC [M] /home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../common/cmm_wpa.o
CC [M] /home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../common/dfs.o
CC [M] /home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../common/spectrum.o
CC [M] /home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../common/rtmp_timer.o
CC [M] /home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../common/rt_channel.o
CC [M] /home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../common/cmm_profile.o
CC [M] /home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../common/cmm_asic.o
CC [M] /home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../common/cmm_cmd.o
CC [M] /home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../sta/assoc.o
CC [M] /home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../sta/auth.o
CC [M] /home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../sta/auth_rsp.o
CC [M] /home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../sta/sync.o
/home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../sta/sync.c: In function ‘PeerBeaconAtScanAction’:
/home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../sta/sync.c:766:1: warning: the frame size of 1260 bytes is larger than 1024 bytes [-Wframe-larger-than=]
}
^
/home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../sta/sync.c: In function ‘PeerBeaconAtJoinAction’:
/home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../sta/sync.c:1073:1: warning: the frame size of 1256 bytes is larger than 1024 bytes [-Wframe-larger-than=]
}
^
/home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../sta/sync.c: In function ‘PeerBeacon’:
/home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../sta/sync.c:1730:1: warning: the frame size of 1296 bytes is larger than 1024 bytes [-Wframe-larger-than=]
}
^
CC [M] /home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../sta/sanity.o
CC [M] /home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../sta/rtmp_data.o
CC [M] /home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../sta/connect.o
/home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../sta/connect.c: In function ‘CntlOidScanProc’:
/home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../sta/connect.c:312:1: warning: the frame size of 1616 bytes is larger than 1024 bytes [-Wframe-larger-than=]
}
^
CC [M] /home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../sta/wpa.o
CC [M] /home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../sta/sta_cfg.o
CC [M] /home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../common/rtmp_init_inf.o
CC [M] /home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../os/linux/rt_profile.o
CC [M] /home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../os/linux/sta_ioctl.o
/home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../os/linux/sta_ioctl.c: In function ‘rt_ioctl_siwencode’:
/home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../os/linux/sta_ioctl.c:1447:6: warning: suggest parentheses around operand of ‘!’ or change ‘&’ to ‘&&’ or ‘!’ to ‘~’ [-Wparentheses]
if(!erq->flags & IW_ENCODE_MODE)
^
/home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../os/linux/sta_ioctl.c: In function ‘rt_ioctl_siwmlme’:
/home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../os/linux/sta_ioctl.c:1893:1: warning: the frame size of 1580 bytes is larger than 1024 bytes [-Wframe-larger-than=]
}
^
/home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../os/linux/sta_ioctl.c: In function ‘rt_ioctl_iwaplist’:
/home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../os/linux/sta_ioctl.c:605:1: warning: the frame size of 1296 bytes is larger than 1024 bytes [-Wframe-larger-than=]
}
^
/home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../os/linux/sta_ioctl.c: In function ‘RTMPIoctlMAC’:
/home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../os/linux/sta_ioctl.c:5756:1: warning: the frame size of 1340 bytes is larger than 1024 bytes [-Wframe-larger-than=]
}
^
/home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../os/linux/sta_ioctl.c: In function ‘RTMPIoctlE2PROM’:
/home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../os/linux/sta_ioctl.c:5954:1: warning: the frame size of 1344 bytes is larger than 1024 bytes [-Wframe-larger-than=]
}
^
/home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../os/linux/sta_ioctl.c: In function ‘RTMPIoctlRF’:
/home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../os/linux/sta_ioctl.c:6138:1: warning: the frame size of 2328 bytes is larger than 1024 bytes [-Wframe-larger-than=]
}
^
CC [M] /home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../os/linux/rt_linux.o
/home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../os/linux/rt_linux.c: In function ‘RtmpOSFSInfoChange’:
/home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../os/linux/rt_linux.c:1171:20: error: incompatible types when assigning to type ‘int’ from type ‘kuid_t’
pOSFSInfo->fsuid = current_fsuid();
^
/home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../os/linux/rt_linux.c:1172:20: error: incompatible types when assigning to type ‘int’ from type ‘kgid_t’
pOSFSInfo->fsgid = current_fsgid();
^
/home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../os/linux/rt_linux.c: At top level:
/home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../os/linux/rt_linux.c:1646:10: error: unknown field ‘ndo_set_multicast_list’ specified in initializer
.ndo_set_multicast_list = NULL,
^
/usr/src/linux-headers-3.16.0-4-common/scripts/Makefile.build:262: recipe for target '/home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../os/linux/rt_linux.o' failed
make[4]: *** [/home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux/../../os/linux/rt_linux.o] Error 1
/usr/src/linux-headers-3.16.0-4-common/Makefile:1350: recipe for target '_module_/home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux' failed
make[3]: *** [_module_/home/erfan/Downloads/2010_01_28_RT2860_Linux_STA_v2.3.0.0_Alpha_v2/os/linux] Error 2
Makefile:181: recipe for target 'sub-make' failed
make[2]: *** [sub-make] Error 2
Makefile:8: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-3.16.0-4-686-pae'
Makefile:186: recipe for target 'LINUX' failed
make: *** [LINUX] Error 2