C extension compilation failed while using PG 17.2 on mac m1

From: Lakshmi Narayana Velayudam <dev(dot)narayana(dot)v(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: C extension compilation failed while using PG 17.2 on mac m1
Date: 2025-05-16 13:30:45
Message-ID: CAA4pTnKts1MZBPrhJMc72VxMuTmKyk8tqfrLiXw3aXz_4Su1fg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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]

93 | return pwritev(fd, iov, iovcnt, offset);

I am not using pg_iovec.h or pwrite/pread related functions. My extension
compiles fine without any issues on PG 14.3

*PG compilation commands:*
./configure --prefix=$PWD/pgsql --enable-cassert --enable-debug
CFLAGS="-ggdb -fno-omit-frame-pointer -O0" --without-icu
make clean
make -j
make install -j

*Mac OS:* 15.1.1

Please let me know if you need any other information.

Thanks & Regards,
Narayana

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Dave Page 2025-05-16 13:31:41 Re: Align wording on copyright organization
Previous Message Andres Freund 2025-05-16 13:19:10 wrong query results on bf leafhopper