TERRIFIC! Thanks very much, Drew. So the only changes I needed to make from the normal procedure was:
- remove '-Wall' from all of the Makefile files - add '-lrt' to the line "LIBS = -lsocket -lnsl -lrt" in the Makefile in the 'src' directory. I could not apply the patch to the resulting code, but maybe I don't need it: # gpatch -p1 < ../iperf-2.0.4-pthreads-rt.patch patching file compat/Makefile Hunk #1 FAILED at 117. 1 out of 1 hunk FAILED -- saving rejects to file compat/Makefile.rej patching file config.h Reversed (or previously applied) patch detected! Assume -R? [n] Apply anyway? [n] Skipping patch. 1 out of 1 hunk ignored -- saving rejects to file config.h.rej patching file doc/Makefile Hunk #1 FAILED at 92. 1 out of 1 hunk FAILED -- saving rejects to file doc/Makefile.rej patching file include/Makefile Hunk #1 FAILED at 92. 1 out of 1 hunk FAILED -- saving rejects to file include/Makefile.rej patching file Makefile Hunk #1 FAILED at 116. 1 out of 1 hunk FAILED -- saving rejects to file Makefile.rej patching file man/Makefile Hunk #1 FAILED at 97. 1 out of 1 hunk FAILED -- saving rejects to file man/Makefile.rej patching file src/Makefile Hunk #1 FAILED at 121. Hunk #2 FAILED at 192. 2 out of 2 hunks FAILED -- saving rejects to file src/Makefile.rej # Thanks again, very much! tl -----Original Message----- From: Andrew Gallatin [mailto:galla...@gmail.com] Sent: Thursday, February 04, 2010 12:49 PM To: Lemons, Terry Subject: Re: [Iperf-users] FW: Iperf on Solaris? On Thu, Feb 4, 2010 at 11:07 AM, <lemons_te...@emc.com> wrote: > gmake[2]: Entering directory > `/export/home/iperf/iperf-2.0.4/src' > CC -o iperf -D_REENTRANT -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 -lsocket -lnsl > Undefined first referenced > symbol in file > sched_yield > ../compat/libcompat.a(Thread.o) I think the problem is that iperf needs to link to librt. For a simple workaround, try typing this: cd /export/home/iperf/iperf-2.0.4/src CC -o iperf -D_REENTRANT -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 -lsocket -lnsl -lrt This should result in an iperf binary you can run. Drew ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ Iperf-users mailing list Iperf-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/iperf-users