pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Move pthread-tests earlier in the autoconf script.
2+ messages / 1 participants
[nested] [flat]

* pgsql: Move pthread-tests earlier in the autoconf script.
@ 2015-07-08 21:09  Heikki Linnakangas <heikki.linnakangas@iki.fi>
  0 siblings, 0 replies; 2+ messages in thread

From: Heikki Linnakangas @ 2015-07-08 21:09 UTC (permalink / raw)
  To: pgsql-committers

Move pthread-tests earlier in the autoconf script.

On some Linux systems, "-lrt" exposed pthread-functions, so that linking
with -lrt was seemingly enough to make a program that uses pthreads to
work. However, when linking libpq, the dependency to libpthread was not
marked correctly, so that when an executable was linked with -lpq but
without -pthread, you got errors about undefined pthread_* functions from
libpq.

To fix, test for the flags required to use pthreads earlier in the autoconf
script, before checking any other libraries.

This should fix the failure on buildfarm member shearwater. gharial is also
failing; hopefully this fixes that too although the failure looks somewhat
different.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/3b14a17c8e60e8ae9227b9533667743508056c35

Modified Files
--------------
configure    | 7583 +++++++++++++++++++++++++++++-----------------------------
configure.in |  147 +-
2 files changed, 3868 insertions(+), 3862 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* pgsql: Move pthread-tests earlier in the autoconf script.
@ 2015-07-08 21:12  Heikki Linnakangas <heikki.linnakangas@iki.fi>
  0 siblings, 0 replies; 2+ messages in thread

From: Heikki Linnakangas @ 2015-07-08 21:12 UTC (permalink / raw)
  To: pgsql-committers

Move pthread-tests earlier in the autoconf script.

On some Linux systems, "-lrt" exposed pthread-functions, so that linking
with -lrt was seemingly enough to make a program that uses pthreads to
work. However, when linking libpq, the dependency to libpthread was not
marked correctly, so that when an executable was linked with -lpq but
without -pthread, you got errors about undefined pthread_* functions from
libpq.

To fix, test for the flags required to use pthreads earlier in the autoconf
script, before checking any other libraries.

This should fix the failure on buildfarm member shearwater. gharial is also
failing; hopefully this fixes that too although the failure looks somewhat
different.

Branch
------
REL9_5_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/080c4dab3d9575449b81604051b160597cfd55c3

Modified Files
--------------
configure    | 7648 +++++++++++++++++++++++++++++-----------------------------
configure.in |  147 +-
2 files changed, 3900 insertions(+), 3895 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2015-07-08 21:12 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-07-08 21:09 pgsql: Move pthread-tests earlier in the autoconf script. Heikki Linnakangas <heikki.linnakangas@iki.fi>
2015-07-08 21:12 pgsql: Move pthread-tests earlier in the autoconf script. Heikki Linnakangas <heikki.linnakangas@iki.fi>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox