Re: 8.0.0beta1: -lpthread missing

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: 8.0.0beta1: -lpthread missing
Дата
Msg-id 200408110142.i7B1gBe03560@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: 8.0.0beta1: -lpthread missing  (Robert Treat <xzilla@users.sourceforge.net>)
Список pgsql-bugs
In fact, backup in the output and look at the flags used to build libpq.
Are they correct?  If they are, you shouldn't need any additional flags
when building initdb because initdb doesn't call any threaded functions,
_except_ if you have that limitation that a libpq using threads requries
a thread flag for everything that calls libpq.

Please report back.

---------------------------------------------------------------------------

Robert Treat wrote:
> On Tuesday 10 August 2004 05:14, Martin M?nstermann wrote:
> > System Configuration
> > ---------------------
> >    Architecture (example: Intel Pentium)         : Intel Pentium
> >
> >    Operating System (example: Linux 2.4.18)      : Linux 2.4.21-grsec
> > (Debian)
> >
> >    PostgreSQL version (example: PostgreSQL-8.0):   PostgreSQL-8.0.0-beta1
> >
> >    Compiler used (example:  gcc 2.95.2)          : 2.95.4
> >
> >
> > Please enter a FULL description of your problem:
> > ------------------------------------------------
> > When configuring --enable-thread-safety the binaries cannot be linked:
> > gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes
> > -Wmissing-declarations initdb.o dirmod.o exe
> > c.o -L../../../src/interfaces/libpq -lpq -L../../../src/port
> > -Wl,-rpath,/opt/postgresql-800beta1/li
> > b -lpgport -lz -lreadline -lcrypt -lresolv -lnsl -ldl -lm  -o initdb
> > ../../../src/interfaces/libpq/libpq.so: undefined reference to
> > `pthread_getspecific'
> > ../../../src/interfaces/libpq/libpq.so: undefined reference to
> > `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
>
> --
> Robert Treat
> Build A Better Lamp :: Linux Apache {middleware} PostgreSQL
>
> ---------------------------(end of broadcast)---------------------------
> TIP 8: explain analyze is your friend
>

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

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Theodore Petrosky
Дата:
Сообщение: Re: OSX problem with make check...
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: 8.0.0beta1: -lpthread missing