Re: [BUGS] 8.0.0beta1: -lpthread missing

From: Martin Münstermann <mmuenstermann(at)betrusted(dot)com>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Robert Treat <xzilla(at)users(dot)sourceforge(dot)net>, PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: [BUGS] 8.0.0beta1: -lpthread missing
Date: 2004-08-13 09:50:24
Message-ID: 411C8EE0.50507@betrusted.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-patches pgsql-www

> OK, we now have thread compile failure reports on Debian and Slackware.
>
> The config/acx_pthread.m4 script basically tests these:
>
> acx_pthread_flags=3D"pthreads none -Kthread -kthread lthread -pthread
> -pthreads -mthreads pthread --thread-safe -mt pthread-config"
> =09
> in that order and exits once it finds the first one that can
> compile/link this:
>
> AC_TRY_LINK([#include <pthread.h>],
> [pthread_t th; pthread_join(th, 0);
> pthread_attr_init(0); pthread_cleanup_push(0, 0);
> pthread_create(0,0,0,0); pthread_cleanup_pop(0); ],
> [acx_pthread_ok=3Dyes])
>
> Now, the big question is why -pthread can compile/link this successfully
> but -pthread isn't enough to build a library that uses threads.

I suspect that on Solaris, without "-lpthread" the pthread-stubs in
/usr/lib/libc.so might be called at runtime instead of the functional
ones in libpthread.so.

Could this easily be checked?

Martin

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Martin Münstermann 2004-08-13 11:30:11 Re: [BUGS] 8.0.0beta1: -lpthread missing
Previous Message Tom Lane 2004-08-13 03:29:16 Re: BUG #1217: wrong date->number of week conversion

Browse pgsql-patches by date

  From Date Subject
Next Message Johan Paul Glutting 2004-08-13 09:53:01 Re: Win32 PostgreSQL 8.0 Beta 1 Installer available
Previous Message Stefan Kaltenbrunner 2004-08-13 08:47:29 Re: ALTER INDEX

Browse pgsql-www by date

  From Date Subject
Next Message Martin Münstermann 2004-08-13 11:30:11 Re: [BUGS] 8.0.0beta1: -lpthread missing
Previous Message Dave Page 2004-08-13 09:26:16 Re: Request for download stats on release