On 4/23/04 6:59 PM, "Bruce Momjian" <pgman@candle.pha.pa.us> wrote: > > I have just commited to CVS code that will do all the compile/library > flags and thread tests automatically. Let me know how it works for > you. Thanks. No, I don't think it is right. I did a 'cvs update', then ran 'configure'. Templates/darwin contains the information below. I don't know if it is supposed to contain the three *_TREADSAFE lines any more, but shouldn't it at least have the 'THREAD_SUPPORT' and 'THREAD_LIBS' entries? The output of thread_test run manually is: wrp% ./thread_test Your errno is thread-safe. Your system has sterror_r(); it does not need strerror(). Your system has getpwuid_r(); it does not need getpwuid(). Your system has getaddrinfo(); it does not need gethostbyname() or gethostbyname_r(). Your platform is thread-safe. ------ The current darwin file: ------ # Apple's cpp-precomp seems a tad broken, so don't use it # (Note: on OS X before 10.2, you might need -traditional-cpp instead) CC="$CC -no-cpp-precomp" # Select appropriate semaphore support USE_NAMED_POSIX_SEMAPHORES=1 # verified Mac OS X 10.3.3, Darwin Kernel Version 7.3.0, 2004-04-07 PTHREAD_CFLAGS="-D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS" ------- The darwin file I had been using with 10.3.3 is: ------- # Apple's cpp-precomp seems a tad broken, so don't use it # (Note: on OS X before 10.2, you might need -traditional-cpp instead) #CC="$CC -no-cpp-precomp" # Select appropriate semaphore support USE_NAMED_POSIX_SEMAPHORES=1 # tools/thread/thread_test must be run THREAD_SUPPORT=yes THREAD_CPPFLAGS="-D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS" THREAD_LIBS="-lpthread" STRERROR_THREADSAFE=yes GETPWUID_THREADSAFE=yes GETHOSTBYNAME_THREADSAFE=yes #NEED_REENTRANT_FUNCS=yes ---------------------------(end of broadcast)--------------------------- TIP 7: don't forget to increase your free space map settings