- 论坛徽章:
- 0
|
求救:rhel5.5下编译iw_0.9.21原码不成功,似乎是libnl库版本低了,在网上搜索了N天解决办法,实在是搞不定了,我的问题是三选一:
1、给我传一份struct nl_object结构定义;
2、libnl-2.0如何在rhel5.5下原码编译成功(内核已升级到2.6.36),我编译时报如下错:
root@czgy libnl-2.0]# make
. . . . . .
libtool: compile: gcc -DHAVE_CONFIG_H -I. -Wall -I../include -I../include -D_GNU_SOURCE -DSYSCONFDIR=\"/usr/local/etc/libnl\" -g -O2 -MT fib_lookup/request.lo -MD -MP -MF fib_lookup/.deps/request.Tpo -c fib_lookup/request.c -o fib_lookup/request.o >/dev/null 2>&1
bison -y -d -o route/pktloc_syntax.c route/pktloc_syntax.y
route/pktloc_syntax.y:11.9-16: syntax error, unexpected identifier, expecting string
make[2]: *** [route/pktloc_syntax.c] Error 1
make[2]: Leaving directory `/opt/aircrack/libnl-2.0/lib'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/opt/aircrack/libnl-2.0/lib'
make: *** [all-recursive] Error 1
根据提示,我找不到出错地方;
3、编译iw-0.9.21我修改了iw.c和iw.h两个文件后,编译时出错,我在iw.h里定义了个nl_object结构,定义如下:
struct nl_object{ };没办法实在是找不到nl_object结构定义。编译iw-0.9.21时出错如下:
[root@czgy iw-0.9.21]# make
CC iw.o
iw.c:67: warning: ‘struct nl_parser_param’ declared inside parameter list
iw.c: In function ‘nl_cache_clear’:
iw.c:105: error: ‘struct nl_object’ has no member named ‘ce_list’
iw.c:105: warning: type defaults to ‘int’ in declaration of ‘__mptr’
iw.c:105: warning: initialization from incompatible pointer type
iw.c:105: error: ‘struct nl_object’ has no member named ‘ce_list’
iw.c:105: error: ‘struct nl_object’ has no member named ‘ce_list’
iw.c:105: warning: type defaults to ‘int’ in declaration of ‘__mptr’
iw.c:105: error: ‘struct nl_object’ has no member named ‘ce_list’
iw.c:105: error: ‘struct nl_object’ has no member named ‘ce_list’
iw.c:105: warning: left-hand operand of comma expression has no effect
iw.c:105: error: ‘struct nl_object’ has no member named ‘ce_list’
iw.c:105: error: ‘struct nl_object’ has no member named ‘ce_list’
iw.c:105: warning: type defaults to ‘int’ in declaration of ‘__mptr’
iw.c:105: error: ‘struct nl_object’ has no member named ‘ce_list’
iw.c:105: error: ‘struct nl_object’ has no member named ‘ce_list’
iw.c: In function ‘__genl_ctrl_alloc_cache’:
iw.c:129: warning: passing argument 1 of ‘genl_ctrl_alloc_cache’ from incompatible pointer type
iw.c:129: warning: initialization makes pointer from integer without a cast
iw.c: In function ‘nl80211_init’:
iw.c:150: warning: passing argument 1 of ‘genl_connect’ from incompatible pointer type
iw.c: In function ‘__handle_cmd’:
iw.c:464: error: implicit declaration of function ‘nl_cb_alloc’
iw.c:464: warning: assignment makes pointer from integer without a cast
iw.c:489: warning: passing argument 2 of ‘nl_send_auto_complete’ from incompatible pointer type
iw.c:496: warning: passing argument 4 of ‘nl_cb_set’ from incompatible pointer type
iw.c:497: warning: passing argument 4 of ‘nl_cb_set’ from incompatible pointer type
iw.c:502: error: implicit declaration of function ‘nl_cb_put’
make: *** [iw.o] Error 1
[root@czgy iw-0.9.21]#
大侠实在是搞不定了,搞一个星期,没路子了,在google上搜出来的都是nl_object的引用没有定义。请帮帮我吧! |
|