commit 8671caea20ee6eb43a2b4005a0429cddf9266d4a from: Anna via: Omar Polo date: Thu Aug 19 09:10:23 2021 UTC configure: fix build with separate libtinfo ncurses has "--with-termlib" build option, which forces some symbols from libncurses.so to be moved to libtinfo.so. It caused the following error: ld: ui.o: undefined reference to symbol 'keypad' ld: /lib64/libtinfow.so.6: error adding symbols: DSO missing from command line commit - b3c59b132f6c5f9e12728cdd6e183ddc6f3cfa2d commit + 8671caea20ee6eb43a2b4005a0429cddf9266d4a blob - ea6f0e16aa6543c1cd11b03e7a56657b167c814d blob + 734736d5102fb46b8da50d9ada97a803119cf7aa --- configure.ac +++ configure.ac @@ -52,6 +52,10 @@ AC_SEARCH_LIBS([initscr], [ncursesw ncurses], [], [ AC_MSG_ERROR([requires either ncursesw or ncurses library]) ]) +AC_SEARCH_LIBS([keyname], [ncursesw ncurses tinfow tinfo], [], [ + AC_MSG_ERROR([requires either ncursesw or ncurses library with terminfo support]) +]) + AC_CHECK_LIB(tls, tls_init, [], [ AC_MSG_ERROR([requires libtls]) ])