(In reply to Michael Chang from comment #19) > (In reply to Dr. Werner Fink from comment #11) > > (In reply to Torsten Duwe from comment #10) > > > (In reply to Dr. Werner Fink from comment #7) > > > > (In reply to Torsten Duwe from comment #6) > > > and as the linkter script /usr/lib64/libncurses.so and > > /usr/lib64/libncursese.so to only link libtinfo or lintinfow as needed I do > > not see for what this patch should resolve > > It resolves the error in configure for detecting the availability of ncurses > library. > > configure:6159: result: no > configure:6177: checking for wgetch in -lncurses > configure:6202: gcc -o conftest -m32 -m32 -O0 -g -DNDEBUG -W -Wall > -Wpointer-arith -fno-reorder-functions -fno-stack-protector > -fno-strict-aliasing -minline-all-stringops -fno-asynchronous-unwind-tables > -fno-unwind-tables -static -Wall -Wmissing-prototypes -Wunused -Wshadow > -Wpointer-arith -falign-jumps=1 -falign-loops=1 -falign-functions=1 -Wundef > conftest.c -lncurses >&5 > /usr/lib64/gcc/x86_64-suse-linux/7/../../../../lib/libncurses.a(lib_getch.o): > In function `recur_wgetnstr': > /home/abuild/rpmbuild/BUILD/ncurses-6.1/ncurses/../ncurses/./base/lib_getch. > c:368: undefined reference to `_nc_screen_of' > /home/abuild/rpmbuild/BUILD/ncurses-6.1/ncurses/../ncurses/./base/lib_getch. > c:373: undefined reference to `_nc_globals' > /home/abuild/rpmbuild/BUILD/ncurses-6.1/ncurses/../ncurses/./base/lib_getch. > c:373: undefined reference to `SP' > /home/abuild/rpmbuild/BUILD/ncurses-6.1/ncurses/../ncurses/./base/lib_getch. > c:377: undefined reference to `_nc_mutex_lock' > /home/abuild/rpmbuild/BUILD/ncurses-6.1/ncurses/../ncurses/./base/lib_getch. > c:382: undefined reference to `_nc_mutex_unlock' > /usr/lib64/gcc/x86_64-suse-linux/7/../../../../lib/libncurses.a(lib_getch.o): > In function `recur_wrefresh': > /home/abuild/rpmbuild/BUILD/ncurses-6.1/ncurses/../ncurses/./base/lib_getch. > c:346: undefined reference to `_nc_screen_of' > /home/abuild/rpmbuild/BUILD/ncurses-6.1/ncurses/../ncurses/./base/lib_getch. > c:347: undefined reference to `_nc_globals' > /home/abuild/rpmbuild/BUILD/ncurses-6.1/ncurses/../ncurses/./base/lib_getch. > c:347: undefined reference to `SP' > /home/abuild/rpmbuild/BUILD/ncurses-6.1/ncurses/../ncurses/./base/lib_getch. > c:351: undefined reference to `_nc_mutex_lock' > /home/abuild/rpmbuild/BUILD/ncurses-6.1/ncurses/../ncurses/./base/lib_getch. > c:356: undefined reference to `_nc_mutex_unlock' > /usr/lib64/gcc/x86_64-suse-linux/7/../../../../lib/libncurses.a(lib_getch.o): > In function `_nc_ptr_Escdelay': > /home/abuild/rpmbuild/BUILD/ncurses-6.1/ncurses/../ncurses/./base/lib_getch. > c:60: undefined reference to `_nc_prescreen' > /usr/lib64/gcc/x86_64-suse-linux/7/../../../../lib/libncurses.a(lib_getch.o): > In function `set_escdelay': > /home/abuild/rpmbuild/BUILD/ncurses-6.1/ncurses/../ncurses/./base/lib_getch. > c:91: undefined reference to `SP' Read /usr/lib64/libncurses.so /* GNU ld script */ INPUT(/lib64/libncurses.so.6 AS_NEEDED(-ltinfo -ldl)) ... and note that with static linking the library libtinfo.a is missed also the command pkg-config ncurses --libs shows -lncurses -ltinfo ...