thread_test's sched_yield requires -lrt on solaris

From: Oskari Saarenmaa <os(at)ohmu(dot)fi>
To: pgsql-hackers(at)postgresql(dot)org
Subject: thread_test's sched_yield requires -lrt on solaris
Date: 2015-06-26 07:52:26
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

I configured the dingo and binturong Solaris 10 animals to build 9.3
some time ago but apparently they always failed the configure phase.
Turns out this is caused by thread_test's usage of sched_yield which is
in librt on Solaris but which is not pulled in by anything on 9.3 and
earlier on my box.

Apparently the other Solaris animal (castoroides) requires librt for
fdatasync, but that's not required on my system. On 9.4 and master
librt is required for shm_open so the check doesn't fail there.

Attached a patch to check for sched_yield in configure, the patch only
applies against 9.0 - 9.3 which are using autoconf 2.63. We should
probably check for sched_yield anyway on all branches even if it's not
strictly required on 9.4+ at the moment.

/ Oskari

Attachment Content-Type Size
0001-configure-we-need-lrt-for-sched_yield-on-solaris.patch text/x-patch 4.1 KB


Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Langote 2015-06-26 08:04:43 Re: Support for N synchronous standby servers - take 2
Previous Message Dean Rasheed 2015-06-26 07:27:34 Re: WIP: ALTER TABLE ... ALTER CONSTRAINT ... SET DEFERRABLE on UNIQUE or PK