BUG #3713: problem with thread safety???
The following bug has been logged online:
Bug reference: 3713
Logged by: Ted Petrosky
Email address: tedpet5@yahoo.com
PostgreSQL version: 8.3 beta 2
Operating system: OS X 10.5
Description: problem with thread safety???
Details:
whilst configuring on a new Leopard install with this config line:
./configure --with-bonjour --enable-thread-safety --with-perl --with-python
--with-libedit-preferred
checking for sgmlspl... no
checking thread safety of required library functions... no
configure: error: thread test program failed
This platform is not thread-safe. Check the file 'config.log'for the
exact reason.
You can use the configure option --enable-thread-safety-force to force
threads to be enabled. But you must then run the program in
src/test/thread and add locking function calls to your applications to
guarantee thread safety.
I have never seen this before on OS X and I don't really know if it is a
limitation or a bug.
Ted
"Ted Petrosky" <tedpet5@yahoo.com> writes:
checking thread safety of required library functions... no
configure: error: thread test program failed
This platform is not thread-safe. Check the file 'config.log'for the
exact reason.
And?
regards, tom lane
Theodore Petrosky <tedpet5@yahoo.com> writes:
as I don't know enough to tell what is happening, I
will attach the config.log...
Well, you didn't need to look all that hard ...
configure:24893: checking thread safety of required library functions
configure:24921: gcc -no-cpp-precomp -o conftest -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -Kthread -kthread -pthread -pthreads -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS -DIN_CONFIGURE conftest.c -lz -ledit -lm -lpthread >&5
conftest.c:146:43: error: ./src/test/thread/thread_test.c: No such file or directory
So somehow src/test/thread/thread_test.c is missing from your source
tree. The only reason I've seen for that happening is when people
thought that they could download just the "base" tarball and not the
whole source distribution.
regards, tom lane
Import Notes
Reply to msg id not found: 64103.681.qm@web38414.mail.mud.yahoo.comReference msg id not found: 64103.681.qm@web38414.mail.mud.yahoo.com | Resolved by subject fallback
Tom Lane napsal(a):
So somehow src/test/thread/thread_test.c is missing from your source
tree. The only reason I've seen for that happening is when people
thought that they could download just the "base" tarball and not the
whole source distribution.
I found this problem as well when I verified BUG3728. I think it is problem
with packaging, base should be compiled without any other parts. If it is not
possible that I don't see any reason to have and distribute this tarball.
Zdenek