Re: UnixWare/CVS Tip/initdb.c needs to use threads flags...

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Larry Rosenman <ler(at)lerctr(dot)org>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: UnixWare/CVS Tip/initdb.c needs to use threads flags...
Date: 2004-03-19 13:01:53
Message-ID: 200403191301.i2JD1r923143@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Larry Rosenman wrote:
> > I thought that once you include libpthread in libpq, that you don't have
> > to mention it again then you use libpq. Is your platform different
> > somehow in this regard?
> >
> > I seem to remember this problem with libcrypt and libpq. Is this the
> > same problem?
> >
> > I see that initdb is just the first of many /bin programs to be
> > compiled, so if we have to add the thread lib, we will have to do it for
> > all the bin programs. Yikes. Why wasn't this a problem for 7.4?
> 7.4 had initdb as a Shell Script.
> the 7.4.x libpq didn't have any pthread_* references in it, that I see
> on my box.

Ah, yes. We added the thread-local storage to handle SIGPIPE. The
problem is that initdb isn't the only place. If you comment out initdb
from the Makefile in src/bin, does the next make fail too? I bet it
does.

--
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-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2004-03-19 13:27:14 Re: COPY formatting
Previous Message Fabien COELHO 2004-03-19 10:54:35 pg_advisor schema proof of concept

Browse pgsql-patches by date

  From Date Subject
Next Message Larry Rosenman 2004-03-19 13:39:18 Re: [HACKERS] UnixWare/CVS Tip/initdb.c needs to use threads
Previous Message Larry Rosenman 2004-03-19 05:03:40 Re: UnixWare/CVS Tip/initdb.c needs to use threads