-
-
Notifications
You must be signed in to change notification settings - Fork 442
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
configure fails on curses checks missing stdscr #1548
Comments
For me the following patch worked: diff --git a/configure.ac b/configure.ac
index 40a83063..54f6e0e2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -458,7 +458,7 @@ htop_check_curses_capability () {
AC_LINK_IFELSE([AC_LANG_PROGRAM([[
/* extern WINDOW* stdscr; */
/* int keypad(WINDOW* win, bool enable); */
-void* stdscr;
+extern void* stdscr;
int keypad(void* win, int enable);
]], [[
keypad(stdscr, 0); |
Please provide the full configure.log and the necessary information about your system. Declaring |
The system is an Opensuse Leap Version 15.5 on an amd_64 processor. The config.log.gz file is attached. |
From the attached
The libraries What would happen if you try to find the |
What's the output for
and
Adapt the paths as necessary for where the dynamic libraries are found on your system … |
The command therein I find |
What does this command return?
Especially the symlinks are of interest. What does the compiler tell about its libdir?
Can you try to reproduce the failed conftest standalone and include an additional |
My expectation is From the @seidler Can your htop build and run properly if you skip that |
@BenBE This case is interesting as htop's But did anyone ever succeed building and running htop with |
If I patch the configure.ac as described, htop can be build and it works fine (for me) as does usually. |
@BenBE :
For the conftest standalone check I have put the generated code into conftest.c and called the compiler by conftest.sh. |
The configure script on the main branch fails while it checks for curses libraries.
It creates a
conftest.c
program which refers to a cursesstdscr
variable withextern void* stdscr;
I suppose the proper way of using
stdscr
would be to use theinitscr
function. For a configuration test declaring the variable should be fair enough by removing theextern
keyword:void* stdscr;
This shall be done in
configure.ac
I am refering to commit 9c316cc
The text was updated successfully, but these errors were encountered: