RE: Linux compiling problems

Jackson Robert (
Tue, 10 Aug 1999 06:50:54 -0500

Which version of Linux are you running? I was able to compile it fine on
Redhat 5.2 and Redhat 6.0, using gcc as the compiler. No other changes
where made to the makefile. If I get a chance today I will attempt a
compile using the options you denoted (-O -D$(LOG_FILE) -DUSE_LOOPER


-----Original Message-----
From: Vivek Mittal []
Sent: Monday, August 09, 1999 7:43 PM
Subject: Linux compiling problems


I've having trouble compiling Netperf under Linux. I've compiled the same
under Solaris using the flags -O -D$(LOG_FILE) -DUSE_LOOPER -DHISTOGRAM
with no problems. But when I try it under Linux, I get the following

cc -O -DDEBUG_LOG_FILE="\"/tmp/netperf.debug\"" -DUSE_LOOPER -DHISTOGRAM
-c nettest_bsd.c -o nettest_bsd.o
nettest_bsd.c:109: storage size of `time_one' isn't known
nettest_bsd.c:110: storage size of `time_two' isn't known
make: *** [nettest_bsd.o] Error 1

On our machine cc is just a link to gcc, so checking the netperf archive I
changed -O to -O3 and added -ansi. Now I get the following errors.

cc -O3 -ansi -DDEBUG_LOG_FILE="\"/tmp/netperf.debug\"" -DUSE_LOOPER
-DHISTOGRAM -c netsh.c -o netsh.o
In file included from netsh.c:14:
/usr/include/sys/ipc.h:29: warning: #warning "Files using this header must
be compiled with _SVID_SOURCE or _XOPEN_SOURCE"
In file included from netsh.c:14:
/usr/include/sys/ipc.h:35: parse error before `ftok'
/usr/include/sys/ipc.h:35: warning: data definition has no type or storage
make: *** [netsh.o] Error 1

Can some one help?

Thanks in advance.

PS I have sent a request to be added to the list but maynot have been
added at the time of this posting, so please send a copy to