Hi Danny,

A few weeks, or maybe months at this point, I set out to build the latest iperf 
on Solaris10 update 5 (5/08) and had to jump through some hoops.  I did succeed 
but haven't been able to package it up nicely quite yet.  The steps I used are 
as follows:

- Download iperf-2.0.4.tar.gz into a directory and place the patch file 
(attached) in the same directory.
- Unpack the source tarball:
gtar xvfz iperf-2.0.4.tar.gz
- Uncompress the patch file:
gunzip iperf-2.0.4-pthreads-rt.patch
- Enter the uncompressed source dir
cd iperf-2.0.4
- Run the configure script making sure to specify GNU make be used rather than 
Solaris make:
MAKE=gmake ./configure
- Apple the patch to the configured source directories using GNU patch util 
rather than Solaris patch:
gpatch -p1 < ../iperf-2.0.4-pthreads-rt.patch
- Build the source with GNU make rather than Solaris make:
gmake all

Hopefully if all goes well, the compiled iperf util will be in the ./src 
directory.

Hope that helps!
- Phillip




----- Original Message ----
> From: Danny Guo <[EMAIL PROTECTED]>
> To: iperf-users@lists.sourceforge.net
> Cc: [EMAIL PROTECTED]
> Sent: Monday, July 14, 2008 4:39:20 PM
> Subject: [Iperf-users] Iperf on Solaris?
> 
> Hi all,
> 
> I'm helping a friend to ask the question below.
> 
> Thanks,
> 
> Danny
> 
> ==========================================================================
> 
> Hi folks,
> 
> I failed to compile Iperf on solaris 10 platform. The following error
> message shows up:
> 
> g++: unrecognized option '-pthread'
> 
> Undefined                       first referenced
> 
> symbol                             in file
> 
> sched_yield                         ../compat/libcompat.a(Thread.o)
> 
> sendfile                            Client.o
> 
> ld: fatal: Symbol referencing errors. No output written to iperf
> 
> collect2: ld returned 1 exit status
> 
> 
> 
> It seems that there is something wrong with “pthread” library on solaris
> system. Does the current iperf support solaris? If so, how to figure it
> out? Any help will be highly appreciated!
> 
> 
> 
> -------------------------------------------------------------------------
> Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
> Studies have shown that voting for your favorite open source project,
> along with a healthy diet, reduces your potential for chronic lameness
> and boredom. Vote Now at http://www.sourceforge.net/community/cca08
> _______________________________________________
> Iperf-users mailing list
> Iperf-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iperf-users

Attachment: iperf-2.0.4-pthreads-rt.patch.gz
Description: GNU Zip compressed 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

Reply via email to