Ticket #45161

macOS: Build fails with readline not present

Open Date: 2022-07-19 22:50 Last Update: 2022-09-06 20:30

Reporter:
Owner:
Type:
Status:
Closed
Component:
MileStone:
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
Fixed
File:
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 History (3/7 Histories)

2022-07-19 22:50 Updated by: cazfi
  • New Ticket "macOS: Build fails with readline not present" created
2022-07-20 01:09 Updated by: cazfi
Comment

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 Updated by: cazfi
Comment

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

2022-07-20 16:49 Updated by: cazfi
2022-08-28 22:34 Updated by: cazfi
  • Owner Update from (None) to cazfi
  • Resolution Update from None to Accepted
2022-09-06 20:30 Updated by: cazfi
  • Status Update from Open to Closed
  • Resolution Update from Accepted to Fixed

Edit

Please login to add comment to this ticket » Login