X-Original-To: pgsql-patches-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id C34955E3F15 for ; Tue, 17 Aug 2004 04:25:12 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 40458-04 for ; Tue, 17 Aug 2004 07:25:09 +0000 (GMT) Received: from mail2.trustcenter.de (mail2.trustcenter.de [193.194.157.2]) by svr1.postgresql.org (Postfix) with ESMTP id 98DBF5E37CB for ; Tue, 17 Aug 2004 04:25:06 -0300 (ADT) Received: from hermes.trustcenter.de (hermes.trustcenter.de [192.168.202.5]) by mail2.trustcenter.de (8.12.11/8.12.11) with ESMTP id i7H7OjIi009654; Tue, 17 Aug 2004 09:24:48 +0200 (CEST) Received: from [192.168.201.14] (titan.trustcenter.de [192.168.200.244]) by hermes.trustcenter.de (8.12.10/8.12.10/Debian-5) with ESMTP id i7H7ObmX020219; Tue, 17 Aug 2004 09:24:37 +0200 Message-ID: <4121B2B5.60807@betrusted.com> Date: Tue, 17 Aug 2004 09:24:37 +0200 From: =?ISO-8859-1?Q?Martin_M=FCnstermann?= User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.7.1) Gecko/20040707 X-Accept-Language: en-us, en, de-de, it MIME-Version: 1.0 To: Bruce Momjian Cc: Robert Treat , PostgreSQL-patches Subject: Re: [BUGS] 8.0.0beta1: -lpthread missing References: <200408162342.i7GNgjn10186@candle.pha.pa.us> In-Reply-To: <200408162342.i7GNgjn10186@candle.pha.pa.us> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200408/395 X-Sequence-Number: 12684 Bruce Momjian wrote: > OK, I found the cause. I forgot to run autoconf after the > config/acx_pthread.m4 updated. I just did so. Please retest. Thanks. Ok, I did an cvs update and rerun configure. Now it gives me an error: [...] checking whether pthreads work with -pthread... no checking whether pthreads work with -pthreads... yes checking for the pthreads library -lpthread... yes checking whether pthreads work with -mt... yes checking for the pthreads library -lpthreads... yes checking whether pthreads work without any flags... yes checking whether pthreads work with -Kthread... yes checking whether pthreads work with -kthread... yes checking for the pthreads library -llthread... yes checking whether pthreads work with -pthread... yes checking whether pthreads work with -pthreads... yes checking whether pthreads work with -mthreads... yes checking for the pthreads library -lpthread... yes checking whether pthreads work with --thread-safe... yes checking whether pthreads work with -mt... yes checking for joinable pthread attribute... unknown configure: WARNING: we do not know how to create joinable pthreads [Oooops.] checking if more special flags are required for pthreads... no checking for cc_r... gcc checking pthread.h usability... yes checking pthread.h presence... yes checking for pthread.h... yes checking for strerror_r... no checking for getpwuid_r... no checking for gethostbyname_r... no checking whether getpwuid_r takes a fifth argument... no checking whether strerror_r returns int... no [...] checking thread safety of required library functions... no configure: error: *** Thread test program failed. Your 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. However, you must then run *** the program in src/tools/thread and add locking function calls *** to your applications to guarantee thread safety. Bruce, I will send you my config.log privately. Regards, Martin > > -------------------------------------------------------------------------= > -- > > Martin M=FCnstermann wrote: > >>Bruce Momjian wrote: >> >>>>--> We need -lpthread on solaris, too. >>> >>>=20 >>>=20 >>>So the current CVS code is good? >> >>=20 >>No. At least not for solaris8. >>=20 >>configure says: >>checking whether pthreads work with -pthread... no >>checking whether pthreads work with -pthreads... yes >>checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE >>checking if more special flags are required for pthreads... no >>checking for cc_r... gcc >>checking pthread.h usability... yes >>checking pthread.h presence... yes >>checking for pthread.h... yes >>=20 >>=20 >>Makefile.global: >>PTHREAD_CFLAGS =3D -pthreads -D_REENTRANT -D_THREAD_SAFE=20 >>-D_POSIX_PTHREAD_SEMANTICS >>PTHREAD_LIBS =3D >>=20 >>No -lpthread and the resulting binaries have no dependancy on=20 >>libpthread.so, so at runtime only the stubs are being called. >>=20 >>Regards, >> Martin >>=20 > >