8.0.0beta1: -lpthread missing

From: Martin Münstermann <mmuenstermann(at)betrusted(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: 8.0.0beta1: -lpthread missing
Date: 2004-08-10 09:14:56
Message-ID: 41189210.4040104@betrusted.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-patches pgsql-www

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).

Regards,
Martin

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message andrea.martano 2004-08-10 10:17:47 SOLARIS 9 ULTRASPARC BUILD
Previous Message Martin Münstermann 2004-08-10 08:53:15 8.0.0beta1: make check fails on solaris8

Browse pgsql-patches by date

  From Date Subject
Next Message Johan Paul Glutting 2004-08-10 09:21:31 Re: Win32 PostgreSQL 8.0 Beta 1 Installer available
Previous Message Aleksander Kmetec 2004-08-10 09:11:16 Re: Win32 PostgreSQL 8.0 Beta 1 Installer available

Browse pgsql-www by date

  From Date Subject
Next Message Justin Clift 2004-08-10 13:41:29 GBorg mailing lists need a bit of encouragement?
Previous Message Johan Paul Glutting 2004-08-10 08:07:34 Re: Win32 PostgreSQL 8.0 Beta 1 Installer available