Hi! Usage of dynamic libncurses is problematic in Firebird, as it not always match the versions available in Linux distributions.
Current FB 4.0-RC1 does not install in Ubuntu 18.04 LTS, which is not the latest, but still supported. I'm definitively not an expert on these libraries, but I tried to link it statically and still have editline working (build and test done in same system - Ubuntu 20.04). Official FB 4.0-RC1 isql depends on: libncurses.so.6 => /lib/x86_64-linux-gnu/libncurses.so.6 (0x00007fcd0995d000) With the attached patch, I avoided that dependency. Adriano
diff --git a/configure.ac b/configure.ac index 0a3de368ac..ef5fc0c980 100644 --- a/configure.ac +++ b/configure.ac @@ -862,9 +862,9 @@ dnl Check for libraries AC_SEARCH_LIBS(dlopen, dl) AC_CHECK_LIB(m, main) if test "$EDITLINE_FLG" = "Y"; then - AC_CHECK_LIB(curses, tgetent, TERMLIB=curses, \ - AC_CHECK_LIB(ncurses, tgetent, TERMLIB=ncurses, \ - AC_CHECK_LIB(termcap, tgetent, TERMLIB=termcap, \ + AC_CHECK_LIB(termcap, tgetent, TERMLIB=:libtermcap.a, \ + AC_CHECK_LIB(curses, tgetent, TERMLIB=curses, \ + AC_CHECK_LIB(ncurses, tgetent, TERMLIB=ncurses, \ AC_CHECK_LIB(tinfo, tgetent, TERMLIB=tinfo, \ AC_MSG_ERROR(termcap support not found))))) AC_SUBST(TERMLIB)
Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel