Re: thread_test.c problems

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: wespvp(at)syntegra(dot)com
Cc: PostgreSQL-general <pgsql-general(at)postgresql(dot)org>, joseph speigle <joe(dot)speigle(at)jklh(dot)us>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Subject: Re: thread_test.c problems
Date: 2004-04-25 21:21:47
Message-ID: 200404252121.i3PLLl209788@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

wespvp(at)syntegra(dot)com wrote:
> On 4/25/04 8:57 AM, "Bruce Momjian" <pgman(at)candle(dot)pha(dot)pa(dot)us> wrote:
>
> > In config/acx_pthreasd.m4, I see:
> >
> > acx_pthread_flags="pthreads none -Kthread -kthread lthread \
> > -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-conf
> > ...
> >
> > The configure test should be trying -lpthread as part of its work.
> >
> > Can you check config.log to see why it is failing? Here is the code
> > that should be checking:
>
> I don't see it attempting that test at all, but could be overlooking it.
> I'll send you the config.log file.

OK, I just did some major wacking of the thread stuff and tried it on
FreeBSD 4.9. It failed because getpwuid() isn't thread-safe on that
platform, and there isn't a getpwuid_r() function, but it did pick up
-pthread as a valid option.

Please test CVS HEAD and report back. Thanks.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message wespvp 2004-04-26 01:05:04 Re: thread_test.c problems
Previous Message Development - multi.art.studio 2004-04-25 20:28:30 Re: performance problem aftrer update from 7.1 to 7.4.2

Browse pgsql-hackers by date

  From Date Subject
Next Message Rob 2004-04-25 21:29:11 Re: [HACKERS] What can we learn from MySQL?
Previous Message pgsql 2004-04-25 21:15:19 Usability, MySQL, Postgresql.org, gborg, contrib, etc.