I've tryed to patch iproute2 like James had told me but i'e the follow er=
ror
[root@localhost iproute2]# make
make[1]: Entering directory `/home/efacchin/iproute2/lib'
gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -g -I../include-glibc -in=
clude
../include-glibc/glibc-bugs.h -I/usr/src/linux-2.4.20/include/ -I../inclu=
de
-c -o ll_map.o ll_map.c
In file included from /usr/include/sys/socket.h:35,
from ll_map.c:18:
../include-glibc/bits/socket.h:33: warning: redefinition of `socklen_t'
/usr/include/unistd.h:247: warning: `socklen_t' previously declared here
gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -g -I../include-glibc -in=
clude
../include-glibc/glibc-bugs.h -I/usr/src/linux-2.4.20/include/ -I../inclu=
de
-c -o libnetlink.o libnetlink.c
In file included from /usr/include/sys/socket.h:35,
from /usr/include/net/if_arp.h:29,
from libnetlink.c:18:
../include-glibc/bits/socket.h:33: warning: redefinition of `socklen_t'
/usr/include/unistd.h:247: warning: `socklen_t' previously declared here
ar rcs libnetlink.a ll_map.o libnetlink.o
gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -g -I../include-glibc -in=
clude
../include-glibc/glibc-bugs.h -I/usr/src/linux-2.4.20/include/ -I../inclu=
de
-c -o utils.o utils.c
In file included from /usr/include/sys/socket.h:35,
from utils.c:22:
../include-glibc/bits/socket.h:33: warning: redefinition of `socklen_t'
/usr/include/unistd.h:247: warning: `socklen_t' previously declared here
In file included from utils.c:26:
/usr/include/arpa/inet.h:35: parse error before `inet_addr'
/usr/include/arpa/inet.h:35: warning: data definition has no type or stor=
age
class
/usr/include/arpa/inet.h:38: parse error before `inet_lnaof'
/usr/include/arpa/inet.h:38: warning: data definition has no type or stor=
age
class
/usr/include/arpa/inet.h:42: parse error before `__net'
/usr/include/arpa/inet.h:46: parse error before `inet_netof'
/usr/include/arpa/inet.h:46: warning: data definition has no type or stor=
age
class
/usr/include/arpa/inet.h:50: parse error before `inet_network'
/usr/include/arpa/inet.h:50: warning: data definition has no type or stor=
age
class
/usr/include/arpa/inet.h:74: parse error before `inet_aton'
/usr/include/arpa/inet.h:74: warning: data definition has no type or stor=
age
class
/usr/include/arpa/inet.h:78: parse error before `__net'
make[1]: *** [utils.o] Error 1
make[1]: Leaving directory `/home/efacchin/iproute2/lib'
make: *** [all] Error 2
I've tryed to gave statically socklen.h but it gave me follow error
[root@localhost iproute2]# make
make[1]: Entering directory `/home/efacchin/iproute2/lib'
gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -g -I../include-glibc -in=
clude
../include-glibc/glibc-bugs.h -I/usr/src/linux-2.4.20/include -I../includ=
e
-c -o ll_types.o ll_types.c
In file included from /usr/include/sys/socket.h:35,
from ll_types.c:18:
../include-glibc/bits/socket.h:33: warning: redefinition of `socklen_t'
/usr/include/unistd.h:247: warning: `socklen_t' previously declared here
gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -g -I../include-glibc -in=
clude
../include-glibc/glibc-bugs.h -I/usr/src/linux-2.4.20/include -I../includ=
e
-c -o ll_proto.o ll_proto.c
In file included from /usr/include/sys/socket.h:35,
from ll_proto.c:18:
../include-glibc/bits/socket.h:33: warning: redefinition of `socklen_t'
/usr/include/unistd.h:247: warning: `socklen_t' previously declared here
ll_proto.c:36: `ETH_P_ECHO' undeclared here (not in a function)
ll_proto.c:36: initializer element is not constant
ll_proto.c:36: (near initialization for `llproto_names[1].id')
make[1]: *** [ll_proto.o] Error 1
make[1]: Leaving directory `/home/efacchin/iproute2/lib'
make: *** [all] Error 2
[root@localhost iproute2]# grep -nr ETH_P_ECHO *
[root@localhost iproute2]# grep -nr ETH_P_ECHO /usr/src/linux-2.4.20/*
[root@localhost iproute2]# kdeinit: Fatal IO error: client killed
kdeinit: sending SIGHUP to children.
kdeinit: sending SIGTERM to children.
kdeinit: Exit.
[1]+ Done kwrite /usr/include/arpa/inet.h
Can you help me?
__________________________________________________________________
Tiscali ADSL, fino a 9 MESI GRATIS sull'offerta Tiscali ADSL Light Mega!
Tiscali ADSL non teme confronti! Abbonati subito.
http://point.tiscali.it/adsl/index.shtml
|