[netperf-talk] netperf compiling for arm linux

Rick Jones rick.jones2 at hp.com
Wed Jun 21 09:52:40 PDT 2006


Holger Steudtner wrote:
> Hello,
> 
> I recently read about netperf and think its a good tool to measure
> bandwith with.
> 
> I wanna use it in a heterogen network enviroment with i686 linux und
> some arm linux (sharp zaurus) systems. So I downloaded netperf-2.4.1,
> 2.4.2 und 4.0.0rc2 .

Unless you also have libxml and glib for ARM don't go with netperf4.

> 
> Here is what I get while trying to compile/configure the different
> versions with
> 
> #>./configure CC=arm-linux-gcc
> LDFLAGS=-L/usr/local/arm/3.4.1/arm-linux/lib --host arm --build
> i686-pc-linux-gnu

Ah, cross compilation.  Always a joy... and something for which I have 
no opportunity to test myself :(

> for netperf-2.4.1 & 2.4.2:
> 
> It stops within the configure process with the error
> 
> #> checking for sys/select.h... yes
> checking for sys/socket.h... (cached) yes
> checking types of arguments for select... int,fd_set *,struct timeval *
> checking whether setpgrp takes no argument... configure: error: cannot
> check setpgrp when cross compiling

As a "workaround" you might try editing the configure script to 
comment-out the checks for setpgrp.  Apart from that I am at a loss and 
will have to rely on the others on the list.  I'm guessing the check for 
the argument relies on actually running a setpgrp() call, which I 
suppose one cannot really do when cross compiling.

I don't know if that represents a bug in the built-in checks on which 
the configure script relies or if that means I need to special-case the 
setpgrp checks somehow.


> 
> and for netperf-4.0.0rc2 I can configure it butr the make comand fails with
> 
> #> nettest_bsd.c: At top level:
> nettest_bsd.c:3027: error: parse error before '*' token
> nettest_bsd.c: In function `print_results_summary':
> nettest_bsd.c:3064: error: request for member `report_data' in something
> not a structure or union

that may be a missing libxml or glib include file.  For now, lets stick 
with netperf2.4.2, or better still top of trunk if you can:

http://www.netperf.org/svn/netperf2/trunk.

rick jones


More information about the netperf-talk mailing list