Re: RC1, missing -lpthread when building with --disable-shared

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Frank van Vugt <ftm(dot)van(dot)vugt(at)foxi(dot)nl>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: RC1, missing -lpthread when building with --disable-shared
Date: 2004-12-07 14:29:34
Message-ID: 200412071429.iB7ETYg04578@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-patches


What do you show for PTHREAD_* in Makefile.global?

Is this another platform where the library doesn't remember dependencies
used when it was built? It is Linux so I wouldn't think so.

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

Frank van Vugt wrote:
> L.S.
>
> I noticed the following :
>
>
> Workstation used to build RC1:
>
> 2.4.21-260-athlon, i686 athlon i386 GNU/Linux
>
>
> Configured with :
>
> ./configure
> --enable-thread-safety
> --disable-shared
> --prefix=/usr/src/postgresql/install
>
>
> Error during make install :
>
> in directory src/bin/pg_ctl
>
> gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wendif-labels
> -fno-strict-aliasing pg_ctl.o -L../../../src/interfaces/libpq -lpq
> -L../../../src/port -Wl,-rpath,/usr/src/postgresql/install/lib -lpgport -lz
> -lreadline -lcrypt -lresolv -lnsl -ldl -lm -o pg_ctl
> ../../../src/interfaces/libpq/libpq.a(fe-secure.o)(.text+0x140): In function
> `pq_block_sigpipe':
> : undefined reference to `pthread_sigmask'
> ../../../src/interfaces/libpq/libpq.a(fe-secure.o)(.text+0x1e0): In function
> `pq_reset_sigpipe':
> : undefined reference to `pthread_sigmask'
> collect2: ld gaf exit-status 1 terug
>
>
> There seems to be a missing option '-lpthread' here, adding it properly links
> the file.
>
> The same goes for pg_restore, pg_dumpall, psql, createdb, createlang,
> createuser, dropdb, droplang, dropuser, clusterdb and vacuumdb.
>
>
>
>
>
> --
> Best,
>
>
>
>
> Frank.
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: the planner will ignore your desire to choose an index scan if your
> joining column's datatypes do not match
>

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

  From Date Subject
Next Message Bruno Wolff III 2004-12-07 14:52:33 Re: Fwd: 8.0 vs. 7.4 benchmarks
Previous Message Frank van Vugt 2004-12-07 13:35:34 RC1, missing -lpthread when building with --disable-shared on i686

Browse pgsql-patches by date

  From Date Subject
Next Message Frank van Vugt 2004-12-07 15:17:13 Re: RC1, missing -lpthread when building with --disable-shared on i686
Previous Message Frank van Vugt 2004-12-07 13:35:34 RC1, missing -lpthread when building with --disable-shared on i686