Re: meson's in-tree libpq header search order vs -Dextra_include_dirs
Thomas Munro <thomas.munro@gmail.com>
From: Thomas Munro <thomas.munro@gmail.com>
To: Mario González Troncoso <gonzalemario@gmail.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2025-10-09T20:26:08Z
Lists: pgsql-hackers
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
ci: Add missing "set -e" to scripts run by su.
- c3359d1cf5e5 15.15 landed
- 4da1f66fae83 16.11 landed
- 61cd67425f1a 17.7 landed
- ae2381025a4c 18.1 landed
- cf638b46aff2 19 (unreleased) landed
-
Don't put library-supplied -L/-I switches before user-supplied ones.
- 4300d8b6a79d 19 (unreleased) cited
On Fri, Oct 10, 2025 at 8:09 AM Mario González Troncoso <gonzalemario@gmail.com> wrote: > Can you confirm you still have this problem on current master? I tried Thanks for looking! Yes. > to reproduce it in debian 12 by installing `postgresql-server-dev-15` > and adding the -Dextra_include_dirs The problem is with libpq headers, not server headers. Thinking about how to show this on Debian... Also it'll fail to fail if your libpq headers are new enough to be compatible, eg 18. I guess if you find an older libpq-dev .deb file, v16 is what my system is clashing with, and unpack it into a temporary directory (something like ar x XXX.deb then tar xf data.tar.XXX), and then point to the headers in -Dextra_include_dirs, you should see it? Or maybe just make a temporary file somewhere called libpq-fe.h that contains: #error "wrong header included" ... and point to its parent with -Dextra_include_dirs. The goal is for the in-tree libpq-fe.h to be found sooner in the search path (as it is with configure), completely hiding that poisoned file.