Linux compiling problems

Vivek Mittal (vivek@yoyo.cc.monash.edu.au)
Tue, 10 Aug 1999 10:42:41 +1000 (EST)

Hi,

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
errors.

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
class
make: *** [netsh.o] Error 1

Can some one help?

Thanks in advance.

Vivek
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
vivek@yoyo.cc.monash.edu.au