LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-03-2010, 01:23 AM   #1
mnaveed29
LQ Newbie
 
Registered: Jan 2009
Posts: 5

Rep: Reputation: 0
Unhappy 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.
 
Old 06-03-2010, 06:28 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
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
 
Old 06-03-2010, 10:57 PM   #3
mnaveed29
LQ Newbie
 
Registered: Jan 2009
Posts: 5

Original Poster
Rep: Reputation: 0
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.
 
Old 06-03-2010, 11:18 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
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 ?????

Last edited by John VV; 06-03-2010 at 11:20 PM.
 
Old 06-04-2010, 10:07 AM   #5
mnaveed29
LQ Newbie
 
Registered: Jan 2009
Posts: 5

Original Poster
Rep: Reputation: 0
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.
 
Old 06-04-2010, 10:12 AM   #6
mnaveed29
LQ Newbie
 
Registered: Jan 2009
Posts: 5

Original Poster
Rep: Reputation: 0
I mean I have used linux before and comfortable with it but little problem in compiling this older software.
 
Old 06-04-2010, 01:03 PM   #7
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
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 .

Last edited by John VV; 06-04-2010 at 01:13 PM.
 
Old 06-05-2010, 07:49 AM   #8
mnaveed29
LQ Newbie
 
Registered: Jan 2009
Posts: 5

Original Poster
Rep: Reputation: 0
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.
 
Old 06-05-2010, 07:21 PM   #9
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
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 .

Last edited by John VV; 06-05-2010 at 09:22 PM.
 
Old 09-26-2011, 12:44 PM   #10
turki_00
LQ Newbie
 
Registered: Mar 2011
Posts: 11

Rep: Reputation: 0
Hi mnaveed29,

am facing the same problem,

did you manage to find a solution?
 
Old 07-04-2016, 02:07 PM   #11
sac14
LQ Newbie
 
Registered: Jul 2016
Posts: 1

Rep: Reputation: Disabled
Facing same problem

This KUTE-1.4 sucks...

Having same problem as persists in the thread,

Has anybody found some work around?
 
Old 07-05-2016, 06:37 AM   #12
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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.
 
  


Reply

Tags
kute



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RTP traffic generator ssenthilkumar Linux - Software 2 06-26-2009 10:17 AM
traffic generator tool ssenthilkumar Linux - Networking 2 05-22-2009 09:41 AM
traffic generator tools OTIM Linux - Networking 3 05-19-2008 10:01 AM
Traffic Generator Bugger Linux - Software 3 02-20-2006 05:17 AM
Linux traffic generator euric Linux - Networking 2 11-07-2003 02:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration