Hi, Here is a quick hack to compile iperf 2.0.4 on AIX. This patch includes: - rename a conflicted function from thread_init() to thread_initialize(). - add compat/malloc.c for AC_FUNC_MALLOC. - add @PTHREAD_LIBS@ into iperf_LDFLAGS in Makefile.
In addition, after applying this patch, I can compile iperf 2.0.4 on Solaris 8: $ PTHREAD_LIBS="-lpthreads -lrt" ./configure $ make Regards, Ryousei Takano On Fri, Jul 18, 2008 at 11:12 AM, Ryousei Takano <[EMAIL PROTECTED]> wrote: > Hi, > # My post may be fail to deliver, so I retry to post from another address. > > The thread_init() is conflicted with an AIX provided function. > > $ grep thread_init /usr/include/sys/*.h > /usr/include/sys/thread.h:void thread_init(); > /usr/include/sys/thread.h:void thread_init(ulong, ulong, ulong, > ulong); > /usr/include/sys/thread.h:void thread_init(unsigned long long, > unsigned long long); > /usr/include/sys/thread.h:void thread_init(unsigned long long, > unsigned long long); > > Maybe you should rename this function, for example, thread_initialize(). > > Regards, > Ryousei Takano > > On Jul 17, 2008, at 7:01 AM, Lancashire, Pete wrote: > >> AIX 5.3.8 >> >> # gcc -v >> Using built-in specs. >> Target: powerpc-ibm-aix5.3.0.0 >> Configured with: ../configure --with-as=/usr/bin/as --with-ld=/usr/bin/ld >> --disable-nls --enable-languages=c,c++ --prefix=/opt/freeware >> --enable-threads --enable-version-specific-runtime-libs >> --host=powerpc-ibm-aix5.3.0.0 >> Thread model: aix >> gcc version 4.0.0 >> >> # ./configure >> # make >> make all-recursive >> Making all in compat >> if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../include >> -Wall -O2 -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 >> Thread.c: In function 'thread_init': >> Thread.c:98: error: number of arguments doesn't match prototype >> ../include/Thread.h:103: error: prototype declaration >> make: The error code from the last command is 1. >> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge >> Build the coolest Linux based applications with Moblin SDK & win great prizes >> Grand prize is a trip for two to an Open Source event anywhere in the world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> Iperf-users mailing list >> Iperf-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/iperf-users >
iperf-2.0.4-aix.diff
Description: Binary data
------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________ Iperf-users mailing list Iperf-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/iperf-users