pthread_mutex_timedlock is not implemented on the pthread lib for
leopard... ran into this issue the other day... I just reverted to the
Mutex.h/cpp to not usetimed lock anywhere, like the previous versions
were doing.

If there is another way I'd like to know.

Aaron



On Wed, Mar 10, 2010 at 3:20 PM, Sanjit Jhala <[email protected]> wrote:
> Hi,
>
> I'm trying to r921591 from
> http://gitweb.thrift-rpc.org/?p=thrift.git;a=commit;h=18be88fd2f5c3d297fcd660ee857880e25ff1717on
> Mac OSX 10.5.5 by running:
>  ./bootstrap.sh
> ./configure --with-libevent=/opt/local --with-boost=/opt/local
> make
>
>
> The build fails with:
> libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../.. -I/opt/local/include
> -I./src -Wall -g -O2 -MT Mutex.lo -MD -MP -MF .deps/Mutex.Tpo -c
> src/concurrency/Mutex.cpp  -fno-common -DPIC -o .libs/Mutex.o
> src/concurrency/Mutex.cpp: In member function ‘bool
> apache::thrift::concurrency::Mutex::impl::timedlock(int64_t) const’:
> src/concurrency/Mutex.cpp:142: error: ‘pthread_mutex_timedlock’ was not
> declared in this scope
> src/concurrency/Mutex.cpp: At global scope:
> src/concurrency/Mutex.cpp:186: warning: ‘void
> apache::thrift::concurrency::init_with_kind(pthread_mutex_t*, int)’ defined
> but not used
> make[3]: *** [Mutex.lo] Error 1
> make[2]: *** [all-recursive] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
>
> I do have an older version of thrift installed on my machine
>
> -Sanjit
>



-- 
Aaron Chappelle
Software Engineer, Skype
[email protected]
Skype: aaron.chappelle
Phone: +1 650 209 6569

Reply via email to