OK, I finally got this to compile.  I found sched_yield in librt so I added a 
-lrt after the -lpthread in the Makefiles and it now compiles.  Thanks for 
listening :)

----- Original Message ----
> From: Phillip Ross <[EMAIL PROTECTED]>
> To: Jon Dugan <[EMAIL PROTECTED]>
> Cc: iperf-users <iperf-users@lists.sourceforge.net>
> Sent: Saturday, May 10, 2008 3:00:46 AM
> Subject: Re: [Iperf-users] compiling on solaris10?
> 
> Actually, I've been able to get around the previous error I sent by manually 
> replacing the intances of -pthread with -lpthread in the Makefiles.  I also 
> found the following mailing list url and followed instructions of using gmake 
> as 
> well as commenting out "#define HAVE_PTHREAD_CANCEL 1" from config.h:
> http://archive.ncsa.uiuc.edu/lists/iperf-users/dec05/msg00010.html
> 
> 
> In doing this I get a past the -pthread error, but the new error is the 
> following:
> g++ -Wall -O2    -o iperf -O2  -D_REENTRANT -lpthread  -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)
> ld: fatal: Symbol referencing errors. No output written to iperf
> collect2: ld returned 1 exit status
> gmake[2]: *** [iperf] Error 1
> gmake[2]: Leaving directory `/export/home/admin/iperf/iperf-2.0.4/src'
> gmake[1]: *** [all-recursive] Error 1
> gmake[1]: Leaving directory `/export/home/admin/iperf/iperf-2.0.4'
> gmake: *** [all] Error 2
> 
> 
> ----- Original Message ----
> > From: Phillip Ross 
> > To: Jon Dugan 
> > Cc: iperf-users 
> > Sent: Saturday, May 10, 2008 2:12:52 AM
> > Subject: Re: [Iperf-users] compiling on solaris10?
> > 
> > Currently I get a -pthread error looking like this during compilation:
> > 
> > g++ -Wall -O2    -o iperf -O2  -D_REENTRANT -pthread  -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
> > g++: unrecognized option `-pthread'
> > Undefined                       first referenced
> > symbol                             in file
> > sched_yield                         ../compat/libcompat.a(Thread.o)
> > ld: fatal: Symbol referencing errors. No output written to iperf
> > collect2: ld returned 1 exit status
> > *** Error code 1
> > make: Fatal error: Command failed for target `iperf'
> > 
> > 
> > I'm guessing there might be something wrong with proper pthreads detection 
> > for 
> 
> > this particular solaris10+bundled GCC in the configure script?
> > 
> > Thanks
> > - Phillip
> > 
> > ----- Original Message ----
> > > From: Jon Dugan 
> > > To: Phillip Ross 
> > > Cc: iperf-users 
> > > Sent: Saturday, May 10, 2008 1:12:00 AM
> > > Subject: Re: [Iperf-users] compiling on solaris10?
> > > 
> > > Excerpts from Phillip Ross's message of Fri May 09 20:32:22 -0700 2008:
> > > > Hi all...  anyone have any luck compiling iperf 2.0.4 on solaris10 w/ 
> > > > the 
> > gcc
> > > > that is included with solaris10?  Any help or insight would be greatly
> > > > appreciated :)
> > > 
> > > Hello Phillip,
> > > 
> > > Can you please provide what error messages you are seeing.  I am afraid I
> > > don't have an up to date Solaris box to test on.  
> > > 
> > > Thanks,
> > > 
> > > Jon
> > > 
> > > -- 
> > > Jon M. Dugan           | GTalk: jdugan.esnet
> > > ESnet Network Engineering Group       | http://www.es.net
> > > Lawrence Berkeley National Laboratory | http://www.lbl.gov/
> 
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
> Don't miss this year's exciting event. There's still time to save $100. 
> Use priority code J8TL2D2. 
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> _______________________________________________
> Iperf-users mailing list
> Iperf-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iperf-users


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Iperf-users mailing list
Iperf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iperf-users

Reply via email to