AIX compile problems
Forwarded.
>Date: Tue, 17 Aug 2004 14:06:54 -0500
>Subject: AIX compile problems
>To: iperf-users --at-- dast.nlanr.net
>From: Bernard_Wu --at-- NCCI.COM
>Date: Tue, 17 Aug 2004 15:06:22 -0400
>
>Hi ,
>I tried compiling iperf-1.7.0 under aix 5.1 and I got the following
>messages :
>
>configure: creating ./config.status
>config.status: creating ../Makefile.rules
>config.status: creating config.h
> rm -f lib/libdast.a
>
> xlC -I../cfg -O2 -D_THREAD_SAFE -DHAVE_CONFIG_H -c Socket.cpp
> xlC -I../cfg -O2 -D_THREAD_SAFE -DHAVE_CONFIG_H -c SocketAddr.cpp
>"SocketAddr.cpp", line 68.12: 1540-0063 (S) The text "int" is unexpected.
>make: 1254-004 The error code from the last command is 1.
>
>
>Stop.
>make: 1254-004 The error code from the last command is 2.
>
>
>Stop.
>
>I then made the following modifications to :
>
>/iperf-1.7.0/lib/SocketAddr.cpp
>
>comment out the following lines, by adding a /* before and a */ at the
>end :
>
>/*
> #ifndef WIN32
> extern int h_errno;
> #endif
>*/
>
>I also had to make the following modifications to :
>
>/iperf-1.7.0/lib/headers.h
>
>line 129 : #endif /* HAVE_STRINGS_H */
>line 153 : #endif /* HAVE_POSIX_THREAD */
>line 188 : #endif /* SHUT_RD */
>line 194 : #endif /* HAVE_INT64_T */
>
>The compile finally worked with the following WARNING :
>
>ld: 0711-224 WARNING: Duplicate symbol: .Condition::~Condition()
>ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
>information.
>Target "all" is up to date.
>Target "all" is up to date.
>
>After doing the make install, I tested iperf as a server. And it works.
>
># /usr/local/bin/iperf -s -D -p 31010 -f k
>------------------------------------------------------------
>Server listening on TCP port 31010
>TCP window size: 256 KByte (default)
>------------------------------------------------------------
>Running Iperf Server as a daemon
>The Iperf daemon process ID : 1917182
>
>But when trying to use iperf as a client, I get the following errors :
> # iperf -c devo -p 31010 -f k
>error: System error returned in errno
>
>Anyone has any ideas on how to avoid the above error.
>
>TIA
>Bernie Wu
>bernard_wu --at-- ncci.com
>
>
>
>
--
Mitch Kutzko | mitch --at-- dast.nlanr.net | mitch --at-- ncsa.uiuc.edu | 217-333-1199
Project: http://dast.nlanr.net/ | Personal: http://hobbes.ncsa.uiuc.edu/