Re: 8.0.0beta1: -lpthread missing

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Robert Treat <xzilla(at)users(dot)sourceforge(dot)net>
Cc: Martin Münstermann <mmuenstermann(at)betrusted(dot)com>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: 8.0.0beta1: -lpthread missing
Date: 2004-08-11 01:19:18
Message-ID: 200408110119.i7B1JIU29556@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-patches pgsql-www

Robert Treat wrote:
> > `pthread_once'
> > ../../../src/interfaces/libpq/libpq.so: undefined reference to
> > `pthread_key_create'
> > ../../../src/interfaces/libpq/libpq.so: undefined reference to
> > `pthread_setspecific'
> > collect2: ld returned 1 exit status
> >
> >
> >
> > Please describe a way to repeat the problem. Please try to provide a
> > concise reproducible example, if at all possible:
> > ----------------------------------------------------------------------
> > # ./configure --prefix=/opt/postgresql-800beta1 --enable-thread-safety
> > # make
> >
> >
> > If you know how this problem might be fixed, list the solution below:
> > ---------------------------------------------------------------------
> > The binaries must be linked with pthread (-lpthread).
> >
>
> Can you take a look at the thread below and report back if that fixes your
> problem? http://archives.postgresql.org/pgsql-hackers/2004-08/msg00525.php

I looked at that. The line that does the tests is in
config/acx_pthread.m4:

acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread
-pthreads -mthreads pthread --thread-safe -mt pthread-conf ig"

so you should see that list tried. Does that help?

I am majorly concerned that Slackware has the same problem as Unixware,
meaning that if you use threading in the lib, you now need the flags on
every applicaiton that uses the lib.

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

  From Date Subject
Next Message Bruce Momjian 2004-08-11 01:42:11 Re: 8.0.0beta1: -lpthread missing
Previous Message Michael Fuhr 2004-08-11 00:08:33 Re: SOLARIS 9 ULTRASPARC BUILD

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2004-08-11 01:42:11 Re: 8.0.0beta1: -lpthread missing
Previous Message Greg Sabino Mullane 2004-08-11 00:01:45 PQserverVersion

Browse pgsql-www by date

  From Date Subject
Next Message Marc G. Fournier 2004-08-11 01:34:00 Re: MIrroring PGInstaller
Previous Message Marc G. Fournier 2004-08-11 00:38:24 Re: PGSQL-WINDOWS mailing list?