Re: 8.0.0beta1: -lpthread missing

From: Robert Treat <xzilla(at)users(dot)sourceforge(dot)net>
To: Martin Münstermann <mmuenstermann(at)betrusted(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: 8.0.0beta1: -lpthread missing
Date: 2004-08-10 18:53:36
Message-ID: 200408101453.36209.xzilla@users.sourceforge.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-patches pgsql-www

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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Sean Grimes 2004-08-10 19:02:08 PostgreSQL 8.0 Beta and Windows XP
Previous Message Nathan Daniels 2004-08-10 18:45:40 pgAdmin III edit grid on empty Table

Browse pgsql-patches by date

  From Date Subject
Next Message Peter Eisentraut 2004-08-10 19:00:15 Re: pg_controldata i18n Zh_CN
Previous Message Peter Eisentraut 2004-08-10 18:42:30 Re: Russian translation updates for 8.0

Browse pgsql-www by date

  From Date Subject
Next Message Josh Berkus 2004-08-10 18:58:50 PGSQL-WINDOWS mailing list?
Previous Message Bruce Momjian 2004-08-10 18:18:41 Portugal event