When trying to compile gdb 6.3 on a Solaris box with gcc3.3.2 installed, I was instructed to report sys/ptem.h being present but uncompilable (see below).

% gcc --version
gcc (GCC) 3.3.2
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.



% uname -a
SunOS foo.domain.tld 5.9 Generic_112233-06 sun4u sparc SUNW,Ultra-5_10


checking sys/ptem.h usability... no checking sys/ptem.h presence... yes configure: WARNING: sys/ptem.h: present but cannot be compiled configure: WARNING: sys/ptem.h: check for missing prerequisite headers? configure: WARNING: sys/ptem.h: proceeding with the preprocessor's result configure: WARNING: ## ------------------------------------ ## configure: WARNING: ## Report this to [EMAIL PROTECTED] ## configure: WARNING: ## ------------------------------------ ## checking for sys/ptem.h... yes checking sys/pte.h usability... no

From config.log

configure:4095: checking sys/ptem.h usability
configure:4108: gcc -c -g -Wall conftest.c >&5
In file included from configure:4171:
/usr/include/sys/ptem.h:25: error: parse error before "mblk_t"
/usr/include/sys/ptem.h:29: error: parse error before '}' token
configure:4111: $? = 1
configure: failed program was:
| #line 4098 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME "readline"
| #define PACKAGE_TARNAME "readline"
| #define PACKAGE_VERSION "4.3"
| #define PACKAGE_STRING "readline 4.3"
| #define PACKAGE_BUGREPORT "[EMAIL PROTECTED]"
| #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 PROTOTYPES 1
| #define __PROTOTYPES 1
| #define RETSIGTYPE void
| #define HAVE_DIRENT_H 1
| #define HAVE_LSTAT 1
| #define HAVE_MEMMOVE 1
| #define HAVE_PUTENV 1
| #define HAVE_SELECT 1
| #define HAVE_SETLOCALE 1
| #define HAVE_STRCASECMP 1
| #define HAVE_STRPBRK 1
| #define HAVE_TCGETATTR 1
| #define HAVE_VSNPRINTF 1
| #define HAVE_ISASCII 1
| #define HAVE_ISXDIGIT 1
| #define HAVE_STRCOLL 1
| #define HAVE_UNISTD_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STDARG_H 1
| #define HAVE_STRING_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_LIMITS_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 <sys/ptem.h>
configure:4127: result: no
configure:4131: checking sys/ptem.h presence
configure:4142: gcc -E conftest.c
configure:4148: $? = 0
configure:4167: result: yes
configure:4187: WARNING: sys/ptem.h: present but cannot be compiled
configure:4189: WARNING: sys/ptem.h: check for missing prerequisite headers?
configure:4191: WARNING: sys/ptem.h: proceeding with the preprocessor's result
configure:4203: checking for sys/ptem.h





Reply via email to