[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: build failures (tcgetsid issue)
From: |
Bruno Haible |
Subject: |
Re: build failures (tcgetsid issue) |
Date: |
Mon, 8 Aug 2011 23:56:07 +0200 |
User-agent: |
KMail/1.13.6 (Linux/2.6.37.6-0.5-desktop; KDE/4.6.0; x86_64; ; ) |
Simon Josefsson wrote:
> ./config.log contains the content below. What's interesting is
> that there is no #include <termios.h> which I believe is needed?
Good point. I'm applying the patches below, that fixes it.
> The gltests/config.log file contains:
>
> configure:30414: checking whether tcgetsid is declared
> configure:30414: result: yes
>
> however ./config.log contains the content below.
Really bizarre. I tried the same thing on a glibc/Linux system, and got
S["HAVE_DECL_TCGETSID"]="0"
twice.
> maybe other headers are
> enabled there, and the tcgetsid prototype gets defined indirectly.
The only glibc header that includes <termios.h> is <pty.h>, which is not
included by the test program. Are different gcc options enabled in . and
gltests?
Bruno
2011-08-08 Bruno Haible <address@hidden>
iswblank: Detect declaration correctly.
* m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
AC_CHECK_DECLS invocation.
2011-08-08 Bruno Haible <address@hidden>
tcgetsid: Detect declaration correctly.
* m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
AC_CHECK_DECLS invocation.
Reported by Simon Josefsson.
--- m4/iswblank.m4.orig Mon Aug 8 23:46:40 2011
+++ m4/iswblank.m4 Mon Aug 8 23:43:16 2011
@@ -1,4 +1,4 @@
-# iswblank.m4 serial 3
+# iswblank.m4 serial 4
dnl Copyright (C) 2011 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
@@ -11,7 +11,17 @@
dnl Persuade glibc <wctype.h> to declare iswblank().
AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
AC_CHECK_FUNCS_ONCE([iswblank])
- AC_CHECK_DECLS_ONCE([iswblank])
+ AC_CHECK_DECLS([iswblank], , , [[
+/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
+ <wchar.h>.
+ BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
+ before <wchar.h>. */
+#include <stddef.h>
+#include <stdio.h>
+#include <time.h>
+#include <wchar.h>
+#include <wctype.h>
+]])
if test $ac_cv_func_iswblank = no; then
HAVE_ISWBLANK=0
if test $ac_cv_have_decl_iswblank = yes; then
--- m4/tcgetsid.m4.orig Mon Aug 8 23:46:40 2011
+++ m4/tcgetsid.m4 Mon Aug 8 23:43:19 2011
@@ -1,4 +1,4 @@
-# tcgetsid.m4 serial 3
+# tcgetsid.m4 serial 4
dnl Copyright (C) 2010-2011 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
@@ -11,7 +11,7 @@
dnl Persuade glibc <termios.h> to declare tcgetsid().
AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
- AC_CHECK_DECLS_ONCE([tcgetsid])
+ AC_CHECK_DECLS([tcgetsid], , , [[#include <termios.h>]])
if test $ac_cv_have_decl_tcgetsid = no; then
HAVE_DECL_TCGETSID=0
fi
--
In memoriam Edward Pimental <http://en.wikipedia.org/wiki/Edward_Pimental>