From: Koen v. d. D. <kvd...@ea...> - 2004-01-03 20:30:51
|
On Jan 3, 2004, at 2:24 PM, Rafael Laboissiere wrote: > Could you then please try to put the following at the top of xwin.c > and tell > us what happens? > > #ifdef __APPLE__ > #define PTHREAD_MUTEX_RECURSIVE_NP PTHREAD_MUTEX_RECURSIVE > #define pthread_mutexattr_setkind_np pthread_mutexattr_setkind > #endif > > Make it sure that you ./configure --with-pthreads. > I still get an error: ld: Undefined symbols: _pthread_mutexattr_setkind Then I changed #ifdef __APPLE__ to #ifdef 1 be sure that it is picking up the new defines, and I get this error: xwin.c:25:8: macro names must be identifiers xwin.c: In function `plD_init_xw': xwin.c:287: error: `PTHREAD_MUTEX_RECURSIVE_NP' undeclared (first use in this function) xwin.c:287: error: (Each undeclared identifier is reported only once xwin.c:287: error: for each function it appears in.) make[2]: *** [xwin.lo] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 ### execution of make failed, exit code 2 Failed: compiling plplot-5.2.1.cvs.20031231-1 failed [ModusOperandi:local/main/finkinfo] koen% - Koen. |