Title: RE: newbie problem? Compilation error:ll_proto.c:36: `ETH_P_ECHO' undeclared

Hi,

Has anyone already answered this ?
Actually you are trying to compile iproute2, which is not netfilter/
iptables related.

However, your compile error can be fixed by commenting out line
36 of lib/ll_proto.c, like this:

/* __PF(ECHO,echo) */

Regards,
Filip


-----Original Message-----
From:   Magnus Von Rosen [mailto:[EMAIL PROTECTED]]
Sent:   Wed 15/05/2002 11:18
To:     '[EMAIL PROTECTED]'
Cc:    
Subject:        newbie problem? Compilation error:ll_proto.c:36: `ETH_P_ECHO' undeclared
Howdy,

Im working on a thesis and I'm learning Linux as I go along.
I tried to compile the 1.2.6a IPtables at my RedHat-machine with kernel 2.4.18.
I get the following message when running "make".

gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -g -I../include-glibc -include ../include-glibc/glibc-bugs.h -I/usr/src/linux/include -I../include -DRESOLVE_HOSTNAMES   -c -o ll_proto.o ll_proto.c
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/magnusvr/tmp/iproute2/lib'
make: *** [all] Error 2


Any help is appreciated. Thanks,

Magnus von Rosen, Sweden.
[EMAIL PROTECTED]



Reply via email to