Hello
i try to build iperf (https://iperf.fr/) for my ARM based platform :
i did the following :
export CROSS_COMPILE=/home/pengwyn/ti-sdk-am335x-evm-05.06.00.00/linux-devkit/bin/arm-arago-linux-gnueabi-gcc-
export CC=${CROSS_COMPILE}gcc
export CPP=${CROSS_COMPILE}cpp
export CXX=${CROSS_COMPILE}g++
export LD=${CROSS_COMPILE}ld
export AR=${CROSS_COMPILE}ar
export ac_cv_func_malloc_0_nonnull=yes
./configure --build=/home/pengwyn/ti-sdk-am335x-evm-05.06.00.00/linux-devkit/bin/arm-arago-linux-gnueabi-gcc- --host=arm-arago-linux
and i get the following errors :
pengwyn@pengwyn-desktop:~$ cd '/home/pengwyn/iperf-2.0.5'
pengwyn@pengwyn-desktop:~/iperf-2.0.5$ ./configure --build=/home/pengwyn/ti-sdk-am335x-evm-05.06.00.00/linux-devkit/bin/arm-arago-linux-gnueabi-gcc- --host=arm-arago-linux
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for arm-arago-linux-strip... no
checking for strip... strip
configure: WARNING: using cross tools not prefixed with host triplet
checking whether the C++ compiler works... no
configure: error: in `/home/pengwyn/iperf-2.0.5':
configure: error: C++ compiler cannot create executables
See `config.log' for more details.
Then make gives :
pengwyn@pengwyn-desktop:~/iperf-2.0.5$ make CFLAGS=-static CXXFLAGS=-static
make all-recursive
make[1]: Entering directory `/home/pengwyn/iperf-2.0.5'
Making all in compat
make[2]: Entering directory `/home/pengwyn/iperf-2.0.5/compat'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/pengwyn/iperf-2.0.5/compat'
Making all in doc
make[2]: Entering directory `/home/pengwyn/iperf-2.0.5/doc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/pengwyn/iperf-2.0.5/doc'
Making all in include
make[2]: Entering directory `/home/pengwyn/iperf-2.0.5/include'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/pengwyn/iperf-2.0.5/include'
Making all in src
make[2]: Entering directory `/home/pengwyn/iperf-2.0.5/src'
g++ -Wall -static -o iperf -O2 -pthread -DHAVE_CONFIG_H Client.o Extractor.o Launch.o List.o Listener.o Locale.o PerfSocket.o ReportCSV.o ReportDefault.o Reporter.o Server.o Settings.o SocketAddr.o gnu_getopt.o gnu_getopt_long.o main.o service.o sockets.o stdio.o tcp_window_size.o ../compat/libcompat.a
SocketAddr.o: In function `SockAddr_setHostname':
SocketAddr.c:(.text+0x1ae): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
ReportCSV.o: In function `CSV_peer':
ReportCSV.c:(.text+0x286): undefined reference to `rpl_malloc'
Reporter.o: In function `InitMulti':
Reporter.c:(.text+0x5a): undefined reference to `rpl_malloc'
Reporter.c:(.text+0x6b): undefined reference to `rpl_malloc'
Reporter.o: In function `InitReport':
Reporter.c:(.text+0x541): undefined reference to `rpl_malloc'
Reporter.c:(.text+0x732): undefined reference to `rpl_malloc'
Reporter.o:Reporter.c:(.text+0xbd9): more undefined references to `rpl_malloc' follow
collect2: ld returned 1 exit status
make[2]: *** [iperf] Error 1
make[2]: Leaving directory `/home/pengwyn/iperf-2.0.5/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/pengwyn/iperf-2.0.5'
make: *** [all] Error 2
As anyone any idea of how to build iperf ?
Thank for any suggestion
Best regards
Thank