On Sat, 10 May 2008 00:00:46 -0700 (PDT)
Phillip Ross <[EMAIL PROTECTED]> wrote:

> 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 <[EMAIL PROTECTED]>
> > To: Jon Dugan <[EMAIL PROTECTED]>
> > Cc: iperf-users <iperf-users@lists.sourceforge.net>
> > 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

The use of sched_yield is in compat/Thread.c.  The definition of sched_yield
from the man page says:
    POSIX  systems on which sched_yield() is available define _POSIX_PRIOR‐
    ITY_SCHEDULING in <unistd.h>.

So the ifdef's look right, looks like your compiler install is not configured
correctly (ie a gcc problem).


-------------------------------------------------------------------------
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