bug-autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

term.h present but cannot be compiled


From: Christopher Sean Morrison
Subject: term.h present but cannot be compiled
Date: Fri, 24 Sep 2004 19:12:30 -0400

Running our configure test check for the term.h header on IRIX 6.5 results in:

checking term.h usability... no
checking term.h presence... yes
configure: WARNING: term.h: present but cannot be compiled
configure: WARNING: term.h: check for missing prerequisite headers?
configure: WARNING: term.h: proceeding with the preprocessor's result
configure: WARNING:     ## ------------------------------------ ##
configure: WARNING:     ## Report this to address@hidden ##
configure: WARNING:     ## ------------------------------------ ##

This is a script generated from 2.57 -- haven't checked 2.59, etc. While I can't give you our complete config.log for release reasons, I can share the failing section test for term.h. The warning appears valid, with bool and a slew of other defines assumedly coming from some other header.. the loud configure seems to make the case that configure should have somehow known that? Hope it's of use to someone, regardless.

Cheers!
Sean


BEGIN term.h section from config.log

configure:23100: checking term.h usability
configure:23113: cc -c  -64 -DIRIX  conftest.c >&5
cc-1020 cc: ERROR File = /usr/include/term.h, Line = 1013
  The identifier "bool" is undefined.

        bool   init;         /* TRUE if pair was initialized */
        ^

cc-1020 cc: ERROR File = /usr/include/term.h, Line = 1039
  The identifier "SGTTY" is undefined.

        SGTTY Ottyb,            /* original state of the terminal */
        ^

cc-1020 cc: ERROR File = /usr/include/term.h, Line = 1058
  The identifier "chtype" is undefined.

chtype sgr_mode; /* current phys. graphic rendition */
        ^

cc-1020 cc: ERROR File = /usr/include/term.h, Line = 1059
  The identifier "chtype" is undefined.

chtype sgr_faked; /* attributes faked by vidputs */
        ^

cc-1020 cc: ERROR File = /usr/include/term.h, Line = 1069
  The identifier "bool" is undefined.

bool /* map of which chars start fn keys */
        ^

cc-1020 cc: ERROR File = /usr/include/term.h, Line = 1071
  The identifier "bool" is undefined.

bool _fl_rawmode, /* in cbreak(=1) or raw(=2) mode */
        ^

cc-1020 cc: ERROR File = /usr/include/term.h, Line = 1077
  The identifier "chtype" is undefined.

chtype /* a place to put stuff ungetch'ed */
        ^

cc-1020 cc: ERROR File = /usr/include/term.h, Line = 1085
  The identifier "chtype" is undefined.

chtype *_acsmap; /* map of alternate char set chars */
        ^

cc-1020 cc: ERROR File = /usr/include/term.h, Line = 1088
  The identifier "chtype" is undefined.

        chtype          bit_vector;
        ^

cc-1020 cc: ERROR File = /usr/include/term.h, Line = 1092
  The identifier "chtype" is undefined.

        chtype          check_turn_off;
        ^

cc-1020 cc: ERROR File = /usr/include/term.h, Line = 1093
  The identifier "chtype" is undefined.

        chtype          non_faked_mode;
        ^

cc-1040 cc: ERROR File = /usr/include/term.h, Line = 1165
  An identifier is expected.

                vidputs(chtype, int (*)(int)), vidattr(chtype);
                                ^

cc-1092 cc: ERROR File = /usr/include/term.h, Line = 1165
  Identifier-list parameters can only be used in a function definition.

                vidputs(chtype, int (*)(int)), vidattr(chtype);
                ^

cc-1092 cc: ERROR File = /usr/include/term.h, Line = 1165
  Identifier-list parameters can only be used in a function definition.

                vidputs(chtype, int (*)(int)), vidattr(chtype);
                                               ^

14 errors detected in the compilation of "conftest.c".
configure:23116: $? = 2
configure: failed program was:
| #line 23102 "configure"
| /* confdefs.h.  */
|
| #define PACKAGE_NAME "BRL-CAD"
| #define PACKAGE_TARNAME "brlcad"
| #define PACKAGE_VERSION "7.0"
| #define PACKAGE_STRING "BRL-CAD 7.0"
| #define PACKAGE_BUGREPORT "http://brlcad.org";
| #define PACKAGE "brlcad"
| #define VERSION "7.0"
| #define DM_X 1
| #define USE_MESA_GL 1
| #define DM_OGL 1
| #define _GNU_SOURCE 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define YYTEXT_POINTER 1
| #define EXTERN_STDOUT
| #define HAVE_DLOPEN 1
| #define STDC_HEADERS 1
| #define HAVE_DIRENT_H 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_ARPA_INET_H 1
| #define HAVE_CURSES_H 1
| #define HAVE_ERRNO_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_FLOAT_H 1
| #define HAVE_GETOPT_H 1
| #define HAVE_LANGINFO_H 1
| #define HAVE_LIMITS_H 1
| #define HAVE_LOCALE_H 1
| #define HAVE_MALLOC_H 1
| #define HAVE_MATH_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_NETDB_H 1
| #define HAVE_NETINET_IN_H 1
| #define HAVE_PTHREAD_H 1
| #define HAVE_SGTTY_H 1
| #define HAVE_STDARG_H 1
| #define HAVE_STDDEF_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_SYS_ERRNO_H 1
| #define HAVE_SYS_FILE_H 1
| #define HAVE_SYS_IOCTL_H 1
| #define HAVE_SYS_MMAN_H 1
| #define HAVE_SYS_MOUNT_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_SYS_SELECT_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_STATFS_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_SYS_TIMEB_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_UNISTD_H 1
| #define HAVE_SYSLOG_H 1
| /* end confdefs.h.  */
| #include <stdio.h>
| #if HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #if HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #if STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # if HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #if HAVE_STRING_H
| # if !STDC_HEADERS && HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #if HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #if HAVE_INTTYPES_H
| # include <inttypes.h>
| #else
| # if HAVE_STDINT_H
| #  include <stdint.h>
| # endif
| #endif
| #if HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <term.h>
configure:23132: result: no
configure:23136: checking term.h presence
configure:23147: cc -E  conftest.c
configure:23153: $? = 0
configure:23172: result: yes
configure:23192: WARNING: term.h: present but cannot be compiled
configure:23194: WARNING: term.h: check for missing prerequisite headers? configure:23196: WARNING: term.h: proceeding with the preprocessor's result
configure:23208: checking for term.h
configure:23215: result: yes




reply via email to

[Prev in Thread] Current Thread [Next in Thread]