<div dir="ltr">I didn't realize my reply to Mikael was off the list - here's a possible fix.  I'm still not sure if it's OSX10.10 specific or not:<div><br><div class="gmail_quote">---------- Forwarded message ----------<br><br><div dir="ltr">Thanks - you only need to change the value in 'configure' (and '<a href="http://configure.ac" target="_blank">configure.ac</a>' for a full autotool rebuild), and it does now work - not sure if this is an error in the configure script or OS X 10.10 specific.  <div><br></div><div><span class=""><div><font face="courier new, monospace">checking for struct stat64... yes</font></div></span><div><font face="courier new, monospace">checking for posix threads with CFLAGS=' ' and LIBS=' '... yes</font></div><div><font face="courier new, monospace">checking for thread local storage class... __thread</font></div></div><span class="HOEnZb"><font color="#888888"><div><br></div><div> Adam</div><div><br></div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 16, 2014 at 12:36 PM, Mikael wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Adam, can you replace all occurrences in your Gambit sources of "<span style="font-family:'courier new',monospace;font-size:13px">pthread_join (&thread, NULL);</span>" with "<span style="font-family:'courier new',monospace;font-size:13px">pthread_join (thread, NULL);</span>" and check again?</div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>2014-10-16 17:54 GMT+02:00 Adam King <span dir="ltr"><<a href="mailto:akingcoder@gmail.com" target="_blank">akingcoder@gmail.com</a>></span>:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr">I'd like to try out the multiple vm option as I want to have 2 separate OS threads, each running their own copy of gambit - neither of which need to communicate with the other, so I tried to rebuild Gambit using the --enable-multiple-vms option (this is under OS X 10.10 - Yosemite with Xcode6 - 6A313):<div><br></div><div><font face="courier new, monospace">quorra:gambit aking$ ./configure --enable-multiple-vms --enable-cplusplus<br></font></div><div><br></div><div>It ends up showing the following warning:</div><div><br></div><div><div><font face="courier new, monospace">checking for struct stat64... yes</font></div><div><font face="courier new, monospace">checking for posix threads with CFLAGS=' ' and LIBS=' '... no</font></div><div><font face="courier new, monospace">checking for posix threads with CFLAGS=' -mt' and LIBS=' '... no</font></div><div><font face="courier new, monospace">checking for posix threads with CFLAGS=' -pthread' and LIBS=' '... no</font></div><div><font face="courier new, monospace">checking for posix threads with CFLAGS=' ' and LIBS=' -lpthread'... no</font></div><div><font face="courier new, monospace">checking for win32 threads... no</font></div><div><font face="courier new, monospace">configure:</font></div><div><font face="courier new, monospace">*********************************************************************</font></div><div><font face="courier new, monospace">***                                                               ***</font></div><div><font face="courier new, monospace">*** A thread system is required for this configuration but none   ***</font></div><div><font face="courier new, monospace">*** of the supported thread systems (posix threads and win32      ***</font></div><div><font face="courier new, monospace">*** threads) are available on this platform. The configuration    ***</font></div><div><font face="courier new, monospace">*** will proceed as though --disable-thread-system,               ***</font></div><div><font face="courier new, monospace">*** --disable-multiple-vms, and --disable-multiple-threaded-vms   ***</font></div><div><font face="courier new, monospace">*** were specified.                                               ***</font></div><div><font face="courier new, monospace">***                                                               ***</font></div><div><font face="courier new, monospace">*********************************************************************</font></div></div><div><br></div><div>Checking config.log, I see:</div><div><br></div><div><div><font face="courier new, monospace">configure:8106: checking for posix threads with CFLAGS=' ' and LIBS=' -lpthread'</font></div><div><font face="courier new, monospace">configure:8133: g++ -o conftest    conftest.cpp  -lpthread >&5</font></div><div><font face="courier new, monospace">conftest.cpp:136:14: error: no matching function for call to 'pthread_join'</font></div><div><font face="courier new, monospace">             pthread_join (&thread, NULL);</font></div><div><font face="courier new, monospace">             ^~~~~~~~~~~~</font></div><div><font face="courier new, monospace">/usr/include/pthread.h:336:5: note: candidate function not viable: no known conversion from 'p</font><span style="font-family:'courier new',monospace">thread_t *' (aka '_opaque_pthread_t **') to 'pthread_t' (aka '_opaque_pthread_t *') for 1st argument; remove &</span></div><div><font face="courier new, monospace">int pthread_join(pthread_t , void **) __DARWIN_ALIAS_C(pthread_join);</font></div><div><font face="courier new, monospace">    ^</font></div><div><font face="courier new, monospace">1 error generated.</font></div><div><font face="courier new, monospace">configure:8133: $? = 1</font></div></div><div><br></div><div>I <b>know</b> I have pthreads installed and working as I have 3 different apps all using pthreads on this system.  Not sure what's going wrong here - pthread's API change?</div><span><font color="#888888"><div><br></div><div>  Adam</div></font></span></div>
<br></div></div>_______________________________________________<br>
Gambit-list mailing list<br>
<a href="mailto:Gambit-list@iro.umontreal.ca" target="_blank">Gambit-list@iro.umontreal.ca</a><br>
<a href="https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list" target="_blank">https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>
</div></div></div><br></div></div>