GNOME Bugzilla – Bug 575398
configure warns about term.h under OpenSolaris
Last modified: 2009-03-21 03:23:45 UTC
vte svn r2381 emits a warning during the configure stage: configure: WARNING: term.h: present but cannot be compiled configure: WARNING: term.h: check for missing prerequisite headers? configure: WARNING: term.h: see the Autoconf documentation configure: WARNING: term.h: section "Present But Cannot Be Compiled" configure: WARNING: term.h: proceeding with the preprocessor's result configure: WARNING: term.h: in the future, the compiler will take precedence configure: WARNING: ## ------------------------------------------------------------------ ## configure: WARNING: ## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=vte ## configure: WARNING: ## ------------------------------------------------------------------ ## This appears to be because the conftest.c that is generated for this check doesn't include <curses.h>, which is required by <term.h> on OpenSolaris. Adding #ifdef HAVE_CURSES_H; #include <curses.h>; #endif to the configuration test script allows it compile successfully. See also: http://bugs.python.org/issue831574 http://www.gnu.org/software/hello/manual/autoconf/Present-But-Cannot-Be-Compiled.html Full uname: SunOS manduba 5.11 snv_101 sun4u sparc SUNW,Ultra-Enterprise Full GCC version: Reading specs from /usr/sfw/lib/gcc/sparc-sun-solaris2.11/3.4.3/specs Configured with: /gates/sfwnv/builds/sfwnv-gate/usr/src/cmd/gcc/gcc-3.4.3/configure --prefix=/usr/sfw --with-as=/usr/ccs/bin/as --without-gnu-as --with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++,f77,objc --enable-shared Thread model: posix gcc version 3.4.3 (csl-sol210-3_4-20050802)
Created attachment 130684 [details] [review] patch for configure.in This patch appears to correct the problem on our build, and also sets the library flag to -lcurses instead of -lncurses when trying to use curses rather than ncurses (fixing another build error that has not been filed as a separate bug).
Fixed on trunk.