任务单 #45161

macOS: Build fails with readline not present

开放日期: 2022-07-19 22:50 最后更新: 2022-09-06 20:30

报告人:
属主:
类型:
状态:
关闭
组件:
里程碑:
优先:
5 - Medium
严重性:
5 - Medium
处理结果:
Fixed
文件:
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.

任务单历史 (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
评论

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
评论

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

2022-07-20 16:49 Updated by: cazfi
2022-08-28 22:34 Updated by: cazfi
  • 属主 Update from (无) to cazfi
  • 处理结果 Update from to Accepted
2022-09-06 20:30 Updated by: cazfi
  • 状态 Update from 开启 to 关闭
  • 处理结果 Update from Accepted to Fixed

编辑

Please login to add comment to this ticket » 登录名