LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Problems in compiling Kute traffic generator v 1.4 on Fedora 13 (https://www.linuxquestions.org/questions/linux-networking-3/problems-in-compiling-kute-traffic-generator-v-1-4-on-fedora-13-a-811859/)

mnaveed29 06-03-2010 01:23 AM

Problems in compiling Kute traffic generator v 1.4 on Fedora 13
 
I am getting following errors when i run "make" to compile kute traffic generator:

[root@localhost kute-1.4]# make
make modules
make[1]: Entering directory `/kute-1.4'
make -C /lib/modules/2.6.33.3-85.fc13.i686.PAE/build SUBDIRS=/kute-1.4 modules
make[2]: Entering directory `/usr/src/kernels/2.6.33.3-85.fc13.i686.PAE'
CC [M] /kute-1.4/kute_snd.o
/kute-1.4/kute_snd.c: In function ‘build_udp_packet’:
/kute-1.4/kute_snd.c:388: warning: passing argument 1 of ‘ip_route_output_key’ from incompatible pointer type
include/net/route.h:113: note: expected ‘struct net *’ but argument is of type ‘struct rtable **’
/kute-1.4/kute_snd.c:388: warning: passing argument 2 of ‘ip_route_output_key’ from incompatible pointer type
include/net/route.h:113: note: expected ‘struct rtable **’ but argument is of type ‘struct flowi *’
/kute-1.4/kute_snd.c:388: error: too few arguments to function ‘ip_route_output_key’
/kute-1.4/kute_snd.c:439: error: ‘struct sk_buff’ has no member named ‘dst’
/kute-1.4/kute_snd.c:444: error: ‘struct sk_buff’ has no member named ‘mac’
/kute-1.4/kute_snd.c:446: error: ‘struct sk_buff’ has no member named ‘nh’
/kute-1.4/kute_snd.c:447: error: ‘struct sk_buff’ has no member named ‘h’
/kute-1.4/kute_snd.c: In function ‘slow_output’:
/kute-1.4/kute_snd.c:521: error: ‘struct sk_buff’ has no member named ‘mac’
/kute-1.4/kute_snd.c:521: error: ‘struct sk_buff’ has no member named ‘mac’
/kute-1.4/kute_snd.c: In function ‘fast_output’:
/kute-1.4/kute_snd.c:538: error: ‘struct net_device’ has no member named ‘xmit_lock’
/kute-1.4/kute_snd.c:539: error: ‘struct net_device’ has no member named ‘xmit_lock_owner’
/kute-1.4/kute_snd.c:548: error: ‘struct net_device’ has no member named ‘hard_start_xmit’
/kute-1.4/kute_snd.c:554: error: ‘struct net_device’ has no member named ‘xmit_lock_owner’
/kute-1.4/kute_snd.c:555: error: ‘struct net_device’ has no member named ‘xmit_lock’
/kute-1.4/kute_snd.c: In function ‘send_udp_packet’:
/kute-1.4/kute_snd.c:571: error: ‘struct sk_buff’ has no member named ‘nh’
/kute-1.4/kute_snd.c:718:27: error: macro "INIT_WORK" passed 3 arguments, but takes just 2
/kute-1.4/kute_snd.c: In function ‘init_module’:
/kute-1.4/kute_snd.c:718: error: ‘INIT_WORK’ undeclared (first use in this function)
/kute-1.4/kute_snd.c:718: error: (Each undeclared identifier is reported only once
/kute-1.4/kute_snd.c:718: error: for each function it appears in.)
/kute-1.4/kute_snd.c:719:30: error: macro "PREPARE_WORK" passed 3 arguments, but takes just 2
/kute-1.4/kute_snd.c:719: error: ‘PREPARE_WORK’ undeclared (first use in this function)
make[3]: *** [/kute-1.4/kute_snd.o] Error 1
make[2]: *** [_module_/kute-1.4] Error 2
make[2]: Leaving directory `/usr/src/kernels/2.6.33.3-85.fc13.i686.PAE'
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/kute-1.4'
make: *** [all] Error 2

Kindly help me.

Thanks in advance.

John VV 06-03-2010 06:28 PM

a link would help
is it this
http://caia.swin.edu.au/genius/tools/kute/
"KUTE works only with Linux 2.6 (tested up to 2.6.16) and so far has been tested only with Ethernet hardware. "
if so it will need a rewrite to get complaint with gcc 4.5

it might build on fedora 13 with the legacy gcc34

mnaveed29 06-03-2010 10:57 PM

Thanks for the help.

Can you please tell me that what I need to do to install gcc3.4 on fedora. Like should I remove my current gcc and which dependencies I would need for gcc3.4 and if possible tell their versions.

John VV 06-03-2010 11:18 PM

it is in the default yum fedora repo

? have you read the fedora docs ??????
http://docs.fedoraproject.org/en-US/index.html

Code:

yum search gcc
it is listed.

and the legacy gcc34 is DESIGNED to be installed along with gcc4.5
i take it that you have never used Linux before ?????

mnaveed29 06-04-2010 10:07 AM

Yes I am reasonably comfortable with linux.

I have to compile using "make" command. So, then I will need to change default gcc to gcc34?

I tried by removing gcc4.5 and gcc3.4 was not working then.

mnaveed29 06-04-2010 10:12 AM

I mean I have used linux before and comfortable with it but little problem in compiling this older software.

John VV 06-04-2010 01:03 PM

Quote:

i take it that you have never used Linux before ?????
i ask because from your answer it looks like you have never used fedora , and yum , or any rpm based distro .

this is fedora

DO NOT REMOVE gcc 4.5

but install the legacy gcc34 alongside it

it was made to do this !!!
it is in the fedora default repo

look for it !!!
Code:

yum search gcc
it might also be called compact-gcc3.4

also there is a whole group you need to install

read " man yum "

you need to install the legacy software development group using groupinstall
Code:

yum grouplist
--- then install it --
yum groupinstall " Legacy???? ( the full name "

--------- edit ---------------
you might want to read the fedora documentation -- they have a very well maintained wiki and project
http://docs.fedoraproject.org/en-US/index.html

--- also be advised --
fedora is a very bad choice for a server
it has a very short life spam 13 months
also seeing as it is a "bleeding/cutting edge" distro NOT EVERY older program will run on it .

mnaveed29 06-05-2010 07:49 AM

Thanks for your your concern.

I installed the legacy software development group, but, it still doesn't work, giving the same problem.

Can you please tell me some other way.

John VV 06-05-2010 07:21 PM

Quote:

I installed the legacy software development group, but, it still doesn't work, giving the same problem.
did you export gcc=gcc34 ,CC=gcc34 , or edit the makefile ?


i am reading the readme ( did you know that the readme was last edited on" Tue 06 Mar 2007 08:11:23 PM EST" -- in 2007 .
and most of the code was last updated in 2006

there are patches for VERY VERY old kernels but not any for new ones .

rewrite the code to work on a modern os .

or find something else
from the readme
Quote:


2. Patch the kernel if the kute receiver shall be used with either the
kute-hook-patch or the kute-udphandler-patch (ONLY newer kernels)
cd /usr/src/linux
a. fast mode
patch -p1 < <dir>/kute-1.4/linux-2.6.4-52-kute-hook-patch
enable -DGRAB_EARLY in Makefile
b. normal mode
patch -p1 < <dir>/kute-1.4/linux-2.6.16-13-kute-udphandler-patch
(this patch is NOT needed for early 2.6 kernels e.g. 2.6.4)
YOU WILL need to make a patch for 2.6.33 from scratch .

turki_00 09-26-2011 12:44 PM

Hi mnaveed29,

am facing the same problem,

did you manage to find a solution?

sac14 07-04-2016 02:07 PM

Facing same problem
 
This KUTE-1.4 sucks...

Having same problem as persists in the thread,

Has anybody found some work around?

knudfl 07-05-2016 06:37 AM

Post #11, @sac14 : Welcome to LQ.

Kute requires kernel-2.6.16 or an earlier 2.6.xx.

Fedora 5 has kernel-2.6.15, and may be OK with Kute.


All times are GMT -5. The time now is 02:00 PM.