Re: C extension compilation failed while using PG 17.2 on mac m1

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Lakshmi Narayana Velayudam <dev(dot)narayana(dot)v(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: C extension compilation failed while using PG 17.2 on mac m1
Date: 2025-05-16 16:05:10
Message-ID: 37542.1747411510@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Lakshmi Narayana Velayudam <dev(dot)narayana(dot)v(at)gmail(dot)com> writes:
> Hello, while compiling my c extension with PG 17,2 I am getting
> postgresql-17.2/pgsql/include/server/port/pg_iovec.h:93:10: error: call to
> undeclared function 'pwritev'; ISO C99 and later do not support implicit
> function declarations [-Wimplicit-function-declaration]

I failed to reproduce this. I wonder if you have some kind of version
skew problem --- SDK not matching underlying system, for instance.
preadv and pwritev do have some weirdness on Apple platforms,
but we should handle that on any PG >= v15 (cf. commit f014b1b9b).

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Daniel Gustafsson 2025-05-16 16:05:38 Re: Proposal: Make cfbot fail on patches not created by "git format-patch"
Previous Message Dave Page 2025-05-16 15:54:12 Re: Align wording on copyright organization