Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Nov 2007 14:18:39 +0100
From:      "Dominique Goncalves" <dominique.goncalves@gmail.com>
To:        freebsd-ports@freebsd.org, mnag@FreeBSD.org
Subject:   benchmarks/iperf: Error building within 7.0 chroot
Message-ID:  <7daacbbe0711050518mcbe77fam11ce4ad160b4fd88@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi,

I'm trying to build benchmarks/iperf inside a 7.0 guest with chroot
(the host is a 6-STABLE) but it fails with:

===>  Cleaning for iperf-2.0.2_1
===>  Vulnerability check disabled, database not found
===>  Extracting for iperf-2.0.2_1
=> MD5 Checksum OK for iperf-2.0.2.tar.gz.
=> SHA256 Checksum OK for iperf-2.0.2.tar.gz.
===>  Patching for iperf-2.0.2_1
===>  Applying FreeBSD patches for iperf-2.0.2_1
===>  Configuring for iperf-2.0.2_1
configure: WARNING: you should use --build, --host, --target
checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheel
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking for i386-portbld-freebsd6.3-g++... c++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether c++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of c++... gcc3
checking for i386-portbld-freebsd6.3-gcc... cc
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ANSI C... none needed
checking dependency style of cc... gcc3
checking for library containing strerror... none required
checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheel
checking whether make sets $(MAKE)... (cached) yes
checking for i386-portbld-freebsd6.3-ranlib... no
checking for ranlib... ranlib
checking build system type... i386-portbld-freebsd6.3
checking host system type... i386-portbld-freebsd6.3
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... -D_THREAD_SAFE
checking for cc_r... cc
checking for gethostbyname... yes
checking for socket... yes
checking how to run the C preprocessor... cc -E
checking for egrep... grep -E
checking for ANSI C header files... Bad system call (core dumped)
no
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking libintl.h usability... no
checking libintl.h presence... no
checking for libintl.h... no
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking for ssize_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for stdint types... stdint.h (shortcircuit)
make use of stdint.h in include/iperf-int.h (assuming C99 compatible system)
checking 3rd argument of accept... socklen_t
checking for pid_t... yes
checking for unistd.h... (cached) yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... Bad system call (core dumped)
no
checking for working vfork... (cached) yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... Bad system call (core dumped)
no
checking for working memcmp... Bad system call (core dumped)
no
checking sys/select.h usability... yes
checking sys/select.h presence... yes
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 return type of signal handlers... void
checking for strftime... yes
checking for vprintf... yes
checking for _doprnt... no
checking for atexit... yes
checking for gettimeofday... yes
checking for memset... yes
checking for pthread_cancel... yes
checking for select... yes
checking for strchr... yes
checking for strerror... yes
checking for strtol... yes
checking for usleep... yes
checking for snprintf... yes
checking for inet_pton... yes
checking for inet_ntop... yes
checking for gettimeofday... (cached) yes
checking *printf() support for %lld... Bad system call (core dumped)
no
checking *printf() support for %qd... Bad system call (core dumped)
no
checking for bool... no
checking size of bool... 0
checking if true is defined... yes
checking whether byte ordering is bigendian... no
checking for struct ip_mreq... yes
checking whether IP_ADD_MEMBERSHIP is declared... yes
checking for multicast support... yes
checking for struct sockaddr_storage... yes
checking for struct sockaddr_in6... yes
checking whether AF_INET6 is declared... yes
checking for IPv6 headers and structures... yes
checking for struct ipv6_mreq... yes
checking whether IPV6_ADD_MEMBERSHIP is declared... no
checking whether IPV6_MULTICAST_HOPS is declared... yes
checking for IPv6 multicast support... no
checking whether make is GNU make... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating compat/Makefile
config.status: creating doc/Makefile
config.status: creating include/Makefile
config.status: creating src/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing include/iperf-int.h commands
config.status: creating include/iperf-int.h : _IPERF_INCLUDE_IPERF_INT_H
===>  Building for iperf-2.0.2_1
make  all-recursive
Making all in compat
if cc -DHAVE_CONFIG_H -I. -I. -I..  -I../include  -I../include
-pthread -MT Thread.o -MD -MP -MF ".deps/Thread.Tpo" -c -o Thread.o
Thread.c;  then mv -f ".deps/Thread.Tpo" ".deps/Thread.Po"; else rm -f
".deps/Thread.Tpo"; exit 1; fi
if cc -DHAVE_CONFIG_H -I. -I. -I..  -I../include  -I../include
-pthread -MT error.o -MD -MP -MF ".deps/error.Tpo" -c -o error.o
error.c;  then mv -f ".deps/error.Tpo" ".deps/error.Po"; else rm -f
".deps/error.Tpo"; exit 1; fi
if c++ -DHAVE_CONFIG_H -I. -I. -I..   -I../include  -I../include   -O2
-fno-strict-aliasing -pipe -MT delay.o -MD -MP -MF ".deps/delay.Tpo"
-c -o delay.o delay.cpp;  then mv -f ".deps/delay.Tpo"
".deps/delay.Po"; else rm -f ".deps/delay.Tpo"; exit 1; fi
if cc -DHAVE_CONFIG_H -I. -I. -I..  -I../include  -I../include
-pthread -MT gettimeofday.o -MD -MP -MF ".deps/gettimeofday.Tpo" -c -o
gettimeofday.o gettimeofday.c;  then mv -f ".deps/gettimeofday.Tpo"
".deps/gettimeofday.Po"; else rm -f ".deps/gettimeofday.Tpo"; exit 1;
fi
if cc -DHAVE_CONFIG_H -I. -I. -I..  -I../include  -I../include
-pthread -MT inet_ntop.o -MD -MP -MF ".deps/inet_ntop.Tpo" -c -o
inet_ntop.o inet_ntop.c;  t
hen mv -f ".deps/inet_ntop.Tpo" ".deps/inet_ntop.Po"; else rm -f
".deps/inet_ntop.Tpo"; exit 1; fi
if cc -DHAVE_CONFIG_H -I. -I. -I..  -I../include  -I../include
-pthread -MT inet_pton.o -MD -MP -MF ".deps/inet_pton.Tpo" -c -o
inet_pton.o inet_pton.c;  then mv -f ".deps/inet_pton.Tpo"
".deps/inet_pton.Po"; else rm -f ".deps/inet_pton.Tpo"; exit 1; fi
if cc -DHAVE_CONFIG_H -I. -I. -I..  -I../include  -I../include
-pthread -MT signal.o -MD -MP -MF ".deps/signal.Tpo" -c -o signal.o
signal.c;  then mv -f ".deps/signal.Tpo" ".deps/signal.Po"; else rm -f
".deps/signal.Tpo"; exit 1; fi
if cc -DHAVE_CONFIG_H -I. -I. -I..  -I../include  -I../include
-pthread -MT snprintf.o -MD -MP -MF ".deps/snprintf.Tpo" -c -o
snprintf.o snprintf.c;  then mv -f ".deps/snprintf.Tpo"
".deps/snprintf.Po"; else rm -f ".deps/snprintf.Tpo"; exit 1; fi
if cc -DHAVE_CONFIG_H -I. -I. -I..  -I../include  -I../include
-pthread -MT string.o -MD -MP -MF ".deps/string.Tpo" -c -o string.o
string.c;  then mv -f ".deps/string.Tpo" ".deps/string.Po"; else rm -f
".deps/string.Tpo"; exit 1; fi
rm -f libcompat.a
ar cru libcompat.a Thread.o error.o  delay.o gettimeofday.o
inet_ntop.o  inet_pton.o signal.o snprintf.o  string.o
ranlib libcompat.a
Making all in doc
Making all in include
Making all in src
if c++ -DHAVE_CONFIG_H -I. -I. -I..   -I../include  -I../include   -O2
-fno-strict-aliasing -pipe -MT Client.o -MD -MP -MF ".deps/Client.Tpo"
-c -o Client.o Client.cpp;  then mv -f ".deps/Client.Tpo"
".deps/Client.Po"; else rm -f ".deps/Client.Tpo"; exit 1; fi
if cc -DHAVE_CONFIG_H -I. -I. -I..  -I../include  -I../include
-pthread -MT Extractor.o -MD -MP -MF ".deps/Extractor.Tpo" -c -o
Extractor.o Extractor.c;  then mv -f ".deps/Extractor.Tpo"
".deps/Extractor.Po"; else rm -f ".deps/Extractor.Tpo"; exit 1; fi
if c++ -DHAVE_CONFIG_H -I. -I. -I..   -I../include  -I../include   -O2
-fno-strict-aliasing -pipe -MT Launch.o -MD -MP -MF ".deps/Launch.Tpo"
-c -o Launch.o Launch.cpp;  then mv -f ".deps/Launch.Tpo"
".deps/Launch.Po"; else rm -f ".deps/Launch.Tpo"; exit 1; fi
if c++ -DHAVE_CONFIG_H -I. -I. -I..   -I../include  -I../include   -O2
-fno-strict-aliasing -pipe -MT List.o -MD -MP -MF ".deps/List.Tpo" -c
-o List.o List.cpp;  then mv -f ".deps/List.Tpo" ".deps/List.Po"; else
rm -f ".deps/List.Tpo"; exit 1; fi
if c++ -DHAVE_CONFIG_H -I. -I. -I..   -I../include  -I../include   -O2
-fno-strict-aliasing -pipe -MT Listener.o -MD -MP -MF
".deps/Listener.Tpo" -c -o Listener.o Listener.cpp;  then mv -f
".deps/Listener.Tpo" ".deps/Listener.Po"; else rm -f
".deps/Listener.Tpo"; exit 1; fi
if cc -DHAVE_CONFIG_H -I. -I. -I..  -I../include  -I../include
-pthread -MT Locale.o -MD -MP -MF ".deps/Locale.Tpo" -c -o Locale.o
Locale.c;  then mv -f ".deps/Locale.Tpo" ".deps/Locale.Po"; else rm -f
".deps/Locale.Tpo"; exit 1; fi
if c++ -DHAVE_CONFIG_H -I. -I. -I..   -I../include  -I../include   -O2
-fno-strict-aliasing -pipe -MT PerfSocket.o -MD -MP -MF
".deps/PerfSocket.Tpo" -c -o PerfSocket.o PerfSocket.cpp;  then mv -f
".deps/PerfSocket.Tpo" ".deps/PerfSocket.Po"; else rm -f
".deps/PerfSocket.Tpo"; exit 1; fi
if cc -DHAVE_CONFIG_H -I. -I. -I..  -I../include  -I../include
-pthread -MT ReportCSV.o -MD -MP -MF ".deps/ReportCSV.Tpo" -c -o
ReportCSV.o ReportCSV.c;  then mv -f ".deps/ReportCSV.Tpo"
".deps/ReportCSV.Po"; else rm -f ".deps/ReportCSV.Tpo"; exit 1; fi
if cc -DHAVE_CONFIG_H -I. -I. -I..  -I../include  -I../include
-pthread -MT ReportDefault.o -MD -MP -MF ".deps/ReportDefault.Tpo" -c
-o ReportDefault.o ReportDefault.c;  then mv -f
".deps/ReportDefault.Tpo" ".deps/ReportDefault.Po"; else rm -f
".deps/ReportDefault.Tpo"; exit 1; fi
if cc -DHAVE_CONFIG_H -I. -I. -I..  -I../include  -I../include
-pthread -MT Reporter.o -MD -MP -MF ".deps/Reporter.Tpo" -c -o
Reporter.o Reporter.c;  then mv -f ".deps/Reporter.Tpo"
".deps/Reporter.Po"; else rm -f ".deps/Reporter.Tpo"; exit 1; fi
if c++ -DHAVE_CONFIG_H -I. -I. -I..   -I../include  -I../include   -O2
-fno-strict-aliasing -pipe -MT Server.o -MD -MP -MF ".deps/Server.Tpo"
-c -o Server.o Server.cpp;  then mv -f ".deps/Server.Tpo"
".deps/Server.Po"; else rm -f ".deps/Server.Tpo"; exit 1; fi
if c++ -DHAVE_CONFIG_H -I. -I. -I..   -I../include  -I../include   -O2
-fno-strict-aliasing -pipe -MT Settings.o -MD -MP -MF
".deps/Settings.Tpo" -c -o Settings.o Settings.cpp;  then mv -f
".deps/Settings.Tpo" ".deps/Settings.Po"; else rm -f
".deps/Settings.Tpo"; exit 1; fi
if cc -DHAVE_CONFIG_H -I. -I. -I..  -I../include  -I../include
-pthread -MT SocketAddr.o -MD -MP -MF ".deps/SocketAddr.Tpo" -c -o
SocketAddr.o SocketAddr.c;  then mv -f ".deps/SocketAddr.Tpo"
".deps/SocketAddr.Po"; else rm -f ".deps/SocketAddr.Tpo"; exit 1; fi
if cc -DHAVE_CONFIG_H -I. -I. -I..  -I../include  -I../include
-pthread -MT gnu_getopt.o -MD -MP -MF ".deps/gnu_getopt.Tpo" -c -o
gnu_getopt.o gnu_getopt.c;  then mv -f ".deps/gnu_getopt.Tpo"
".deps/gnu_getopt.Po"; else rm -f ".deps/gnu_getopt.Tpo"; exit 1; fi
if cc -DHAVE_CONFIG_H -I. -I. -I..  -I../include  -I../include
-pthread -MT gnu_getopt_long.o -MD -MP -MF ".deps/gnu_getopt_long.Tpo"
-c -o gnu_getopt_long.o gnu_getopt_long.c;  then mv -f
".deps/gnu_getopt_long.Tpo" ".deps/gnu_getopt_long.Po"; else rm -f
".deps/gnu_getopt_long.Tpo"; exit 1; fi
if c++ -DHAVE_CONFIG_H -I. -I. -I..   -I../include  -I../include   -O2
-fno-strict-aliasing -pipe -MT main.o -MD -MP -MF ".deps/main.Tpo" -c
-o main.o main.cpp;  then mv -f ".deps/main.Tpo" ".deps/main.Po"; else
rm -f ".deps/main.Tpo"; exit 1; fi
if cc -DHAVE_CONFIG_H -I. -I. -I..  -I../include  -I../include
-pthread -MT service.o -MD -MP -MF ".deps/service.Tpo" -c -o service.o
service.c;  then mv -f ".deps/service.Tpo" ".deps/service.Po"; else rm
-f ".deps/service.Tpo"; exit 1; fi
if cc -DHAVE_CONFIG_H -I. -I. -I..  -I../include  -I../include
-pthread -MT sockets.o -MD -MP -MF ".deps/sockets.Tpo" -c -o sockets.o
sockets.c;  then mv -f ".deps/sockets.Tpo" ".deps/sockets.Po"; else rm
-f ".deps/sockets.Tpo"; exit 1; fi
if cc -DHAVE_CONFIG_H -I. -I. -I..  -I../include  -I../include
-pthread -MT stdio.o -MD -MP -MF ".deps/stdio.Tpo" -c -o stdio.o
stdio.c;  then mv -f ".deps/stdio.Tpo" ".deps/stdio.Po"; else rm -f
".deps/stdio.Tpo"; exit 1; fi
if cc -DHAVE_CONFIG_H -I. -I. -I..  -I../include  -I../include
-pthread -MT tcp_window_size.o -MD -MP -MF ".deps/tcp_window_size.Tpo"
-c -o tcp_window_size.o tcp_window_size.c;  then mv -f
".deps/tcp_window_size.Tpo" ".deps/tcp_window_size.Po"; else rm -f
".deps/tcp_window_size.Tpo"; exit 1; fi
c++  -O2 -fno-strict-aliasing -pipe    -o iperf -pthread
-D_THREAD_SAFE   -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
ReportCSV.o(.text+0x2e1): In function `CSV_peer':
: undefined reference to `rpl_malloc'
Reporter.o(.text+0x7e): In function `InitMulti':
: undefined reference to `rpl_malloc'
Reporter.o(.text+0x8f): In function `InitMulti':
: undefined reference to `rpl_malloc'
Reporter.o(.text+0x57f): In function `InitReport':
: undefined reference to `rpl_malloc'
Reporter.o(.text+0x77a): In function `InitReport':
: undefined reference to `rpl_malloc'
Reporter.o(.text+0xc11): more undefined references to `rpl_malloc' follow
*** Error code 1

Stop in /usr/ports/benchmarks/iperf/work/iperf-2.0.2/src.
*** Error code 1

Stop in /usr/ports/benchmarks/iperf/work/iperf-2.0.2.
*** Error code 1

Stop in /usr/ports/benchmarks/iperf/work/iperf-2.0.2.
*** Error code 1

Stop in /usr/ports/benchmarks/iperf.


Let me know if you need more information,
Thanks for your help.

Regards.

-- 
There's this old saying: "Give a man a fish, feed him for a day. Teach
a man to fish, feed him for life."



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7daacbbe0711050518mcbe77fam11ce4ad160b4fd88>