Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undocumented dependency on libtermcap #7

Closed
rofl0r opened this issue May 30, 2016 · 1 comment
Closed

undocumented dependency on libtermcap #7

rofl0r opened this issue May 30, 2016 · 1 comment

Comments

@rofl0r
Copy link
Contributor

rofl0r commented May 30, 2016

checking termcap.h usability... no                                              
checking termcap.h presence... no                                               
checking for termcap.h... no                                                    
checking for termio.h... no                                            
checking for termios.h... yes                                          
...
make[2]: Entering directory `/src/build/editline/editline-1.15.1/examples'
libtool: link: gcc -I../src -I../include -fdata-sections -ffunction-sections -Os ...
/bin/ld: cannot find -ltermcap                                                  

and with --disable-termcap:

 libtool: link: gcc -I../src -I../include -fdata-sections -ffunction-sections -Os
../src/.libs/libeditline.a(editline.o): In function `rl_reset_terminal':        
editline.c:(.text.rl_reset_terminal+0x57): undefined reference to `tgetent'     
editline.c:(.text.rl_reset_terminal+0x68): undefined reference to `tgetstr'     
editline.c:(.text.rl_reset_terminal+0x8d): undefined reference to `tgetnum'     
editline.c:(.text.rl_reset_terminal+0x9d): undefined reference to `tgetnum'     
collect2: error: ld returned 1 exit status                                 
@troglobit
Copy link
Owner

Thank you for the report, libeditline should really not depend on Ncurses!

In fact, I run it daily on a system where Ncurses really would not fit! So the above configure check should most definitely be fixed! The code in question is actually guarded inside a big

#ifdef CONFIG_USE_TERMCAP

so I guess it all boils down to my weak autoconf-fu. Terribly sorry about this! :-/

troglobit added a commit that referenced this issue Mar 29, 2017
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
troglobit added a commit that referenced this issue Sep 11, 2018
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants