Re: iperf 2.0.2 compile on FreeBSD 4.10


On Wed, 6 Jul 2005, Jim Mozley wrote:

> I'm trying to compile iperf 2.0.2 on FreeBSD 4.10 with no success. I've
>
> I see the following errors whatever I seem to do:
>
> make  all-recursive
> Making all in compat
> source='Thread.c' object='Thread.o' libtool=no  DEPDIR=.deps depmode=gcc
> /bin/sh ../depcomp  /usr/bin/cc -DHAVE_CONFIG_H -I. -I. -I..
> -I../include  -I../include    -O2 -c Thread.c
> In file included from Thread.c:71:
> ../include/headers.h:183: syntax error before `max_size_t'
> ../include/headers.h:183: warning: data definition has no type or
> storage class


> Can anyone help with this?
>
> Compiler is gcc 2.95.4, the one installed with FreeBSD 4.10.

Do you have the "uintmax_t" type defined in <stdint.h> ? It seems this
comes from ANSI C99, maybe to recent for FreeBSD 4.10 ?

If it's not there, replacing it in "iperf/include/headers.h" by
anything big (like "unsigned long long" for instance) should be a very
safe workaround.

Cheers,

Marc.


-- 
"Je n'ai fait cette lettre-ci plus longue que parce que je n'ai pas eu
le loisir de la faire plus courte." -- Blaise Pascal



Other Mailing lists | Author Index | Date Index | Subject Index | Thread Index