Re: DAST: Iperf - Solaris 10 compiling - pierre --at-- science.uottawa.ca
For Solaris 10 on x86 (with iperf 2.0.2 in my case) I had to:
1. Make sure I was using gnu make. (and specifically not /usr/ccs/bin/make)
2. Comment out the "#define HAVE_PTHREAD_CANCEL 1" line in config.h
3. Change any Makefile and */Makefile "-pthread" entries to "-lpthread"
Paul Hyder
NOAA Earth System Research Laboratory, Global Systems Division
Boulder, CO
BTW Haven't had a chance to test a lot but it is working. Will try to
look at config (for items #2 and #3) but am hopeful someone else will get
to it first :-)
>>Date: Sat, 17 Dec 2005 21:52:22 -0600
>>To: pierre --at-- science.uottawa.ca
>>Subject: DAST: Iperf - Solaris 10 compiling - pierre --at--
>
> science.uottawa.ca
>
>>
>>Contacting DAST re: Bug report about Iperf
>>From: Pierre Lalonde <pierre --at-- science.uottawa.ca>
>>
>>Subject: Solaris 10 compiling
>>
>>Question/Comment:
>>I am trying to compile iperf on solaris 10. I get make file errors after
>
> having used ./configure
>
>>I am using Sun Studio /opt/SUNWspro
>>
>>I tried to searh for info on google but I can't find solutions
>>Here is the output of make
>>
>>-bash-3.00$ make
>>make all-recursive
>>Making all in compat
>>if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -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_stop':
>>Thread.c:205: error: `oldTID' undeclared (first use in this function)
>>Thread.c:205: error: (Each undeclared identifier is reported only once
>>Thread.c:205: error: for each function it appears in.)
>>*** Error code 1
>>make: Fatal error: Command failed for target `Thread.o'
>>Current working directory /export/home/pierre/iperf/iperf-2.0.1/compat
>>*** Error code 1
>>The following command caused the error:
>>set fnord $MAKEFLAGS; amf=$2; \
>>dot_seen=no; \
>>target=`echo all-recursive | sed s/-recursive//`; \
>>list='compat doc include src'; for subdir in $list; do \
>> echo "Making $target in $subdir"; \
>> if test "$subdir" = "."; then \
>> dot_seen=yes; \
>> local_target="$target-am"; \
>> else \
>> local_target="$target"; \
>> fi; \
>> (cd $subdir && make $local_target) \
>> || case "$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
>>done; \
>>if test "$dot_seen" = "no"; then \
>> make "$target-am" || exit 1; \
>>fi; test -z "$fail"
>>make: Fatal error: Command failed for target `all-recursive'
>>Current working directory /export/home/pierre/iperf/iperf-2.0.1
>>*** Error code 1
>>make: Fatal error: Command failed for target `all'
>>-bash-3.00$