Skip to contentSkip to conversation

iproute2 problems

LARTC Bill Williamson 2 participants 2 messages Nov 16, 2001

lore
Share & tools
lore
#0 lore raw

I've got a slackware8 system with kernel 2.4.13 self-installed.

I selected all the advanced routing/etc options (i figured i'd rather have a slightly bloated kernel and more options than having to recompile) as include.

I couldn't find the ip tool on my system, so i downloaded the latest from the location in the HOWTO.
When compiling it, I hit this:

---------------
make[1]: Entering directory `/usr/src/iproute2/lib'
gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -g -I../include-glibc -inclu de
../include-glibc/glibc-bugs.h -I/usr/src/linux/include -I../include -DRESOLV
E_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 `/usr/src/iproute2/lib'
make: *** [all] Error 2
---------------

Do I have something missing/wrong?
I set this path in the makefile and commented out the 2 lines for if you are using bind, since I don't have bind and am using glibc.
---------------
#options if you compile with libc5, and without a bind>=4.9.4 libresolv LDLIBSADDLIB=inet_ntop.o inet_pton.o
---------------

Any help is greatly appreciated.

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/

#1 lore raw
Quoted 3 lines

Do I have something missing/wrong?
I set this path in the makefile and commented out the 2 lines for if you are using bind, since I don't have bind and am using glibc.

It's because of a change in recent kernels. Apparently ETH_P_ECHO was bogus anyways, and was removed. Search google groups for more details.

The fix is simple. In lib/ll_proto.c, just delete line 36. This line:

	__PF(ECHO,echo)

Cheers,
Jason.

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/