Re: threads stuff/UnixWare

From: "Marc G(dot) Fournier" <scrappy(at)postgresql(dot)org>
To: Larry Rosenman <ler(at)lerctr(dot)org>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: threads stuff/UnixWare
Date: 2004-05-12 19:54:43
Message-ID: 20040512165053.H35531@ganymede.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, 12 May 2004, Larry Rosenman wrote:

>
>
> --On Wednesday, May 12, 2004 15:59:19 -0300 "Marc G. Fournier"
> <scrappy(at)postgresql(dot)org> wrote:
>
> > On Wed, 12 May 2004, Larry Rosenman wrote:
> >
> >> >> > Ummm, shouldn't that be added to the port specific Makefile?
> >> >> See my reply to Tom. It forces ALL libpq using programs to be
> >> >> linked with -Kpthread, which was deemed unacceptable.
> >> >
> >> > deemed unacceptable by whom? Sounds to me alot simpler of a solution
> >> > then making wrappers for the pthread_* functions just to accommodate
> >> > one OS ... I could see it if this was a wide-spread problem, but it
> >> > doesn't appear to be ...
> >> Bruce didn't want to muck ip all the .c programs in the distribution to
> >> do that.
> >
> > I'm confused now ... what .c programs would have to be mucked up if you
> > add -Kpthread to the Unixware specific Makefile?
> initdb, et al.
>
> See these comments in src/template/unixware:
> # Disabled because flags are required for all apps using libpq.
> # Waiting to see if other platforms need this too. 2004-03-22
> THREAD_SUPPORT=yes
> # verified UnixWare 7.1.4 2004-03-18
> STRERROR_THREADSAFE=yes
> GETPWUID_THREADSAFE=yes
> GETHOSTBYNAME_THREADSAFE=yes
> $
>
> I turned it back on to see if the new stuff had fixed it.

k, I just looked at the template/unixware file myself, and it looks to me
like -Kpthread is already defined, and included as part of THREAD_CPPFLAGS
... is THREAD_CPPFLAGS not honor'd in all of the various Makefile's (ie.
initdb?) ...

Please correct me if I'm wrong here, but so far, the issue seems to be
that now that libpq uses pthread_* by default, Unixware requires -Kpthread
to be used when building all the various support programs that use libpq
... and -Kpthread is defined in template/unixware ... so I'm *really*
confused as to what is actually broken, except maybe the Makefile's
themselves ...

----
Marc G. Fournier Hub.Org Networking Services (http://www.hub.org)
Email: scrappy(at)hub(dot)org Yahoo!: yscrappy ICQ: 7615664

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2004-05-12 20:00:48 Re: threads stuff/UnixWare
Previous Message Larry Rosenman 2004-05-12 19:42:16 Re: threads stuff/UnixWare