[netperf-talk] Crosscompiling netperf4 & autotools
Rick Jones
rick.jones2 at hp.com
Tue Aug 14 10:43:30 PDT 2007
Kai Koehne wrote:
> Hi,
>
> I finally decided to give netperf4 a try ...
>
> First of all, netperf4 compiles fine under debian. However, I want to
> cross-compile it, and have difficulties with the generated Makefiles:
Cross compiles... why does it always have to be cross compiles... (my
apologies to the dialog writers of the Indiana Jones movies :)
> [....]
> make[3]: Entering directory
> `/home/koehne/kamikaze_7.06_seismo/trunk/build_i386/netperf4'
> make all-recursive
> make[4]: Entering directory
> `/home/koehne/kamikaze_7.06_seismo/trunk/build_i386/netperf4'
> Making all in include
> make[5]: Entering directory
> `/home/koehne/kamikaze_7.06_seismo/trunk/build_i386/netperf4/include'
> make[6]: Entering directory
> `/home/koehne/kamikaze_7.06_seismo/trunk/build_i386/netperf4'
> make[6]: *** No rule to make target `am--refresh'. Stop.
> [....]
>
> This seems to be an autotool problem (both Makefiles are automatically
> generated), so I decided to recreate all intermediate files:
>
> koehne at dhcp-4-153:~/kamikaze_7.06_seismo/trunk/build_i386/netperf4$
> ./autogen.sh
> automake: `$(LIBOBJS)' cannot be used outside `' if `subdir-objects' is
> not set
> src/Makefile.am:51: required file `src/missing/missing/inet_ntop.c' not
> found
> src/Makefile.am:51: required file `src/missing/missing/getaddrinfo.c'
> not found
>
> The errors are caused by automake (version 1.10). I also gave automake
> 1.9.6 a try:
>
> koehne at dhcp-4-153:~/kamikaze_7.06_seismo/trunk/build_i386/netperf4$
> ./autogen.sh
> src/Makefile.am:51: required file `src/missing/inet_ntop.c' not found
> src/Makefile.am:51: required file `src/missing/getaddrinfo.c' not found
>
> I realize that netperf4 is still in development, but maybe someone can
> help me anyway ;-) Which version of the autotools are used for compiling
> netperf4? And has anybody a guess why the non-existent "am--refresh"
> target is called when crosscompiling, and not called when compiling
> directly on the target machine?
That I am able to get a non-cross-compile to work with all this stuff is
miracle enough :)
Are you able to cross-compile netperf2? FWIW, my primary development
system is the same for netperf2 and netperf4, so they were made with the
same autotools (at least I believe so, I suppose there could have been
an upgrade between them or something, but "long term" they are the same).
rick jones
More information about the netperf-talk
mailing list