I'm maintaining afflib in the opensuse security repo.
The various distros are in the process of breaking lib ncurses into 2
pieces as I understand it.
Here's the opensuse announcement, but they say that Fedora and others
have already done it.
http://lists.opensuse.org/opensuse-packaging/2011-11/msg00055.html
Anyway,the below patch fixes it for openSUSE, both old releases
continue to build, and the "factory" version builds again.
################
diff -Naur afflib-3.6.12/configure.ac afflib-3.6.12.patched/configure.ac
--- afflib-3.6.12/configure.ac 2011-05-23 17:59:38.000000000 -0400
+++ afflib-3.6.12.patched/configure.ac 2011-11-22 10:49:53.000000000 -0500
@@ -118,6 +118,7 @@
AC_CHECK_LIB([ncurses],[initscr],, AC_MSG_RESULT([ncurses not installed]))
AC_CHECK_LIB([z],[uncompress],, AC_MSG_ERROR([zlib not installed;
cannot continue. Try adding zlib-dev or zlib1g-dev.]))
AC_CHECK_LIB([rt],[aio_error64])
+AC_SEARCH_LIBS(tgetent, termlib termcap tinfo curses ncurses)
AC_CHECK_FUNCS(putp tputs tgoto tgetstr tgetnum gotorc beep endwin
setupterm printw)
################################################################
Without the patch, tgetent is not defined and the build fails with the
new ncurses structure.
Obviously, the patch just says to search through a list of libraries
until it finds the tgetent and add that library and headers to the
compile/link list. The above line was recommended as the generic fix
for opensuse packages needing to use tgetent, so I assume it should
work with all distros.
Thanks
Greg
The opensuse ncurses package got some extra magic and no longer needs
the below patch.
I don't think it hurts anything, but feel free to drop it on the floor
if no one else is reporting problems.
Greg
--
Greg Freemyer
Head of EDD Tape Extraction and Processing team
Litigation Triage Solutions Specialist
http://www.linkedin.com/in/gregfreemyer
CNN/TruTV Aired Forensic Imaging Demo -
http://insession.blogs.cnn.com/2010/03/23/how-computer-evidence-gets-retrieved/
The Norcross Group
The Intersection of Evidence & Technology
http://www.norcrossgroup.com