[netperf-talk] Errors compiling netperf on Opteron running Fedora-9
Rick Jones
rick.jones2 at hp.com
Mon Sep 8 17:00:48 PDT 2008
Rahul Nabar wrote:
> I tried to install netperf by using the src at ftp://ftp.netperf.org/.
_Which_ source? 2.4.4 or something out of archives?
>
> .configure throws no errors but make fails. I'm attaching a snippet
> below of the make output. Any ideas what I might be messing up?
>
> nettest_dlpi.o nettest_unix.o nettest_xti.o nettest_sctp.o
> nettest_sdp.o netcpu_procstat.o -lm
> netlib.o: In function `alloc_sendfile_buf_ring':
> /usr/local/src/netperf-2.4.4/src/netlib.c:1545: warning: the use of
> `tmpnam' is dangerous, better use `mkstemp'
> netlib.o: In function `bind_to_specific_processor':
> netlib.c:(.text+0x2a96): undefined reference to `__CPU_ZERO'
> netlib.c:(.text+0x2aa2): undefined reference to `__CPU_SET'
> collect2: ld returned 1 exit status
There were changes in sched_setaffinity and the macros associated with
it in "later" linux kernels that came-out after 2.4.4. The current
top-of-trunk has a fix for that in src/netlib.c - you could either use a
subversion client to grab top of trunk from:
http://www.netperf.org/svn/netperf2/trunk/
or do a diff on your current src/netlib.c and compare that to the top of
trunk version (you can browse the top of trunk with a web browser to the
URL above.
happy benchmarking,
rick jones
More information about the netperf-talk
mailing list