jserink Veteran
Joined: 30 Jan 2004 Posts: 1019
|
Posted: Mon Jan 01, 2007 6:30 pm Post subject: Compiling ipsend2.1a |
|
|
Hi All:
I have some devices I want to so some testing on and need the ability to send large ip packets...larger than 6535 bytes so have googled my way to the ipsend2.1a portion of the ipfilter package.
Here is what I get when I trt to compile:
johnathlonlinux ipsend2.1a # make linux20
make linuxrev 'LINUXK="LINUXK=-DLINUX=0200"' \
"INC=-I/usr/src/linux/include" "LLIB=-lfl" "ELIB=-lelf"
make[1]: Entering directory `/home/jserink/ipsend2.1a'
make ipsend "OBJS=ipsend.o ip.o ipsopt.o y.tab.o lex.yy.o" "UNIXOBJS=lsock.o slinux.o larp.o" "CC=cc" \
CFLAGS="-g -I. -Iipf -I/usr/src/linux/include -DDOSOCKET" "LINUXK=-DLINUX=0200"
make[2]: Entering directory `/home/jserink/ipsend2.1a'
cc -g -I. -Iipf -I/usr/src/linux/include -DDOSOCKET -DLINUX=0200 -c ipsend.c -o ipsend.o
In file included from ipsend.h:24,
from ipsend.c:34:
ipf/ip_compat.h:432: error: syntax error before "__u16"
ipf/ip_compat.h:432: warning: no semicolon at end of struct or union
ipf/ip_compat.h:433: warning: data definition has no type or storage class
I did google some stuff up that said it could be due to gcc version changes.
Here is my machine:
johnathlonlinux jserink # gcc --version
gcc (GCC) 3.4.6 (Gentoo 3.4.6-r2, ssp-3.4.6-1.0, pie-8.7.9)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
johnathlonlinux jserink # uname -a
Linux johnathlonlinux 2.6.16-ck3 #15 PREEMPT Tue Dec 19 00:21:52 SGT 2006 i686 Mobile AMD Athlon(tm) XP 2500+ AuthenticAMD GNU/Linux
Any tips on how to get this thing built?
Are there any options in gcc 3.4.6 that would allow it to behave like and interprit things like older versions of gcc?
Cheers,
John |
|