jkorell / iperf

Automatically exported from code.google.com/p/iperf
Other
1 stars 0 forks source link

Won't compile on Mac OS X Darwin with GCC 4.0.1 #43

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Now, I have a Macintosh with OS X 10.5. I downloaded the source file 
iperf-3.0b4.tar.gz . I attempted to compile it with the GCC 4.0.1. The compile 
process failed. 

What steps will reproduce the problem?
1. Extract iperf-3.0b4.tar.gz to a directory on Mac OS X Darwin.
2. As the README says, do ./configure and make.
3. Output from the configure and make is posted below for your information.

What is the expected output? What do you see instead?
I expected that the source was compiled into a binary executable. But I 
couldn't see any binary executable. Some error message from the compiling 
process appeared. It is posted below.

What version of the product are you using? On what operating system?
I downloaded the iperf-3.0b4.tar.gz file. I compiled it on Mac OS X 10.5 using 
GCC 4.0.1.

Please provide any additional information below.
Output from ./configure:
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... config/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking build system type... i386-apple-darwin9.8.0
checking host system type... i386-apple-darwin9.8.0
checking for gcc... gcc
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 gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for ranlib... ranlib
checking whether ln -s works... yes
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld
checking if the linker (/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld) is GNU 
ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -p
checking the name lister (/usr/bin/nm -p) interface... BSD nm
checking the maximum length of command line arguments... 196608
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld option to reload 
object files... -r
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... (cached) ranlib
checking command to parse /usr/bin/nm -p output from gcc object... ok
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for lipo... lipo
checking for otool... otool
checking for otool64... no
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
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 for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fno-common -DPIC
checking if gcc PIC flag -fno-common -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld) 
supports shared libraries... yes
checking dynamic linker characteristics... darwin9.8.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for ANSI C header files... (cached) yes
checking for uuid_create... no
checking for uuid_generate... yes
checking uuid.h usability... no
checking uuid.h presence... no
checking for uuid.h... no
checking uuid/uuid.h usability... yes
checking uuid/uuid.h presence... yes
checking for uuid/uuid.h... yes
checking for an ANSI C-conforming const... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/config.h
config.status: executing depfiles commands
config.status: executing libtool commands

Output from make:
Making all in src
make  all-am
gcc -DHAVE_CONFIG_H -I.     -g -O2 -MT iperf_api.o -MD -MP -MF 
.deps/iperf_api.Tpo -c -o iperf_api.o iperf_api.c
mv -f .deps/iperf_api.Tpo .deps/iperf_api.Po
gcc -DHAVE_CONFIG_H -I.     -g -O2 -MT iperf_error.o -MD -MP -MF 
.deps/iperf_error.Tpo -c -o iperf_error.o iperf_error.c
mv -f .deps/iperf_error.Tpo .deps/iperf_error.Po
gcc -DHAVE_CONFIG_H -I.     -g -O2 -MT iperf_client_api.o -MD -MP -MF 
.deps/iperf_client_api.Tpo -c -o iperf_client_api.o iperf_client_api.c
mv -f .deps/iperf_client_api.Tpo .deps/iperf_client_api.Po
gcc -DHAVE_CONFIG_H -I.     -g -O2 -MT iperf_server_api.o -MD -MP -MF 
.deps/iperf_server_api.Tpo -c -o iperf_server_api.o iperf_server_api.c
mv -f .deps/iperf_server_api.Tpo .deps/iperf_server_api.Po
gcc -DHAVE_CONFIG_H -I.     -g -O2 -MT iperf_tcp.o -MD -MP -MF 
.deps/iperf_tcp.Tpo -c -o iperf_tcp.o iperf_tcp.c
mv -f .deps/iperf_tcp.Tpo .deps/iperf_tcp.Po
gcc -DHAVE_CONFIG_H -I.     -g -O2 -MT iperf_udp.o -MD -MP -MF 
.deps/iperf_udp.Tpo -c -o iperf_udp.o iperf_udp.c
mv -f .deps/iperf_udp.Tpo .deps/iperf_udp.Po
gcc -DHAVE_CONFIG_H -I.     -g -O2 -MT iperf_util.o -MD -MP -MF 
.deps/iperf_util.Tpo -c -o iperf_util.o iperf_util.c
mv -f .deps/iperf_util.Tpo .deps/iperf_util.Po
gcc -DHAVE_CONFIG_H -I.     -g -O2 -MT locale.o -MD -MP -MF .deps/locale.Tpo -c 
-o locale.o locale.c
mv -f .deps/locale.Tpo .deps/locale.Po
gcc -DHAVE_CONFIG_H -I.     -g -O2 -MT net.o -MD -MP -MF .deps/net.Tpo -c -o 
net.o net.c
mv -f .deps/net.Tpo .deps/net.Po
gcc -DHAVE_CONFIG_H -I.     -g -O2 -MT tcp_info.o -MD -MP -MF 
.deps/tcp_info.Tpo -c -o tcp_info.o tcp_info.c
mv -f .deps/tcp_info.Tpo .deps/tcp_info.Po
gcc -DHAVE_CONFIG_H -I.     -g -O2 -MT tcp_window_size.o -MD -MP -MF 
.deps/tcp_window_size.Tpo -c -o tcp_window_size.o tcp_window_size.c
mv -f .deps/tcp_window_size.Tpo .deps/tcp_window_size.Po
gcc -DHAVE_CONFIG_H -I.     -g -O2 -MT timer.o -MD -MP -MF .deps/timer.Tpo -c 
-o timer.o timer.c
mv -f .deps/timer.Tpo .deps/timer.Po
gcc -DHAVE_CONFIG_H -I.     -g -O2 -MT units.o -MD -MP -MF .deps/units.Tpo -c 
-o units.o units.c
mv -f .deps/units.Tpo .deps/units.Po
rm -f libiperf.a
ar cru libiperf.a iperf_api.o iperf_error.o iperf_client_api.o 
iperf_server_api.o iperf_tcp.o iperf_udp.o iperf_util.o locale.o net.o 
tcp_info.o tcp_window_size.o timer.o units.o 
ranlib libiperf.a
gcc -DHAVE_CONFIG_H -I.    -g -Wall -g -O2 -MT iperf3-main.o -MD -MP -MF 
.deps/iperf3-main.Tpo -c -o iperf3-main.o `test -f 'main.c' || echo './'`main.c
mv -f .deps/iperf3-main.Tpo .deps/iperf3-main.Po
/bin/sh ../libtool --tag=CC   --mode=link gcc -g -Wall -g -O2   -o iperf3 
iperf3-main.o libiperf.a 
libtool: link: gcc -g -Wall -g -O2 -o iperf3 iperf3-main.o  libiperf.a
gcc -DHAVE_CONFIG_H -I.    -g -Wall -g -O2 -MT t_timer-t_timer.o -MD -MP -MF 
.deps/t_timer-t_timer.Tpo -c -o t_timer-t_timer.o `test -f 't_timer.c' || echo 
'./'`t_timer.c
t_timer.c: In function 'main':
t_timer.c:13: warning: implicit declaration of function 'sleep'
mv -f .deps/t_timer-t_timer.Tpo .deps/t_timer-t_timer.Po
/bin/sh ../libtool --tag=CC   --mode=link gcc -g -Wall -g -O2 iperf_error.o  -o 
t_timer t_timer-t_timer.o libiperf.a 
libtool: link: gcc -g -Wall -g -O2 iperf_error.o -o t_timer t_timer-t_timer.o  
libiperf.a
gcc -DHAVE_CONFIG_H -I.    -g -Wall -g -O2 -MT t_units-t_units.o -MD -MP -MF 
.deps/t_units-t_units.Tpo -c -o t_units-t_units.o `test -f 't_units.c' || echo 
'./'`t_units.c
mv -f .deps/t_units-t_units.Tpo .deps/t_units-t_units.Po
/bin/sh ../libtool --tag=CC   --mode=link gcc -g -Wall -g -O2   -o t_units 
t_units-t_units.o libiperf.a 
libtool: link: gcc -g -Wall -g -O2 -o t_units t_units-t_units.o  libiperf.a
gcc -DHAVE_CONFIG_H -I.    -g -Wall -g -O2 -MT t_uuid-t_uuid.o -MD -MP -MF 
.deps/t_uuid-t_uuid.Tpo -c -o t_uuid-t_uuid.o `test -f 't_uuid.c' || echo 
'./'`t_uuid.c
mv -f .deps/t_uuid-t_uuid.Tpo .deps/t_uuid-t_uuid.Po
/bin/sh ../libtool --tag=CC   --mode=link gcc -g -Wall -g -O2   -o t_uuid 
t_uuid-t_uuid.o libiperf.a 
libtool: link: gcc -g -Wall -g -O2 -o t_uuid t_uuid-t_uuid.o  libiperf.a
gcc -DHAVE_CONFIG_H -I.    -pg -Wall -g -O2 -MT iperf3_profile-main.o -MD -MP 
-MF .deps/iperf3_profile-main.Tpo -c -o iperf3_profile-main.o `test -f 'main.c' 
|| echo './'`main.c
mv -f .deps/iperf3_profile-main.Tpo .deps/iperf3_profile-main.Po
gcc -DHAVE_CONFIG_H -I.    -pg -Wall -g -O2 -MT iperf3_profile-iperf_api.o -MD 
-MP -MF .deps/iperf3_profile-iperf_api.Tpo -c -o iperf3_profile-iperf_api.o 
`test -f 'iperf_api.c' || echo './'`iperf_api.c
iperf_api.c: In function 'iperf_reporter_callback':
iperf_api.c:1128: warning: 'avg_jitter' may be used uninitialized in this 
function
mv -f .deps/iperf3_profile-iperf_api.Tpo .deps/iperf3_profile-iperf_api.Po
gcc -DHAVE_CONFIG_H -I.    -pg -Wall -g -O2 -MT iperf3_profile-iperf_error.o 
-MD -MP -MF .deps/iperf3_profile-iperf_error.Tpo -c -o 
iperf3_profile-iperf_error.o `test -f 'iperf_error.c' || echo './'`iperf_error.c
mv -f .deps/iperf3_profile-iperf_error.Tpo .deps/iperf3_profile-iperf_error.Po
gcc -DHAVE_CONFIG_H -I.    -pg -Wall -g -O2 -MT 
iperf3_profile-iperf_client_api.o -MD -MP -MF 
.deps/iperf3_profile-iperf_client_api.Tpo -c -o 
iperf3_profile-iperf_client_api.o `test -f 'iperf_client_api.c' || echo 
'./'`iperf_client_api.c
mv -f .deps/iperf3_profile-iperf_client_api.Tpo 
.deps/iperf3_profile-iperf_client_api.Po
gcc -DHAVE_CONFIG_H -I.    -pg -Wall -g -O2 -MT 
iperf3_profile-iperf_server_api.o -MD -MP -MF 
.deps/iperf3_profile-iperf_server_api.Tpo -c -o 
iperf3_profile-iperf_server_api.o `test -f 'iperf_server_api.c' || echo 
'./'`iperf_server_api.c
iperf_server_api.c: In function 'iperf_server_listen':
iperf_server_api.c:52: warning: unused variable 'x'
iperf_server_api.c:51: warning: unused variable 'ubuf'
mv -f .deps/iperf3_profile-iperf_server_api.Tpo 
.deps/iperf3_profile-iperf_server_api.Po
gcc -DHAVE_CONFIG_H -I.    -pg -Wall -g -O2 -MT iperf3_profile-iperf_tcp.o -MD 
-MP -MF .deps/iperf3_profile-iperf_tcp.Tpo -c -o iperf3_profile-iperf_tcp.o 
`test -f 'iperf_tcp.c' || echo './'`iperf_tcp.c
mv -f .deps/iperf3_profile-iperf_tcp.Tpo .deps/iperf3_profile-iperf_tcp.Po
gcc -DHAVE_CONFIG_H -I.    -pg -Wall -g -O2 -MT iperf3_profile-iperf_udp.o -MD 
-MP -MF .deps/iperf3_profile-iperf_udp.Tpo -c -o iperf3_profile-iperf_udp.o 
`test -f 'iperf_udp.c' || echo './'`iperf_udp.c
mv -f .deps/iperf3_profile-iperf_udp.Tpo .deps/iperf3_profile-iperf_udp.Po
gcc -DHAVE_CONFIG_H -I.    -pg -Wall -g -O2 -MT iperf3_profile-iperf_util.o -MD 
-MP -MF .deps/iperf3_profile-iperf_util.Tpo -c -o iperf3_profile-iperf_util.o 
`test -f 'iperf_util.c' || echo './'`iperf_util.c
mv -f .deps/iperf3_profile-iperf_util.Tpo .deps/iperf3_profile-iperf_util.Po
gcc -DHAVE_CONFIG_H -I.    -pg -Wall -g -O2 -MT iperf3_profile-locale.o -MD -MP 
-MF .deps/iperf3_profile-locale.Tpo -c -o iperf3_profile-locale.o `test -f 
'locale.c' || echo './'`locale.c
mv -f .deps/iperf3_profile-locale.Tpo .deps/iperf3_profile-locale.Po
gcc -DHAVE_CONFIG_H -I.    -pg -Wall -g -O2 -MT iperf3_profile-net.o -MD -MP 
-MF .deps/iperf3_profile-net.Tpo -c -o iperf3_profile-net.o `test -f 'net.c' || 
echo './'`net.c
mv -f .deps/iperf3_profile-net.Tpo .deps/iperf3_profile-net.Po
gcc -DHAVE_CONFIG_H -I.    -pg -Wall -g -O2 -MT iperf3_profile-tcp_info.o -MD 
-MP -MF .deps/iperf3_profile-tcp_info.Tpo -c -o iperf3_profile-tcp_info.o `test 
-f 'tcp_info.c' || echo './'`tcp_info.c
mv -f .deps/iperf3_profile-tcp_info.Tpo .deps/iperf3_profile-tcp_info.Po
gcc -DHAVE_CONFIG_H -I.    -pg -Wall -g -O2 -MT 
iperf3_profile-tcp_window_size.o -MD -MP -MF 
.deps/iperf3_profile-tcp_window_size.Tpo -c -o iperf3_profile-tcp_window_size.o 
`test -f 'tcp_window_size.c' || echo './'`tcp_window_size.c
mv -f .deps/iperf3_profile-tcp_window_size.Tpo 
.deps/iperf3_profile-tcp_window_size.Po
gcc -DHAVE_CONFIG_H -I.    -pg -Wall -g -O2 -MT iperf3_profile-timer.o -MD -MP 
-MF .deps/iperf3_profile-timer.Tpo -c -o iperf3_profile-timer.o `test -f 
'timer.c' || echo './'`timer.c
mv -f .deps/iperf3_profile-timer.Tpo .deps/iperf3_profile-timer.Po
gcc -DHAVE_CONFIG_H -I.    -pg -Wall -g -O2 -MT iperf3_profile-units.o -MD -MP 
-MF .deps/iperf3_profile-units.Tpo -c -o iperf3_profile-units.o `test -f 
'units.c' || echo './'`units.c
mv -f .deps/iperf3_profile-units.Tpo .deps/iperf3_profile-units.Po
/bin/sh ../libtool --tag=CC   --mode=link gcc -pg -Wall -g -O2   -o 
iperf3_profile iperf3_profile-main.o iperf3_profile-iperf_api.o 
iperf3_profile-iperf_error.o iperf3_profile-iperf_client_api.o 
iperf3_profile-iperf_server_api.o iperf3_profile-iperf_tcp.o 
iperf3_profile-iperf_udp.o iperf3_profile-iperf_util.o iperf3_profile-locale.o 
iperf3_profile-net.o iperf3_profile-tcp_info.o iperf3_profile-tcp_window_size.o 
iperf3_profile-timer.o iperf3_profile-units.o libiperf.a 
libtool: link: gcc -pg -Wall -g -O2 -o iperf3_profile iperf3_profile-main.o 
iperf3_profile-iperf_api.o iperf3_profile-iperf_error.o 
iperf3_profile-iperf_client_api.o iperf3_profile-iperf_server_api.o 
iperf3_profile-iperf_tcp.o iperf3_profile-iperf_udp.o 
iperf3_profile-iperf_util.o iperf3_profile-locale.o iperf3_profile-net.o 
iperf3_profile-tcp_info.o iperf3_profile-tcp_window_size.o 
iperf3_profile-timer.o iperf3_profile-units.o  libiperf.a
make[1]: Nothing to be done for `all-am'.

Original issue reported on code.google.com by p...@gunnar-pv.dk on 5 Dec 2011 at 3:49

GoogleCodeExporter commented 8 years ago
FYI: beta4 builds and runs on OS X 10.7(3), apple GCC 4.2.1

Original comment by mil...@gmail.com on 8 Feb 2012 at 11:58

GoogleCodeExporter commented 8 years ago
i am also facing the same issue...
i am on 10.7.3 

Original comment by develope...@gmail.com on 30 Apr 2012 at 6:23

GoogleCodeExporter commented 8 years ago
I have the same problem with 10.6.8

Original comment by mbru...@gmail.com on 30 Apr 2012 at 3:24

GoogleCodeExporter commented 8 years ago
no this is not an issue ,,,this just means that all the files are upto date and 
u can start using iperf :) cheersss

Original comment by amithood...@gmail.com on 7 May 2012 at 10:58

GoogleCodeExporter commented 8 years ago

Original comment by bltier...@es.net on 12 Mar 2013 at 10:36