<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>Hi Rick,</DIV>
<DIV>Thank you for your mail. I have managed to compile netperf on Win7 by fixing some of the type mismatches as advised. </DIV>
<DIV><BR>For the better understanding, I have attached build/errors from the log file "buildfre_win7_x86.log".<BR>I have also attached the WinDDK Warnings message snapshot as well. <BR>Now that I am trying to run my test and it results in same old error. (the output listed below with debug option eneabled.</DIV>
<DIV><BR>I will appreciate, if you could help me to ressolve this issue so that I can run the test from a windows r2 64 bit later on.</DIV>
<DIV>Regards<BR>Vinod</DIV>
<DIV><BR>1>c:\netperf-2.5.0\src\netlib.c(3982) : error C2220: warning treated as error - no 'object' file generated<BR>1>errors in directory c:\netperf-2.5.0\src\netperfdir<BR>1>c:\netperf-2.5.0\src\netlib.c(3982) : error C2220: warning treated as error - no 'object' file generated<BR>1>c:\netperf-2.5.0\src\netlib.c(3982) : warning C4244: 'initializing' : conversion from 'const double' to 'int', possible loss of data<BR>1>warnings in directory c:\netperf-2.5.0\src\netperfdir<BR>1>c:\netperf-2.5.0\src\netlib.c(3982) : warning C4244: 'initializing' : conversion from 'const double' to 'int', possible loss of data<BR>1> C:\WinDDK\7600.16385.1\Bin\x86\oacr\oacrcl @c:\netperf-2.5.0\src\netperfdir\objfre_win7_x86\i386\cl.rsp<BR>1>Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.30729.207 for 80x86<BR>1>Copyright (C) Microsoft Corporation. All rights reserved.<BR>1>cl
/Fo"c:\netperf-2.5.0\src\netperfdir\objfre_win7_x86\i386/"</DIV>
<DIV><BR>FIX ==========</DIV>
<DIV>/* get percentile from histogram */<BR>int<BR>HIST_get_percentile(HIST h, const double percentile){<BR> const double num1 = (int) h->total * percentile;<BR> int num = (int) num1;<BR> int last = 0;<BR> int current = 0;<BR> int result;<BR>===========</DIV>
<DIV><BR>1>netlib.c<BR>1>c:\netperf-2.5.0\src\netlib.c(2989) : error C2220: warning treated as error - no 'object' file generated<BR>1>errors in directory c:\netperf-2.5.0\src\netperfdir<BR>1>c:\netperf-2.5.0\src\netlib.c(2989) : error C2220: warning treated as error - no 'object' file generated<BR>1>c:\netperf-2.5.0\src\netlib.c(2989) : warning C4018: '<' : signed/unsigned mismatch<BR>1>warnings in directory c:\netperf-2.5.0\src\netperfdir<BR>1>c:\netperf-2.5.0\src\netlib.c(2989) : warning C4018: '<' : signed/unsigned mismatch<BR>1> C:\WinDDK\7600.16385.1\Bin\x86\oacr\oacrcl @c:\netperf-2.5.0\src\netperfdir\objfre_win7_x86\i386\cl.rsp<BR>1>Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.30729.207 for 80x86<BR>1>Copyright (C) Microsoft Corporation. All rights reserved.<BR>1>cl /Fo"c:\netperf-2.5.0\src\netperfdir\objfre_win7_x86\i386/"</DIV>
<DIV><BR>FIX ===========<BR>for (i = 0; i < (int)temp->ai_addrlen; i++) {<BR>===========</DIV>
<DIV><BR>Testing ( Windows -> Linux Server @ 10.219.192.20)</DIV>
<DIV> </DIV>
<DIV>C:\netperf-2.5.0\src\NetPerfDir\objfre_win7_x86\i386>netperf.exe -d -f m -i 9,3 -t TCP_STREAM -H 10.219.192.20 -l 20 -c -- -s 131072 -S 131072<BR>resolve_host called with host '10.219.192.20' port '(null)' family AF_UNSPEC getaddrinfo returned the following for host '10.219.192.20' port '(null)' family AF_UNSPEC<BR> cannonical name: '10.219.192.20'<BR> flags: 4 family: AF_INET: socktype: SOCK_STREAM protocol IPPROTO_TCP addrlen 16<BR> sa_family: AF_INET sadata: 0 0 10 219 192 20 0 0 0 0 0 0 0 0 237 104<BR>scan_sockets_args called with the following argument vector netperf.exe -d -f m -i 9 -t TCP_STREAM -H 10.219.192.20 -l 20 -c -- -s 131072 -S 131072<BR>Program name: netperf.exe<BR>Local send alignment: 8<BR>Local recv alignment: 8<BR>Remote send alignment: 8<BR>Remote recv alignment: 8<BR>Report local CPU
1<BR>Report remote CPU 0<BR>Verbosity: 1<BR>Debug: 1<BR>Port: 12865<BR>Test name: TCP_STREAM<BR>Test bytes: 0 Test time: 20 Test trans: 0<BR>Host name: 10.219.192.20</DIV>
<DIV>remotehost is 10.219.192.20 and port 12865<BR>resolve_host called with host '10.219.192.20' port '12865' family AF_INET getaddrinfo returned the following for host '10.219.192.20' port '12865' family AF_INET<BR> cannonical name: '10.219.192.20:12865'<BR> flags: 4 family: AF_INET: socktype: SOCK_STREAM protocol IPPROTO_TCP add<BR>rlen 16<BR> sa_family: AF_INET sadata: 50 65 10 219 192 20 0 0 0 0 0 0 0 0 250 104<BR>resolve_host called with host '0.0.0.0' port '0' family AF_UNSPEC getaddrinfo returned the following for host '0.0.0.0' port '0' family AF_UNSPEC</DIV>
<DIV> cannonical name: '0.0.0.0'<BR> flags: 4 family: AF_INET: socktype: SOCK_STREAM protocol IPPROTO_TCP addrlen 16<BR> sa_family: AF_INET sadata: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 249 104<BR>establish_control called with host '10.219.192.20' port '12865' remfam AF_INET local '0.0.0.0' port '0' locfam AF_UNSPEC<BR>bound control socket to 0.0.0.0 and 0<BR>successful connection to remote netserver at 10.219.192.20 and 12865<BR>complete_addrinfo using hostname 10.219.192.20 port 0 family AF_INET type SOCK_STREAM prot IPPROTO_TCP flags 0x0<BR>getaddrinfo returned the following for host '10.219.192.20' port '0' family AF_INET<BR> cannonical name: '10.219.192.20'<BR> flags: 4 family: AF_INET: socktype: SOCK_STREAM protocol IPPROTO_TCP addrlen
16<BR> sa_family: AF_INET sadata: 0 0 10 219 192 20 0 0 0 0 0 0 0 0 237 104<BR>local_data_address not set, using local_host_name of '0.0.0.0'<BR>complete_addrinfo using hostname 0.0.0.0 port 0 family AF_UNSPEC type SOCK_STREAM prot IPPROTO_TCP flags 0x1<BR>getaddrinfo returned the following for host '0.0.0.0' port '0' family AF_UNSPEC</DIV>
<DIV> cannonical name: '0.0.0.0'<BR> flags: 4 family: AF_INET: socktype: SOCK_STREAM protocol IPPROTO_TCP addrlen 16<BR> sa_family: AF_INET sadata: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 255 104<BR>TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 10.219.192.20 (10.219.192.20) port 0 AF_INET : +/-2.500% @ 99% conf.<BR>create_data_socket: socket 88 obtained...<BR>netperf: get_sock_buffer: send socket size determined to be 131072<BR>netperf: get_sock_buffer: receive socket size determined to be 131072<BR>send_tcp_stream: send_socket obtained...<BR>recv_response: received a 256 byte response<BR>remote listen done.<BR>recv_response: received a 256 byte response<BR>remote reporting results for 20.05 seconds<BR>correction factor: 1.000000<BR>calc_service_demand called: units_sent =
17301504.000000<BR> elapsed_time = 0.000000<BR> cpu_util = 0.000000<BR> num cpu = 0<BR>calc_service_demand using: units_sent = 17301504.000000<BR> elapsed_time =
20.202000<BR> cpu_util = 0.270270<BR> num cpu = 4<BR>calc_service_demand got: thruput = 836.352850<BR> servdem = 12.926136<BR>calculate_confidence: itr 1; time 20.202000; res 6.851403<BR> lcpu 0.270270; rcpu
-1.000000<BR> lsdm 12.926136; rsdm -1.000000<BR>create_data_socket: socket 88 obtained...<BR>netperf: get_sock_buffer: send socket size determined to be 131072<BR>netperf: get_sock_buffer: receive socket size determined to be 131072<BR>send_tcp_stream: send_socket obtained...<BR>recv_response: received a 256 byte response<BR>remote listen done.<BR>emulate_alarm - HandlesClosedFlags: 1<BR>netperf: cannot shutdown tcp stream socket: An operation was attempted on something that is not a socket.</DIV>
<DIV>C:\netperf-2.5.0\src\NetPerfDir\objfre_win7_x86\i386><BR><BR><BR>--- On <B>Tue, 7/26/11, Rick Jones <I><rick.jones2@hp.com></I></B> wrote:<BR></DIV>
<BLOCKQUOTE style="BORDER-LEFT: rgb(16,16,255) 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px"><BR>From: Rick Jones <rick.jones2@hp.com><BR>Subject: Re: [netperf-talk] NetPerf fails in Windows 2008 Server<BR>To: "Vinod Pademar" <vinod323@yahoo.com><BR>Cc: "netperf-talk@netperf.org" <netperf-talk@netperf.org><BR>Date: Tuesday, July 26, 2011, 2:26 AM<BR><BR>
<DIV class=plainMail>I have been told that the full text of the compiler's messages about warnings/errors should be in a build.log file.<BR><BR>rick<BR></DIV></BLOCKQUOTE></td></tr></table>