After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 575398 - configure warns about term.h under OpenSolaris
configure warns about term.h under OpenSolaris
Status: VERIFIED FIXED
Product: vte
Classification: Core
Component: general
unspecified
Other opensolaris
: Normal normal
: ---
Assigned To: VTE Maintainers
VTE Maintainers
Depends on:
Blocks:
 
 
Reported: 2009-03-15 02:48 UTC by David Adam
Modified: 2009-03-21 03:23 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch for configure.in (680 bytes, patch)
2009-03-15 03:03 UTC, David Adam
none Details | Review

Description David Adam 2009-03-15 02:48:52 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)
Comment 1 David Adam 2009-03-15 03:03:30 UTC
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).
Comment 2 Christian Persch 2009-03-15 14:06:26 UTC
Fixed on trunk.