Home | History | Annotate | Download | only in netperf
      1 It has been reported that versions of netperf have configured and
      2 compiled under Cygwin.  
      3 
      4 It is also known that netperf has compiled using the Windows DDK.
      5 Here is a skeleton of the instructions to do so:
      6 
      7 Steps are:
      8 
      9 A) Install the Windows driver developer kit (if not already done).
     10 
     11 B) open a Cmd windows (i.e., a DOS box) for the target environment
     12    (target OS version; free vs checked build; x86, AMD64, or IA64).
     13    This is picked from the "Start\Developer Kits" path.
     14 
     15 C) enter the src\NetPerfDir directory
     16 
     17 D) Edit sources to enable any desired optional features (eg
     18    -DWANT_HISTOGRAM) or to remove features which your version of
     19    Windows might not support (eg -DHAVE_STRUCT_SOCKADDR_STORAGE)
     20 
     21 E) while still in the src\NetperfDir directory type "build /cD".
     22 
     23 F) Repeat steps C through E in src\NetServerDir
     24 
     25 G) the target files will be in a directory like:
     26    NetPerfDir\objchk_wnet_IA64\IA64, NetServerDir\objchk_wnet_IA64\IA64
     27    NetPerfDir\objfre_wnet_x86\i386, or NetPerfDir\objfre_wnet_AMD64\amd64
     28 
     29 NOTE: If any components of the path (ie the full names of the files,
     30 including parent directories) contain spaces (eg "My Documents"),
     31 build will charge off into the weeds.
     32 
     33 If you do not want the corresponding features, edit the sources files
     34 and remove the -Ds for WANT_DEMO, WANT_HISTOGRAM and/or WANT_INTERVALS
     35 
     36 And if that weren't enough, it is also known that netperf has been
     37 compiled using MS Visual Studio 2003.  Here are the instructions from
     38 the person who made that work (See Authors):
     39 
     40 1.  Under the PROJECT tab, <project name> PROPERTIES, LINKER folder,
     41 Select COMMAND LINE and add WS2_32.lib in the whitespace labeled
     42 Additional Options:
     43  
     44  
     45 2.  Under the PROJECT tab, <project name> PROPERTIES, C/C++ foleder,
     46 Select Preprocessor, On the right, add DO_IPV6; at the end of the
     47 Preprocessor Definitions whitespace.
     48  
     49  
     50 He goes on to say:
     51  
     52 NOTE: WHEN COMPLING NETSERVER, it works, but I got issued the
     53 foillowing warnigns in my build:
     54  
     55 
     56 ------ Rebuild All started: Project: netserver, Configuration: Debug Win32 ------
     57 
     58 Deleting intermediate files and output files for project 'netserver', configuration 'Debug|Win32'.
     59 
     60 Compiling...
     61 
     62 nettest_bsd.c
     63 
     64 g:\Program Files\netperf\netperf-2.4.1rc1\src\nettest_bsd.c(846) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data
     65 
     66 g:\Program Files\netperf\netperf-2.4.1rc1\src\nettest_bsd.c(1303) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data
     67 
     68 g:\Program Files\netperf\netperf-2.4.1rc1\src\nettest_bsd.c(2020) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data
     69 
     70 g:\Program Files\netperf\netperf-2.4.1rc1\src\nettest_bsd.c(5080) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data
     71 
     72 g:\Program Files\netperf\netperf-2.4.1rc1\src\nettest_bsd.c(5715) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data
     73 
     74 g:\Program Files\netperf\netperf-2.4.1rc1\src\nettest_bsd.c(6591) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data
     75 
     76 g:\Program Files\netperf\netperf-2.4.1rc1\src\nettest_bsd.c(8013) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data
     77 
     78 g:\Program Files\netperf\netperf-2.4.1rc1\src\nettest_bsd.c(11123) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data
     79 
     80 netsh.c
     81 
     82 netserver.c
     83 
     84 g:\Program Files\netperf\netperf-2.4.1rc1\src\netserver.c(457) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data
     85 
     86 netlib.c
     87 
     88 g:\Program Files\netperf\netperf-2.4.1rc1\src\netlib.c(2470) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data
     89 
     90 g:\Program Files\netperf\netperf-2.4.1rc1\src\netlib.c(2480) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data
     91 
     92 netcpu_ntperf.c
     93 
     94 inet_ntop.c
     95 
     96 Generating Code...
     97 
     98 Linking...
     99 
    100 Build log was saved at "file://g:\Documents and Settings\Administrator\My Documents\Visual Studio Projects\netserver\Debug\BuildLog.htm"
    101 
    102 netserver - 0 error(s), 11 warning(s)
    103 
    104  
    105 
    106 ---------------------- Done ----------------------
    107 
    108 Rebuild All: 1 succeeded, 0 failed, 0 skipped
    109 
    110