[netperf-talk] NetPerf fails in Windows 2008 Server
Rick Jones
rick.jones2 at hp.com
Mon Jul 25 11:50:12 PDT 2011
On 07/20/2011 06:17 AM, Vinod Pademar wrote:
> I am trying to build the tool for windows 64 bit platform (hoping my
> previously reported issue is solved in this build) and has resulted in
> the following error. Your assistance is highly appreciated. Thank you.
> C:\netperf-2.5.0\src\NetPerfDir>build /CD
> BUILD: Compile and Link for AMD64
> BUILD: Loading c:\winddk\7600.16385.1\build.dat...
> BUILD: Computing Include file dependencies:
> BUILD: Start time: Wed Jul 20 14:06:54 2011
> BUILD: Examining c:\netperf-2.5.0\src\netperfdir directory for files to
> compile.
> c:\netperf-2.5.0\src\netperfdir Invalidating OACR warning log for
> 'root:amd64fre'
> BUILD: Saving c:\winddk\7600.16385.1\build.dat...
> BUILD: Compiling and Linking c:\netperf-2.5.0\src\netperfdir directory
> Configuring OACR for 'root:amd64fre' - <OACR on>
> Compiling - netlib.c
> 1>errors in directory c:\netperf-2.5.0\src\netperfdir
> 1>c:\netperf-2.5.0\src\netlib.c(3982) : error C2220: warning treated as
> error -no 'object' file generated
> Compiling - inet_ntop.c
> Linking Executable - objfre_wlh_amd64\amd64\netperf.exe
> 1>link : error LNK1181: cannot open input file
> 'c:\netperf-2.5.0\src\netperfdir\objfre_wlh_amd64\amd64\netlib.obj'
> BUILD: Finish time: Wed Jul 20 14:06:56 2011
> BUILD: Done
> 6 files compiled - 1 Warning - 1 Error
> 1 executable built - 1 Error
It would be nice if the compiler were kind enough to tell us just what
it didn't like about line 3982 of src/netlib.c...
I'm not sure that what I have presently as that line is what the bits
you have does, but that would seem to be:
/* get percentile from histogram */
int
HIST_get_percentile(HIST h, const double percentile){
int num = (int) h->total * percentile;
int last = 0;
int current = 0;
int result;
Specifically the "int num = ..." bit.
I do not have a Windows build environment at the moment - I'm *guessing*
it is unhappy about the mixed types and casting but that is only a guess
since there is no actual warning text in that compiler output :(
>
>
> C:\netperf-2.5.0\src\NetServerDir>build /CD
> BUILD: Compile and Link for AMD64
> BUILD: Loading c:\winddk\7600.16385.1\build.dat...
> BUILD: Computing Include file dependencies:
> BUILD: Start time: Wed Jul 20 14:11:08 2011
> BUILD: Examining c:\netperf-2.5.0\src\netserverdir directory for files
> to compile.
> c:\netperf-2.5.0\src\netserverdir Invalidating OACR warning log for
> 'root:amd64fre'
> BUILD: Saving c:\winddk\7600.16385.1\build.dat...
> BUILD: Compiling and Linking c:\netperf-2.5.0\src\netserverdir directory
> Configuring OACR for 'root:amd64fre' - <OACR on>
> Compiling - netlib.c
> 1>errors in directory c:\netperf-2.5.0\src\netserverdir
> 1>c:\netperf-2.5.0\src\netlib.c(3982) : error C2220: warning treated as
> error -
> no 'object' file generated
> Compiling - netserver.c
> 1>c:\netperf-2.5.0\src\netserver.c(116) : error C1017: invalid integer
> constant expression
On that one, there seems to be an '>' appended to the macro name. That
is something the Linux compiler didn't tweak on. You can try going in
with an editor and cleaning that one up and see what else it complains
about. I've fixed that one at least in the top-of-trunk
happy benchmarking,
rick jones
> Compiling - inet_ntop.c
> Linking Executable - objfre_wlh_amd64\amd64\netserver.exe
> 1>link : error LNK1181: cannot open input file
> 'c:\netperf-2.5.0\src\netserverdir\objfre_wlh_amd64\amd64\netlib.obj'
> BUILD: Finish time: Wed Jul 20 14:11:10 2011
> BUILD: Done
> 7 files compiled - 1 Warning - 2 Errors
> 1 executable built - 1 Error
>
>
> --- On *Thu, 6/30/11, Rick Jones /<rick.jones2 at hp.com>/* wrote:
>
>
> From: Rick Jones <rick.jones2 at hp.com>
> Subject: Re: [netperf-talk] NetPerf fails in Windows 2008 Server
> To: "Vinod Pademar" <vinod323 at yahoo.com>
> Cc: "netperf-talk at netperf.org" <netperf-talk at netperf.org>
> Date: Thursday, June 30, 2011, 9:15 PM
>
> On 06/30/2011 05:02 AM, Vinod Pademar wrote:
> > Thank you Rick for the mail.
> >
> > Is this patch will be available in 2.5 as well?
>
> Given that I don't know conclusively that I received a patch, nor
> that I applied it, I do not know. I have to do a search of old email
> to try to find the thread of discussion, if it exists (it may not
> have been in netperf-talk)
>
> rick
>
More information about the netperf-talk
mailing list