LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-25-2004, 11:02 AM   #1
jocornhill
LQ Newbie
 
Registered: Apr 2004
Location: Guildford
Distribution: REDHAT 9.0
Posts: 2

Rep: Reputation: 0
Unhappy Problems compiling NISTNET


I am trying to compile NISTNET version 12 on REDHAT 9.0 kernel rev 2.4.22

and I get the following error message after I try the make command

. I am not a C programmer and so I do not know what to do next.

Has anyone any ideas?

Thanks

jocornhill







gcc -I. -I../include -Wall -Wstrict-prototypes -fno-strength-reduce -pipe -m486
-malign-loops=2 -malign-jumps=2 -malign-functions=2 -DDEVHITBOX=\"/dev/hitbox\"
-DHITMAJOR=62 -DHITMINOR=0 -DDEVNISTNET=\"/dev/nistnet\" -DNISTNETMAJOR=62 -
DNISTNETMINOR=1 -DDEVMUNGEBOX=\"/dev/mungebox\" -DMUNGEMAJOR=63 -DDEVSPYBOX=\"/d
ev/spybox\" -DSPYMAJOR=64 -DCONFIG_ECN -DCONFIG_DELAYSTART -DCONFIG_RTC_AGGRESS
IVE -O -I.. -I../include -c -o nistnetlib.o nistnetlib.c
`-m486' is deprecated. Use `-march=i486' or `-mcpu=i486' instead.
cc1: warning: -malign-loops is obsolete, use -falign-loops
cc1: warning: -malign-jumps is obsolete, use -falign-jumps
cc1: warning: -malign-functions is obsolete, use -falign-functions
In file included from ../include/nistnet.h:151,
from ../include/uincludes.h:34,
from nistnetlib.c:12:
/usr/include/netinet/igmp.h:103: error: syntax error before "IGMP_SLEEPING_MEMBE
R"
In file included from ../include/uincludes.h:34,
from nistnetlib.c:12:
../include/nistnet.h:170: error: field `igmp' has incomplete type
../include/nistnet.h:172: error: syntax error before '}' token
make[1]: *** [nistnetlib.o] Error 1
make[1]: Leaving directory `/nistnet/nistnet/lib'
make: *** [sub_dirs] Error 2
 
Old 05-03-2004, 04:39 PM   #2
shrevz
LQ Newbie
 
Registered: May 2004
Posts: 1

Rep: Reputation: 0
nistnet build problem

The nistnet build problem:

../include/nistnet.h:170: field `igmp’ has incomplete type

can be solved by swapping two lines in <nistnet-dir>/include/nistnet.h
These are lines 161 and 162 - the problem being that the header
/usr/include/linux/igmp.h is no longer included implicitly by including
/usr/include/netinet/igmp.h

Good luck
--Shai
 
Old 05-05-2004, 03:23 AM   #3
birus
LQ Newbie
 
Registered: May 2004
Distribution: debian
Posts: 6

Rep: Reputation: 0
I had the same error as jocornhill, on Debian 3.0 kernel 2.4.22.
I tried both swapping the two lines in nistnet.h as shrevz suggests and applying the patches found in http://w3.mivlmd.cablespeed.com/~tmolina/ (of course not the two tries at the same time!!!).

In both cases,the problem related to 'igmp' field seems to be solved, but a different error occurs:


[.................]
make[1]:Entering directory `/usr/src/nistnet/monitor'
making all in ./TextField-1.01...
make[2]: Entering directory `/usr/src/nistnet/monitor/TextField-1.01'
gcc -O2 -fno-strength-reduce -I/usr/X11R6/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -DFUNCPROTO=15 -DNARROWPROTO -g -Wall -c -o TextField.o TextField.c
gcc -O2 -fno-strength-reduce -I/usr/X11R6/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -DFUNCPROTO=15 -DNARROWPROTO -g -Wall -c -o demo.o demo.c
demo.c:27: X11/Xaw/Form.h: No such file or directory
make[2]: *** [demo.o] Error 1
make[2]: Leaving directory `/usr/src/nistnet/monitor/TextField-1.01'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/nistnet/monitor'
make: *** [sub_dirs] Error 2


Jocorn, did you have the same problem or did you succeed in installing nistnet?
Can anyone help me?
Thanks in advance!!!!

birus
 
Old 05-05-2004, 03:44 AM   #4
jocornhill
LQ Newbie
 
Registered: Apr 2004
Location: Guildford
Distribution: REDHAT 9.0
Posts: 2

Original Poster
Rep: Reputation: 0
Angry Compiling Nistnet

i have not been able to try the suggestion made by shrevz, someone trashed my linux box over the bank holiday. I will have to build a new ome
and give it a go.


Thanks


Joe
 
Old 05-05-2004, 08:23 AM   #5
fernandosc
LQ Newbie
 
Registered: Apr 2004
Posts: 1

Rep: Reputation: 0
Problems compiling nistnet

Hello people,
I solved compile problems in nistnet on Fedora Core 1.

I was trying to compile nistnet on fedora core and it occurred:

In file included from ../include/uincludes.h:35,
from nistnetlib.c:12:
../include/nistnet.h:171: error: field `igmp' has incomplete type

I forced nistnet.h to include the <linux/igmp.h>

//#include <linux/igmp.h> (line 161)
#endif
#include <linux/igmp.h>

I tested it and another compile error happened:

In file included from ../include/nistnet.h:163,
from ../include/uincludes.h:35,
from nistnetlib.c:12:
/usr/include/linux/igmp.h:29: error: syntax error before "__u8"
/usr/include/linux/igmp.h:31: error: syntax error before "csum"
/usr/include/linux/igmp.h:32: error: syntax error before "group"
In file included from ../include/uincludes.h:35,
from nistnetlib.c:12:

I just added <linux/types.h> to uincludes.h becase this header has the definitions for these types.
I tested again , coompiled some module and binaries but another error occurred as follow:
hitbox.c:177:17: missing terminating " character
hitbox.c: In function `Usage':
hitbox.c:181: error: `a' undeclared (first use in this function)
hitbox.c:181: error: (Each undeclared identifier is reported only once
hitbox.c:181: error: for each function it appears in.)
hitbox.c:181: error: syntax error before "src"
hitbox.c:181: error: stray '\' in program
hitbox.c:181: error: syntax error at '#' token
hitbox.c:183: error: stray '\' in program
hitbox.c:183: error: syntax error at '#' token
hitbox.c:185: error: stray '\' in program
hitbox.c:185: error: stray '\' in program
hitbox.c:185: error: stray '\' in program
hitbox.c:185: error: stray '\' in program
hitbox.c:185: error: stray '\' in program
hitbox.c:185: error: stray '\' in program
hitbox.c:185: error: stray '\' in program
hitbox.c:191:47: missing terminating " character

I just commented some lines in function Usage() from hitbox.c and could compile nistnet.

void
Usage(void)
{
fprintf(stderr, "Usage: hitbox\n\
-u up (on)\n\
-d down (off)\n\
//#ifdef CONFIG_ECN
-a src dest delay delsigma bandwidth drop dup drdmin drdmax drdcongestion add new\n\
//#else
// -a src dest delay delsigma bandwidth drop dup drdmin drdmax add new\n\
//#endif
-r src dest remove\n\
-s src dest see stats\n\
-S src dest see stats continuously\n\
-R read table\n\
-D debug on\n\
-U debug off\n\
-G global stats\n");
exit(1);
}


After it i loaded the nistnet module using "insmod -f" because Fedora check for version.


Bye

Last edited by fernandosc; 05-05-2004 at 12:57 PM.
 
Old 05-05-2004, 09:35 AM   #6
birus
LQ Newbie
 
Registered: May 2004
Distribution: debian
Posts: 6

Rep: Reputation: 0
On my side, I managed to solve the compiling problems downloading some debian packages (like Xam3d... I can no longer remember thier names!).
As far as I can see, Nist net is not really "ready-to-use", and everybody has to find out his own necessary adjustments... But these are just newbie impressions, I don't want to bore anyone so goodbye everybody!

birus
 
Old 08-20-2004, 11:39 AM   #7
mikej
LQ Newbie
 
Registered: Aug 2004
Posts: 1

Rep: Reputation: 0
Requirements for building NISTNET

I ran into all of the problems discussed above - The solution is to build NISTNET on a system built with gcc 2.95 (I used debian woody).

The original poster, building on redhat9, was using a variant of gcc3 which NISTNET was never tested with. I was able eventually (after making a few code changes) to get NISTNET to compile on a similar system, but loading the nistnet kernel module would hang the kernel immediately after initializing the timer.

It may be possible to get NISTNET to build and run on a gcc3 system - I don't know. I wasn't able to do it, though, and having a system on which glibc, the kernel, and NISTNET were all built with the same compiler worked for me.

Last edited by mikej; 08-20-2004 at 11:40 AM.
 
  


Reply



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
Nistnet installation kiran_challa Linux - Newbie 1 07-07-2005 01:01 PM
problems with Nistnet Installation kiran_challa Linux - General 1 07-05-2005 07:33 AM
Problems with Nistnet Installation kiran_challa Linux - Newbie 1 07-05-2005 07:33 AM
Please Help - Nistnet shaunyuen Linux - Networking 2 01-13-2003 04:21 AM
Need help - Nistnet shaunyuen Linux - Software 1 01-13-2003 01:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:51 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