[netperf-talk] netperf on freebsd 8.0?
Rick Jones
rick.jones2 at hp.com
Thu Jan 21 10:50:12 PST 2010
Frank Schuster wrote:
> Thanks, for your response, I apply the patch.
>
> /usr/src/build_netperf$ sudo ../netperf-2.4.5/configure --enable-sctp --enable-burst | grep -i sctp
> checking for netinet/sctp.h... yes
> checking for main in -lsctp... no
> checking for struct sctp_event_subscribe.sctp_adaptation_layer_event... yes
> checking whether to include SCTP tests... no
>
> Why the SCTP test aren't included?
Not sure what configure looks like after patching, but here is the
"upstream" (as it were) version:
# see if we should be enabling SCTP support
AC_ARG_ENABLE(sctp,
[AS_HELP_STRING([--enable-sctp],[include tests to measure SCTP
performa\
nce ])])
case "$enable_sctp" in
yes)
use_sctp=true
AC_CHECK_HEADERS(netinet/sctp.h,,use_sctp=false,
[[
#include <sys/socket.h>
]])
case "$host" in
*-*-freebsd7.*)
# FreeBSD 7.x SCTP support doesn't need -lsctp.
;;
*)
AC_HAVE_LIBRARY(sctp,,use_sctp=false)
;;
esac
AC_CHECK_MEMBER(struct
sctp_event_subscribe.sctp_adaptation_lay\
er_event,
, , [#include <netinet/sctp.h>])
if test
"$ac_cv_member_struct_sctp_event_subscribe_sctp_adaptat\
ion_layer_event" = "yes"; then
AC_DEFINE([HAVE_SCTP_ADAPTATION_LAYER_EVENT], 1,
[Define to 1 if `struct
sctp_event_subscribe'\
has a `sctp_adaptation_layer_event' member])
fi
;;
no)
use_sctp=false
;;
'')
# whatever
use_sctp=false
;;
*)
AC_MSG_ERROR([--enable-sctp takes yes or no])
;;
esac
which suggests that either it didn't find sctp.h or libsctp. The
comment about FreeBSD7.X not needing -lsctp makes me guess that might be
the check that failed and there needs to be an enhancement to exclude
that check on FreeBSD8.* as well?
Finding the relevant code in your post-patch configure is probably
indicated. The code in configure will be a bit larger than that in
configure.ac
happy benchmarking,
rick jones
>
> Frank
>
>
>>Frank Schuster wrote:
>>
>>>Hello,
>>>
>>>is it possible to get netperf-2.4.5 running on freebsd 8.0?
>>
>>Did you try using the FreeBSD package?
>>ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.0-release/benchmarks/netperf-2.4.5.tbz
>>
>>If you need to build from source, you should build the port.
>>It already includes patches to fix this compilation issue.
>>Eg:
>>
>>http://www.freebsd.org/cgi/cvsweb.cgi/ports/benchmarks/netperf/files/patch-src-net_uuid.c?rev=1.1;content-type=text%2Fplain
>>
>>If you don't want to use packages or ports, then apply that
>>patch by hand.
>>
>>Drew
>>
>
>
More information about the netperf-talk
mailing list