On 3/25/04 3:43 PM, "Bruce Momjian" <[EMAIL PROTECTED]> wrote:
> I assume you were using 7.4.0, rather than 7.4.2. Current CVS has in > template/solaris: > > > # tools/thread/thread_test must be run > # -D_POSIX_PTHREAD_SEMANTICS enables 5-arg getpwuid_r, among other > things > if test "$GCC" = yes > then THREAD_CPPFLAGS="-D_POSIX_PTHREAD_SEMANTICS" > THREAD_LIBS="-pthread" > else THREAD_CPPFLAGS="-mt -D_POSIX_PTHREAD_SEMANTICS" > THREAD_LIBS="-lpthread" > fi I'm right in the middle - using 7.4.1 with GCC. However, I did try 7.4.2 and it has the same problem. Looks like a typo in template/solaris, and certainly explains the bad parameter on gcc. The "if gcc" has the incorrect "-pthread". This would seem an appropriate place to add - -D_REENTRANT to fix the errno issue, wouldn't it? Wes ---------------------------(end of broadcast)--------------------------- TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faqs/FAQ.html