hishamhm / htop

htop is an interactive text-mode process viewer for Unix systems. It aims to be a better 'top'.
GNU General Public License v2.0
5.85k stars 582 forks source link

Despite `--disable-unicode` build still looks for `ncursesw/ncurses.h` #606

Open paulmenzel opened 7 years ago

paulmenzel commented 7 years ago

Despite passing --disable-unicode to the configure script, it still looks for ncursesw/ncurses.h.

$ /dev/shm/bee-root/htop/htop-2.0.2-0/source/configure --prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/libexec --sysconfdir=/etc --sharedstatedir=/var --localstatedir=/var --libdir=/usr/lib --includedir=/usr/include --datarootdir=/usr/share --datadir=/usr/share --infodir=/usr/share/info --localedir=/usr/share/locale --mandir=/usr/share/man --docdir=/usr/share/doc/htop --exec-prefix=/usr --disable-unicode
[…]
$ make -j
[…]
In file included from /dev/shm/bee-root/htop/htop-2.0.2-0/source/Object.h:12:0,
                 from /dev/shm/bee-root/htop/htop-2.0.2-0/source/CheckItem.h:12,
                 from /dev/shm/bee-root/htop/htop-2.0.2-0/source/CheckItem.c:8:
/dev/shm/bee-root/htop/htop-2.0.2-0/source/RichString.h:19:29: fatal error: ncursesw/curses.h: No such file or directory
compilation terminated.
[…]

It should abort in that case.

cemalley commented 7 years ago

Also having this issue trying to install 2.02 from source or with linuxbrew. I can't install ncurses-devel because I don't have root privileges. RHEL 6.9.

K56Flex commented 7 years ago

I found that there's a config.h sitting in the htop-2.0.2 folder in which the "#define HAVE_NCURSESW_CURSES_H 1" is found. I use off source directory to do the configure, so the compiling process may pick this config.h instead of the newly generated one(which is in another directory).

K56Flex commented 7 years ago

Solution: rename that config.h to config.h.old and then it compiles.