netperf4をビルドする

並列に負荷をかける為の仕組みを持っているらしいのでちょっと試してみる。

$ svn co http://www.netperf.org/svn/netperf4/trunk netperf4
$ cd netperf4
$ /configure --enable-dependency-tracking --enable-histogram --enable-dns --enable-multi \
--enable-vst --enable-demo --enable-intervals --enable-burst --enable-cpuutil=procstat
$ make 

とやったら、見事にコンパイルエラーした。
どうも、ビルド通らないようなコードが平気でコミットされているらしい。
一部のファイルをコミットし忘れたのかもしれない。

diff -x '*~' -x .deps -x libtool -x doc -x .svn -x config.status -x config.log -Nur /home/syuu/netperf4/src/disktest.c /home/syuu/netperf4.new/src/disktest.c
--- /home/syuu/netperf4/src/disktest.c	2011-12-20 10:11:45.454508951 +0900
+++ /home/syuu/netperf4.new/src/disktest.c	2011-12-19 22:32:06.436355878 +0900
@@ -85,7 +85,6 @@
 #include <fcntl.h>
 #include <sys/types.h>
 #include <sys/stat.h>
-#include <sys/diskio.h>
 #include <sys/scsi.h>
 
 #include "netperf.h"
diff -x '*~' -x .deps -x libtool -x doc -x .svn -x config.status -x config.log -Nur /home/syuu/netperf4/src/Makefile /home/syuu/netperf4.new/src/Makefile
--- /home/syuu/netperf4/src/Makefile	2011-12-20 10:17:43.838493184 +0900
+++ /home/syuu/netperf4.new/src/Makefile	2011-12-19 22:34:09.484350465 +0900
@@ -91,7 +91,7 @@
 LN_S = ln -s
 MAKEINFO = ${SHELL} /home/syuu/netperf4/missing --run makeinfo
 NETDEVSTATS_SOURCE = 
-NETSYS_SOURCE = procstat
+NETSYS_SOURCE = linux
 NETTCPSTATS_SOURCE = 
 OBJDUMP = @OBJDUMP@
 OBJEXT = o
@@ -113,10 +113,10 @@
 
 # for now we will use "NETSYS_SOURCE" for both the netsysstats and
 # netlib platform-specific stuff
-USE_CPU_SOURCE = netsysstats_procstat.c
-USE_NETLIB_SOURCE = netlib_procstat.c
-USE_TCPSTATS_SOURCE = nettcpstats_.c
-USE_NETDEV_STATS_SOURCE = netdevstats_.c
+USE_CPU_SOURCE = netsysstats_linux.c
+USE_NETLIB_SOURCE = netlib_linux.c
+USE_TCPSTATS_SOURCE = nettcpstats_linux.c
+USE_NETDEV_STATS_SOURCE = netdevstats_linux.c
 
 # anything that might be platform-specific and thus not covered
 # directly in COMMON_SRC or *_SOURCES should be in EXTRA_DIST
@@ -173,23 +173,23 @@
 nettest_bsd_la_OBJECTS =  nettest_bsd.lo
 netsysstats_la_LIBADD = 
 netsysstats_la_OBJECTS =  netsysstats_common.lo \
-netsysstats_procstat.lo
+netsysstats_linux.lo
 nettcpstats_la_LIBADD = 
 nettcpstats_la_OBJECTS =  nettcpstats_common.lo \
-nettcpstats_.lo
+nettcpstats_linux.lo
 netdevstats_la_LIBADD = 
 netdevstats_la_OBJECTS =  netdevstats_common.lo \
-netdevstats_.lo
+netdevstats_linux.lo
 bin_PROGRAMS =  netperf$(EXEEXT) netserver$(EXEEXT)
 PROGRAMS =  $(bin_PROGRAMS)
 
 netperf_OBJECTS =  netperf.$(OBJEXT) netlib.$(OBJEXT) netmsg.$(OBJEXT) \
-netconfidence.$(OBJEXT) netlib_procstat.$(OBJEXT) \
+netconfidence.$(OBJEXT) netlib_linux.$(OBJEXT) \
 netperf_report.$(OBJEXT)
 netperf_DEPENDENCIES =  
 netserver_OBJECTS =  netserver.$(OBJEXT) netlib.$(OBJEXT) \
 netmsg.$(OBJEXT) netconfidence.$(OBJEXT) \
-netlib_procstat.$(OBJEXT)
+netlib_linux.$(OBJEXT)
 netserver_DEPENDENCIES =  
 COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
 LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
@@ -206,9 +206,9 @@
 GZIP_ENV = --best
 DEP_FILES =  .deps/netconfidence.P \
 .deps/netdevstats_.P .deps/netdevstats_common.P \
-.deps/netlib.P .deps/netlib_procstat.P .deps/netmsg.P \
+.deps/netlib.P .deps/netlib_linux.P .deps/netmsg.P \
 .deps/netperf.P .deps/netperf_report.P .deps/netserver.P \
-.deps/netsysstats_procstat.P .deps/netsysstats_common.P \
+.deps/netsysstats_linux.P .deps/netsysstats_common.P \
 .deps/nettcpstats_.P .deps/nettcpstats_common.P \
 .deps/nettest_bsd.P
 SOURCES = $(nettest_bsd_la_SOURCES) $(netsysstats_la_SOURCES) $(nettcpstats_la_SOURCES) $(netdevstats_la_SOURCES) $(netperf_SOURCES) $(netserver_SOURCES)
diff -x '*~' -x .deps -x libtool -x doc -x .svn -x config.status -x config.log -Nur /home/syuu/netperf4/src/netperf_report.c /home/syuu/netperf4.new/src/netperf_report.c
--- /home/syuu/netperf4/src/netperf_report.c	2011-12-20 10:11:45.442508952 +0900
+++ /home/syuu/netperf4.new/src/netperf_report.c	2011-12-19 22:32:42.384354297 +0900
@@ -77,7 +77,6 @@
 #include <fcntl.h>
 #include <sys/types.h>
 #include <sys/stat.h>
-#include <sys/diskio.h>
 #include <sys/scsi.h>
 
 #endif

取り敢えずこんなかんじに適当に直したらビルドは通った。
試す方はこれから。