What is the build strategy between make and meson?

From: Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com>
To: Postgres hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: What is the build strategy between make and meson?
Date: 2025-10-09 04:00:09
Message-ID: 3B2DADD5-BFE0-45F7-B5DE-75534EEB3A60@gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

It is my first time trying meson build, and I got a bunch of warnings on my MacBook with macOS Sequoia 15.6.1:

```
chaol(at)ChaodeMacBook-Air build % ninja
[231/1835] Compiling C object src/interfaces/libpq/libpq.5.dylib.p/fe-connect.c.o
../src/interfaces/libpq/fe-connect.c:5622:12: warning: 'ldap_init' is deprecated: first deprecated in macOS 10.10 - use ldap_initialize [-Wdeprecated-declarations]
5622 | if ((ld = ldap_init(hostname, port)) == NULL)
| ^
/Library/Developer/CommandLineTools/SDKs/MacOSX15.5.sdk/usr/include/ldap.h:1526:1: note: 'ldap_init' has been explicitly marked deprecated here
1526 | ldap_init LDAP_P(( /* deprecated, use ldap_create or ldap_initialize */
| ^

<too long, so omitting the rest>
```

Should those warnings be fixed?

But “make” won’t generate those warnings.

The other problem I encountered is that, when unicode map files are regenerated, “make” won’t auto rebuild corresponding .o and lib files, but ninja does. That means “Makefile” has something to fix. But given ninja works, should “Makefile” still be fixed?

So, I want to clarify that:

* Is it free for developers to choose make or meson?
* If something works with one but the other, should that be fixed?

Best regards,
--
Chao Li (Evan)
HighGo Software Co., Ltd.
https://www.highgo.com/

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Hayato Kuroda (Fujitsu) 2025-10-09 04:00:24 RE: [PROPOSAL] Termination of Background Workers for ALTER/DROP DATABASE
Previous Message jian he 2025-10-09 03:47:42 Re: sql/json query function JsonBehavior default expression's collation may differ from returning type's collation