RC1, missing -lpthread when building with --disable-shared on i686 - Mailing list pgsql-general

From Frank van Vugt
Subject RC1, missing -lpthread when building with --disable-shared on i686
Date
Msg-id 200412071435.34499.ftm.van.vugt@foxi.nl
Whole thread Raw
In response to Re: How can I recovery old Data from files and folders on windows?  ("Markus Wollny" <Markus.Wollny@computec.de>)
Responses Re: RC1, missing -lpthread when building with --disable-shared  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-general
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.


pgsql-general by date:

Previous
From: "P.J. \"Josh\" Rovero"
Date:
Subject: Re: Performance tuning on RedHat Enterprise Linux 3
Next
From: Bruce Momjian
Date:
Subject: Re: RC1, missing -lpthread when building with --disable-shared