Re: BUG #18086: compilation failed due to epoll_create1 not present

From: Duke Astar <dukeastar(at)gmail(dot)com>
To: daniel(at)yesql(dot)se
Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #18086: compilation failed due to epoll_create1 not present
Date: 2023-09-05 13:26:18
Message-ID: CAHG7-y3-AtgjaSpx4oo9D678xhKpUrJQRbKx1jx8VKKF1nmt_A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Thanks,

You can close the issue

Le mar. 5 sept. 2023 à 13:51, Daniel Gustafsson <daniel(at)yesql(dot)se> a écrit :

> > On 5 Sep 2023, at 12:59, PG Bug reporting form <noreply(at)postgresql(dot)org>
> wrote:
>
> > during make, compilation failed due to missing epoll_create1,
> compilation
> > works in postgres 13.12
>
> ...
>
> > configure set macro HAVE_SYS_EPOLL_H when sys/epoll.h is present
> > and in src/backend/storageipc/latch.c
> > HAVE_SYS_EPOLL_H define WAIT_USE_EPOLL
> > and WAIT_USE_EPOLL use have 'epoll_create1' which is not present on the
> > operating system, only first version is present 'epoll_create'
> >
> > I compared source code between 13.2 and 14.9 and I saw the ifdef
> > EPOLL_CLOEXEC section was removed, which was a previous constraint which
> use
> > epoll_create if not defined instead of epoll_create1 .
> >
> > Workaround
> > As a workaround I found that i can set -DWAIT_USE_POLL during configure
> to
> > use poll instead epoll but I think that's lead to performance issue.
>
> Commit d1b90995e8d41df7e59efe48e98f26cd66baba9b and the pgsql-hackers
> thread
>
> https://postgr.es/m/CA%2BhUKGKL_%3DaO%3Dr30N%3Ds9VoDgTqHpRSzePRbA9dkYO7snc7HsxA%40mail.gmail.com
> provides background on that removal. RHEL 5 is not a supported target.
>
> --
> Daniel Gustafsson
>
>

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Bruce Momjian 2023-09-05 15:18:52 Re: BUG #18084: Count Mismatch Challenges During PostgreSQL Database Migration: Causes and Solutions
Previous Message PG Bug reporting form 2023-09-05 13:22:58 BUG #18089: Orphaned Rows During PostgreSQL Data Migration