RE: Linux compiling problems

Vivek Mittal (vivek@yoyo.cc.monash.edu.au)
Wed, 11 Aug 1999 08:50:59 +1000 (EST)

I am running Redhat 5.2. The error comes in with the -DHISTOGRAM option.
I remember compiling it fine when that option wasn't selected.

Vivek

On Tue, 10 Aug 1999, Jackson Robert (R&D) wrote:

> 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
> -DHISTOGRAM).
>
> Rob
>
> -----Original Message-----
> From: Vivek Mittal [mailto:vivek@yoyo.cc.monash.edu.au]
> Sent: Monday, August 09, 1999 7:43 PM
> To: netperf-talk@hpisrdq.cup.hp.com
> Subject: Linux compiling problems
>
>
> 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
>