[netperf-talk] Urgent: help required for instaling netperf 2.4.1 on fedora Core 8 (kernel version is 2.6.23.1-42.fc8)

Rick Jones rick.jones2 at hp.com
Thu Feb 28 16:14:01 PST 2008


Sigh - newer kernels have once again tweaked the interfaces to the 
sched_setaffinity calls it seems and netperf has yet to catch-up.

> gcc  -g -O2   -o netperf  netperf.o netlib.o netsh.o nettest_bsd.o 
> nettest_dlpi.o nettest_dns.o nettest_unix.o nettest_xti.o nettest_sctp.o 
> netcpu_procstat.o  -lm
> netlib.o: In function `bind_to_specific_processor':
> /opt/netperf/src/netlib.c:1725: undefined reference to `__CPU_ZERO'
> /opt/netperf/src/netlib.c:1727: undefined reference to `__CPU_SET'
> collect2: ld returned 1 exit status
> make[2]: *** [netperf] Error 1
> make[2]: Leaving directory `/opt/netperf/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/opt/netperf'
> make: *** [all] Error 2
> I am not able to understand if it is OS specific since I successfully 
> installed the same package in openSUSE 10.3(i586)

That is likely an older kernel without those changes to the CPU affinity 
stuff.

If you don't plan on using the global -T option, you can I think simply 
recomment HAVE_SCHED_SETAFFINITY in config.h and recompile.

happy benchmarking,

rick jones


More information about the netperf-talk mailing list