编译出错如下:
CC drivers/klsp/vntwusb/ioctl.o
drivers/klsp/vntwusb/ioctl.c: In function `private_ioctl':
drivers/klsp/vntwusb/ioctl.c:307: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <> for instructions.
make[3]: *** [drivers/klsp/vntwusb/ioctl.o] Error 1
make[2]: *** [drivers/klsp/vntwusb] Error 2
make[1]: *** [drivers/klsp] Error 2
make: *** [drivers] Error 2
解决方法:
typedef struct tagSBSSIDItem {
U32 uChannel;
U8 abyBSSID[BSSID_LEN];
U8 abySSID[SSID_MAXLEN + 1];
U16 wBeaconInterval;
U16 wCapInfo;
U8 byNetType;
BOOL bWEPOn;
U32 uRSSI;
} SBSSIDItem;
修改为-->
typedef struct tagSBSSIDItem {
BOOL bWEPOn;
U8 abyBSSID[BSSID_LEN];
U8 abySSID[SSID_MAXLEN + 1];
U8 byNetType;
U16 wBeaconInterval;
U16 wCapInfo;
U32 uRSSI;
U32 uChannel;
} SBSSIDItem;
这是典型的可移植问题之一吧,是结构体定义时,对齐问题。
/*
*By Neil Zhao (neilchiao at gmail.com)
*转载请注明出处:
*/
阅读(1158) | 评论(0) | 转发(0) |