[netperf-talk] Errors compiling netperf on Opteron running Fedora-9
Rick Jones
rick.jones2 at hp.com
Mon Sep 8 17:31:12 PDT 2008
Rahul Nabar wrote:
> On Mon, Sep 8, 2008 at 7:00 PM, Rick Jones <rick.jones2 at hp.com> wrote:
>
>
>>>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/
>
>
> I tried the svn repo. The earlier problem disappears, thanks Rick! But
> a new one now. Any leads on this one?
sigh, whack-a-mole
there are some typdefs in src/netdrv_ethtool.c which probably need some
#ifndef/#endif around them. At least I _think_ I can get away with that
- can you try the following:
raj at tardy:~/netperf2_trunk$ svn diff src/netdrv_ethtool.c
Index: src/netdrv_ethtool.c
===================================================================
--- src/netdrv_ethtool.c (revision 288)
+++ src/netdrv_ethtool.c (working copy)
@@ -15,16 +15,20 @@
normally found in nature, which we must provide or things will be
quite unhappy. */
+#ifndef __u64
typedef __uint64_t __u64;
typedef __uint32_t __u32;
typedef __uint16_t __u16;
typedef __uint8_t __u8;
+#endif
/* older ones want them without the leading underscores */
+#ifndef u64
typedef __uint64_t u64;
typedef __uint32_t u32;
typedef __uint16_t u16;
typedef __uint8_t u8;
+#endif
#include <linux/ethtool.h>
thanks,
rick jones
More information about the netperf-talk
mailing list