RE: iPerf v1.6 compile error
> >Date: Thu, 31 Oct 2002 17:41:47 +0100
> >From: "Brice, Richard Mr Northrop Grumman 5 SIG CMD"
> > <richard.brice --at-- hq.5sigcmd.army.mil>
> >To: "'dast --at-- nlanr.net'" <dast --at-- nlanr.net>
> >
> >OS = Solaris 2.7
> >compiler = gcc 3.1
> >
> >I have succesfully compiled on Solaris 2.8 using gcc 3.1
> >
> >I get this error when binaries are being compiled (i.e.after config)
> > <snip>
Well this is a interesting error, and I believe the problem lies in the
configure script. The configure script will be updated in future
releases but for now, it has a simple fix:
<editor of choice> cfg/config.h
Look for the lines that contain HAVE_INET_PTON and HAVE_INET_NTOP,
uncomment them and make them look like:
#define HAVE_INET_PTON 1
#define HAVE_INET_NTOP 1
much like the rest of the #defines. Then run:
make
The problem arises in that "most" compilers have the pton|ntop defined
natively, but some only have them in headers, so the configure script
looks for the native pton|ntop but does not find them so it thinks we need
to compile our own, but then when all the headers are included we get the
built in one and our own and it gets mad! If this does not fix your
problem then please let me know. Also there are precompiled binaries on
our site, I know I know only windoze users deal with precompiled binaries
but they can be useful.
> >I found this on a mailing list
> >
> >http://gcc.gnu.org/ml/gcc/1999-07n/msg00000.html
> >
> >but it didn't make any sense to me
Well that is sorta the same thing.
Kevin
--
Mitch Kutzko | mitch --at-- dast.nlanr.net | mitch --at-- ncsa.uiuc.edu | 217-333-1199
http://hobbes.ncsa.uiuc.edu/