I suspect we need a configure test for which curses.h to include, instead of using AFS_LINUX20_ENV. By the way, you are not likely to get much help at all until you provide better information. At the very least give us the entire compilation line and all error messages, instead of just the last line.