Ticket #45161

macOS: Build fails with readline not present

Eröffnet am: 2022-07-19 22:50 Letztes Update: 2022-09-06 20:30

Auswertung:
Verantwortlicher:
Typ:
Status:
Geschlossen
Komponente:
Meilenstein:
Priorität:
5 - Mittel
Schweregrad:
5 - Mittel
Lösung:
Gefixt
Datei:
1

Details

On a homebrew/macOS meson build (but might be relevant to autotools, in principle) where I think I don't have readline installed (unless it gets automatically installed as dependency of something else)

../server/stdinhand.c:7546:9: error: use of undeclared identifier 'rl_completion_suppress_append'
rl_completion_suppress_append = (setting_type(pset) == SST_BITWISE);

Homebrew readline documentation tells:

---

This formula is keg-only. Mac OS X provides similar software, and installing this software in parallel can cause all kinds of trouble.

OS X provides the BSD libedit library, which shadows libreadline. In order to prevent conflicts when programs look for libreadline we are defaulting this GNU Readline installation to keg-only.

- --

So maybe I've got that libedit detected as a readline so the relevant functionality gets enabled. Yet the build fails against libedit.

Ticket-Verlauf (3/7 Historien)

2022-07-19 22:50 Aktualisiert von: cazfi
  • New Ticket "macOS: Build fails with readline not present" created
2022-07-20 01:09 Aktualisiert von: cazfi
Kommentar

I think autotools build is safe as it does the readline availability test with the very rl_completion_suppress_append symbol that is causing the problem here -> it won't consider libedit as readline.

There might be space for improvement in the autotools side in the documentation (some people may miss readline support as getting it enabled with homebrew can be a bit more involved than running ./configure with default parameters) and in our own CI build (that might lack readline support at the moment)

2022-07-20 02:27 Aktualisiert von: cazfi
Kommentar

Autotools tickets: documentation -> #45164 , CI -> #45163

2022-07-20 16:49 Aktualisiert von: cazfi
2022-08-28 22:34 Aktualisiert von: cazfi
  • Verantwortlicher Update from (Keine) to cazfi
  • Lösung Update from Keine to Accepted
2022-09-06 20:30 Aktualisiert von: cazfi
  • Status Update from Offen to Geschlossen
  • Lösung Update from Accepted to Gefixt

Bearbeiten

Please login to add comment to this ticket » Anmelden