with-readline icon indicating copy to clipboard operation
with-readline copied to clipboard

Cannot Compile on macOS 10.12.04

Open sean-smith opened this issue 7 years ago • 2 comments

I'm getting a couple of errors. Any advice on how to fix this is appreciated!

with-readline.c:59:11: error: use of undeclared identifier 'rl_gnu_readline_p'
          rl_gnu_readline_p ? "GNU" : "non-GNU",
with-readline.c:379:5: error: use of undeclared identifier 'rl_catch_signals'
    rl_catch_signals = 0;
    ^
with-readline.c:380:5: error: use of undeclared identifier 'rl_catch_sigwinch'
    rl_catch_sigwinch = 0;
with-readline.c:465:22: error: use of undeclared identifier 'rl_mark'
          rl_point = rl_mark = rl_end = 0;

sean-smith avatar Apr 28 '17 02:04 sean-smith

L34 of the README

ewxrjk avatar Apr 28 '17 07:04 ewxrjk

If you still encounter this issue even after force link readline, I change the flag to be:

./configure LDFLAGS="-L/usr/local/opt/readline/lib" CPPFLAGS="-I/usr/local/opt/readline/include"

These flags are suggested after I reinstalled readline with brew. After the flags set, make and make install are smooth and I'm happy using sftp now.

Thanks for this great work!

slimcatarch avatar Sep 18 '18 01:09 slimcatarch