[netperf-talk] Trying to compile Netperf4 (svn snapshot) on Solaris

Rick Jones rick.jones2 at hp.com
Fri Mar 17 09:49:41 PST 2006


Simon Leinen wrote:
> Rick & all,
> 
> after more than ten years, I have started to look closely at Netperf
> again. 

Excellent.

> I checked out the Netperf4 sources from Subversion and tried
> to compile them on a Solaris 9 machine.  I found that the following
> patch was necessary to avoid a compilation error because of an
> undefined symbol "MAX_PATH":
> 
> : leinen at arenal[netperf-4-svn-20060317]; svn diff src/netlib.c
> Index: src/netlib.c
> ===================================================================
> --- src/netlib.c	(revision 83)
> +++ src/netlib.c	(working copy)
> @@ -52,6 +52,10 @@
>  #include <sys/uio.h>
>  #endif
>  
> +#ifdef HAVE_LIMITS_H
> +#include <limits.h>
> +#endif
> +
>  #ifdef HAVE_UNISTD_H
>  #include <unistd.h>
>  #endif

I will add that to the mainline and to the "glib_migration" branch. 
Porting netperf4 to Windows has convinced me that netperf4 harness code 
should use glib so I'm migrating everything from fork/pthread to Glib 
abstractions.

Actually, I just made the change in the branches/glib_migration branch. 
  The change to trunk/ will commit later.

> 
> However, now I'm running into the problem that some files are missing
> - apparently they belong to a kstat-based implementation of system
> resource statistics.  Are those just missing from SVN for some reason,
> or should I start writing them? :-)

They are indeed missing for a reason - that they have not been created 
for netperf4 yet.  The error happens because the configure script is 
still very much a netperf2 configure script.

Writing them would be goodness if you feel like it.  The code should 
probably not be a straight cut-and-paste from netperf2 - while I was the 
author of the Soalris 10 part and so have no problems with it migrating 
from the "netperf licence" to a GPL license I didn't do the pre-Solaris 
10 stuff myself and cannot remember who did, so best it be "from 
scratch" as it were.

In the meantime or if you don't feel like all that typing :), you can 
probably say --enable-cpuutil=none or something like that  to get the 
configure to use the "_none" files

happy benchmarking,

rick jones


More information about the netperf-talk mailing list