OS X compile issue
- To: iperf-users --at-- dast.nlanr.net
- Subject: OS X compile issue
- From: Mat Schaffer <schapht --at-- gmail.com>
- Date: Fri, 30 Jun 2006 09:03:20 -0400
- Content-transfer-encoding: 7bit
- Content-type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:mime-version:content-transfer-encoding:message-id:content-type:to:from:subject:date:x-mailer; b=lxS2Aag9m20hFzTE1DBHlpRY9cBWWrV6skeYpz3CImUrGyhq7qcy7gsVn0bOPj4xz8M5yeAR1mqHRG6it4LenszZtwFhDDlSNt8kOrcfxpd875pxIhpnetsBfeycblSb7qxUmfZ68L+czLXdhX5tJhucbu7nTwbY7l3m5ehFJf4=
- Reply-to: iperf-users --at-- dast.nlanr.net
- Sender: owner-iperf-users --at-- dast.nlanr.net
I had a little trouble getting 2.0.2 to compile on OS X. Here's the
make output:
make all-recursive
Making all in compat
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -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.)
make[2]: *** [Thread.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
My solution was to add #undef HAVE_PTHREAD_CANCEL just before the
#ifdef HAVE_PTHREAD_CANCEL. (line 204)
I'm sure this isn't ideal. My linux machine passes over line 205. I
don't know enough about PTHREAD_CANCEL to know the difference, but I
get the feeling that the 'pthread_cancel( oldTID) ' might be old code
because 'oldTID' doesn't exist anywhere else in the project.
I'm up and running, either way. Just thought the developers
(assuming they read this) might want to look into it.
-Mat