Closed chenrui333 closed 2 months ago
Interesting. Debian patches readline.h to include stdio.h (seems like a bug that is missing since it refers to FILE) - https://sources.debian.org/patches/readline/8.2-5/rl-header.diff/
I guess homebrew is building it's own version without this patch. We can work around it by including stdio.h in jim-readline.c but it still seems like a readline bug to me.
Also, while you are there. It is no longer necessary to specify --full, --utf8, --math as these are the default. And it is probably not correct to include --maintainer.
Also, while you are there. It is no longer necessary to specify --full, --utf8, --math as these are the default. And it is probably not correct to include --maintainer.
yeah, I can remove the obsolete options, for --maintainer
I dont why we have it in the first place :)
feel free to drop a PR 🙏
👋 trying to build the latest release, but run into some build issue. The error log is as below:
error build log
``` In file included from /home/linuxbrew/.linuxbrew/include/readline/readline.h:36, from jim-readline.c:37: /home/linuxbrew/.linuxbrew/include/readline/rltypedefs.h:71:29: error: unknown type name ‘FILE’ 71 | typedef int rl_getc_func_t (FILE *); | ^~~~ /home/linuxbrew/.linuxbrew/include/readline/rltypedefs.h:1:1: note: ‘FILE’ is defined in header ‘full build log, https://github.com/Homebrew/homebrew-core/actions/runs/10600259415/job/29377601524?pr=182751 relates to Homebrew/homebrew-core#182751