[Kernel] compilazione make
Inviato: martedì 7 ottobre 2008, 21:29
warty@ubuntu:~/a-saodv/a-saodv_1 $ make
gcc -Wall -pthread -g -DDEBUG -c -o main.o main.c
gcc -Wall -pthread -g -DDEBUG -c -o list.o list.c
gcc -Wall -pthread -g -DDEBUG -c -o debug.o debug.c
gcc -Wall -pthread -g -DDEBUG -c -o timer_queue.o timer_queue.c
gcc -Wall -pthread -g -DDEBUG -c -o aodv_socket.o aodv_socket.c
gcc -Wall -pthread -g -DDEBUG -c -o aodv_hello.o aodv_hello.c
gcc -Wall -pthread -g -DDEBUG -c -o aodv_neighbor.o aodv_neighbor.c
gcc -Wall -pthread -g -DDEBUG -c -o aodv_timeout.o aodv_timeout.c
gcc -Wall -pthread -g -DDEBUG -c -o routing_table.o routing_table.c
gcc -Wall -pthread -g -DDEBUG -c -o seek_list.o seek_list.c
gcc -Wall -pthread -g -DDEBUG -c -o k_route.o k_route.c
gcc -Wall -pthread -g -DDEBUG -c -o aodv_rreq.o aodv_rreq.c
gcc -Wall -pthread -g -DDEBUG -c -o aodv_rrep.o aodv_rrep.c
gcc -Wall -pthread -g -DDEBUG -c -o aodv_rerr.o aodv_rerr.c
gcc -Wall -pthread -g -DDEBUG -c -o packet_input.o packet_input.c
gcc -Wall -pthread -g -DDEBUG -c -o packet_queue.o packet_queue.c
gcc -Wall -pthread -g -DDEBUG -c -o libipq.o libipq.c
gcc -Wall -pthread -g -DDEBUG -c -o icmp.o icmp.c
gcc -Wall -pthread -g -DDEBUG -c -o saodv_rreq.o saodv_rreq.c
gcc -Wall -pthread -g -DDEBUG -c -o saodv_rrep.o saodv_rrep.c
gcc -Wall -pthread -g -DDEBUG -c -o saodv_rerr.o saodv_rerr.c
gcc -Wall -pthread -g -DDEBUG -c -o key.o key.c
gcc -Wall -pthread -g -DDEBUG -c -o hash.o hash.c
gcc -Wall -pthread -g -DDEBUG -c -o crypto.o crypto.c
gcc -Wall -pthread -g -DDEBUG -c -o saodv_adapt.o saodv_adapt.c
gcc -Wall -pthread -g -DDEBUG -lgcrypt -lgpg-error -o saodvd main.o list.o debu g.o timer_queue.o aodv_socket.o aodv_hello.o aodv_neighbor.o aodv_timeout.o routing_table.o seek_list.o k_route.o aodv_rreq.o aodv_rrep.o aodv_rerr.o packet_input.o packet_queue.o libipq.o icmp.o saodv_rreq.o saodv_rrep.o saodv_rerr.o key.o hash.o crypto.o saodv_adapt.o
make -C /lib/modules/2.6.8.1-3-386/build SUBDIRS=/home/warty/a-saodv/a-saodv_1 modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.8.1-3-386'
CC [M] /home/warty/a-saodv/a-saodv_1/kaodv.o
/home/warty/a-saodv/a-saodv_1/kaodv.c:202: error: invalid lvalue in unary `&'/home/warty/a-saodv/a-saodv_1/kaodv.c:202: error: initializer element is not constant
/home/warty/a-saodv/a-saodv_1/kaodv.c:202: error: (near initialization for `__param_arr_ifname.num')
make[2]: *** [/home/warty/a-saodv/a-saodv_1/kaodv.o] Error 1
make[1]: *** [_module_/home/warty/a-saodv/a-saodv_1] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.8.1-3-386'
make: *** [kaodv.ko] Error 2
Cowarty@ubuntu:~/a-saodv/a-saodv_1 $ make
gcc -Wall -pthread -g -DDEBUG -c -o main.o main.c
gcc -Wall -pthread -g -DDEBUG -c -o list.o list.c
gcc -Wall -pthread -g -DDEBUG -c -o debug.o debug.c
gcc -Wall -pthread -g -DDEBUG -c -o timer_queue.o timer_queue.c
gcc -Wall -pthread -g -DDEBUG -c -o aodv_socket.o aodv_socket.c
gcc -Wall -pthread -g -DDEBUG -c -o aodv_hello.o aodv_hello.c
gcc -Wall -pthread -g -DDEBUG -c -o aodv_neighbor.o aodv_neighbor.c
gcc -Wall -pthread -g -DDEBUG -c -o aodv_timeout.o aodv_timeout.c
gcc -Wall -pthread -g -DDEBUG -c -o routing_table.o routing_table.c
gcc -Wall -pthread -g -DDEBUG -c -o seek_list.o seek_list.c
gcc -Wall -pthread -g -DDEBUG -c -o k_route.o k_route.c
gcc -Wall -pthread -g -DDEBUG -c -o aodv_rreq.o aodv_rreq.c
gcc -Wall -pthread -g -DDEBUG -c -o aodv_rrep.o aodv_rrep.c
gcc -Wall -pthread -g -DDEBUG -c -o aodv_rerr.o aodv_rerr.c
gcc -Wall -pthread -g -DDEBUG -c -o packet_input.o packet_input.c
gcc -Wall -pthread -g -DDEBUG -c -o packet_queue.o packet_queue.c
gcc -Wall -pthread -g -DDEBUG -c -o libipq.o libipq.c
gcc -Wall -pthread -g -DDEBUG -c -o icmp.o icmp.c
gcc -Wall -pthread -g -DDEBUG -c -o saodv_rreq.o saodv_rreq.c
gcc -Wall -pthread -g -DDEBUG -c -o saodv_rrep.o saodv_rrep.c
gcc -Wall -pthread -g -DDEBUG -c -o saodv_rerr.o saodv_rerr.c
gcc -Wall -pthread -g -DDEBUG -c -o key.o key.c
gcc -Wall -pthread -g -DDEBUG -c -o hash.o hash.c
gcc -Wall -pthread -g -DDEBUG -c -o crypto.o crypto.c
gcc -Wall -pthread -g -DDEBUG -c -o saodv_adapt.o saodv_adapt.c
gcc -Wall -pthread -g -DDEBUG -lgcrypt -lgpg-error -o saodvd main.o list.o debu g.o timer_queue.o aodv_socket.o aodv_hello.o aodv_neighbor.o aodv_timeout.o routing_table.o seek_list.o k_route.o aodv_rreq.o aodv_rrep.o aodv_rerr.o packet_input.o packet_queue.o libipq.o icmp.o saodv_rreq.o saodv_rrep.o saodv_rerr.o key.o hash.o crypto.o saodv_adapt.o
make -C /lib/modules/2.6.8.1-3-386/build SUBDIRS=/home/warty/a-saodv/a-saodv_1 modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.8.1-3-386'
CC [M] /home/warty/a-saodv/a-saodv_1/kaodv.o
/home/warty/a-saodv/a-saodv_1/kaodv.c:202: error: invalid lvalue in unary `&'/home/warty/a-saodv/a-saodv_1/kaodv.c:202: error: initializer element is not constant
/home/warty/a-saodv/a-saodv_1/kaodv.c:202: error: (near initialization for `__param_arr_ifname.num')
make[2]: *** [/home/warty/a-saodv/a-saodv_1/kaodv.o] Error 1
make[1]: *** [_module_/home/warty/a-saodv/a-saodv_1] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.8.1-3-386'
make: *** [kaodv.ko] Error 2
Come posso risolvere??? Grazieeeeeeeee :-[
gcc -Wall -pthread -g -DDEBUG -c -o main.o main.c
gcc -Wall -pthread -g -DDEBUG -c -o list.o list.c
gcc -Wall -pthread -g -DDEBUG -c -o debug.o debug.c
gcc -Wall -pthread -g -DDEBUG -c -o timer_queue.o timer_queue.c
gcc -Wall -pthread -g -DDEBUG -c -o aodv_socket.o aodv_socket.c
gcc -Wall -pthread -g -DDEBUG -c -o aodv_hello.o aodv_hello.c
gcc -Wall -pthread -g -DDEBUG -c -o aodv_neighbor.o aodv_neighbor.c
gcc -Wall -pthread -g -DDEBUG -c -o aodv_timeout.o aodv_timeout.c
gcc -Wall -pthread -g -DDEBUG -c -o routing_table.o routing_table.c
gcc -Wall -pthread -g -DDEBUG -c -o seek_list.o seek_list.c
gcc -Wall -pthread -g -DDEBUG -c -o k_route.o k_route.c
gcc -Wall -pthread -g -DDEBUG -c -o aodv_rreq.o aodv_rreq.c
gcc -Wall -pthread -g -DDEBUG -c -o aodv_rrep.o aodv_rrep.c
gcc -Wall -pthread -g -DDEBUG -c -o aodv_rerr.o aodv_rerr.c
gcc -Wall -pthread -g -DDEBUG -c -o packet_input.o packet_input.c
gcc -Wall -pthread -g -DDEBUG -c -o packet_queue.o packet_queue.c
gcc -Wall -pthread -g -DDEBUG -c -o libipq.o libipq.c
gcc -Wall -pthread -g -DDEBUG -c -o icmp.o icmp.c
gcc -Wall -pthread -g -DDEBUG -c -o saodv_rreq.o saodv_rreq.c
gcc -Wall -pthread -g -DDEBUG -c -o saodv_rrep.o saodv_rrep.c
gcc -Wall -pthread -g -DDEBUG -c -o saodv_rerr.o saodv_rerr.c
gcc -Wall -pthread -g -DDEBUG -c -o key.o key.c
gcc -Wall -pthread -g -DDEBUG -c -o hash.o hash.c
gcc -Wall -pthread -g -DDEBUG -c -o crypto.o crypto.c
gcc -Wall -pthread -g -DDEBUG -c -o saodv_adapt.o saodv_adapt.c
gcc -Wall -pthread -g -DDEBUG -lgcrypt -lgpg-error -o saodvd main.o list.o debu g.o timer_queue.o aodv_socket.o aodv_hello.o aodv_neighbor.o aodv_timeout.o routing_table.o seek_list.o k_route.o aodv_rreq.o aodv_rrep.o aodv_rerr.o packet_input.o packet_queue.o libipq.o icmp.o saodv_rreq.o saodv_rrep.o saodv_rerr.o key.o hash.o crypto.o saodv_adapt.o
make -C /lib/modules/2.6.8.1-3-386/build SUBDIRS=/home/warty/a-saodv/a-saodv_1 modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.8.1-3-386'
CC [M] /home/warty/a-saodv/a-saodv_1/kaodv.o
/home/warty/a-saodv/a-saodv_1/kaodv.c:202: error: invalid lvalue in unary `&'/home/warty/a-saodv/a-saodv_1/kaodv.c:202: error: initializer element is not constant
/home/warty/a-saodv/a-saodv_1/kaodv.c:202: error: (near initialization for `__param_arr_ifname.num')
make[2]: *** [/home/warty/a-saodv/a-saodv_1/kaodv.o] Error 1
make[1]: *** [_module_/home/warty/a-saodv/a-saodv_1] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.8.1-3-386'
make: *** [kaodv.ko] Error 2
Cowarty@ubuntu:~/a-saodv/a-saodv_1 $ make
gcc -Wall -pthread -g -DDEBUG -c -o main.o main.c
gcc -Wall -pthread -g -DDEBUG -c -o list.o list.c
gcc -Wall -pthread -g -DDEBUG -c -o debug.o debug.c
gcc -Wall -pthread -g -DDEBUG -c -o timer_queue.o timer_queue.c
gcc -Wall -pthread -g -DDEBUG -c -o aodv_socket.o aodv_socket.c
gcc -Wall -pthread -g -DDEBUG -c -o aodv_hello.o aodv_hello.c
gcc -Wall -pthread -g -DDEBUG -c -o aodv_neighbor.o aodv_neighbor.c
gcc -Wall -pthread -g -DDEBUG -c -o aodv_timeout.o aodv_timeout.c
gcc -Wall -pthread -g -DDEBUG -c -o routing_table.o routing_table.c
gcc -Wall -pthread -g -DDEBUG -c -o seek_list.o seek_list.c
gcc -Wall -pthread -g -DDEBUG -c -o k_route.o k_route.c
gcc -Wall -pthread -g -DDEBUG -c -o aodv_rreq.o aodv_rreq.c
gcc -Wall -pthread -g -DDEBUG -c -o aodv_rrep.o aodv_rrep.c
gcc -Wall -pthread -g -DDEBUG -c -o aodv_rerr.o aodv_rerr.c
gcc -Wall -pthread -g -DDEBUG -c -o packet_input.o packet_input.c
gcc -Wall -pthread -g -DDEBUG -c -o packet_queue.o packet_queue.c
gcc -Wall -pthread -g -DDEBUG -c -o libipq.o libipq.c
gcc -Wall -pthread -g -DDEBUG -c -o icmp.o icmp.c
gcc -Wall -pthread -g -DDEBUG -c -o saodv_rreq.o saodv_rreq.c
gcc -Wall -pthread -g -DDEBUG -c -o saodv_rrep.o saodv_rrep.c
gcc -Wall -pthread -g -DDEBUG -c -o saodv_rerr.o saodv_rerr.c
gcc -Wall -pthread -g -DDEBUG -c -o key.o key.c
gcc -Wall -pthread -g -DDEBUG -c -o hash.o hash.c
gcc -Wall -pthread -g -DDEBUG -c -o crypto.o crypto.c
gcc -Wall -pthread -g -DDEBUG -c -o saodv_adapt.o saodv_adapt.c
gcc -Wall -pthread -g -DDEBUG -lgcrypt -lgpg-error -o saodvd main.o list.o debu g.o timer_queue.o aodv_socket.o aodv_hello.o aodv_neighbor.o aodv_timeout.o routing_table.o seek_list.o k_route.o aodv_rreq.o aodv_rrep.o aodv_rerr.o packet_input.o packet_queue.o libipq.o icmp.o saodv_rreq.o saodv_rrep.o saodv_rerr.o key.o hash.o crypto.o saodv_adapt.o
make -C /lib/modules/2.6.8.1-3-386/build SUBDIRS=/home/warty/a-saodv/a-saodv_1 modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.8.1-3-386'
CC [M] /home/warty/a-saodv/a-saodv_1/kaodv.o
/home/warty/a-saodv/a-saodv_1/kaodv.c:202: error: invalid lvalue in unary `&'/home/warty/a-saodv/a-saodv_1/kaodv.c:202: error: initializer element is not constant
/home/warty/a-saodv/a-saodv_1/kaodv.c:202: error: (near initialization for `__param_arr_ifname.num')
make[2]: *** [/home/warty/a-saodv/a-saodv_1/kaodv.o] Error 1
make[1]: *** [_module_/home/warty/a-saodv/a-saodv_1] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.8.1-3-386'
make: *** [kaodv.ko] Error 2
Come posso risolvere??? Grazieeeeeeeee :-[