[Top][All Lists]

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

Re: SEGV running tests on IRIX 6.5.19m

From: Albert Chin
Subject: Re: SEGV running tests on IRIX 6.5.19m
Date: Sun, 30 May 2004 04:40:10 -0500
User-agent: Mutt/1.5.6i

On Sat, May 29, 2004 at 06:02:24PM -0700, Paul Eggert wrote:
> Albert Chin <address@hidden> writes:
> > ...
> > cxx: Error: input.h, line 132: namespace "std" has no member "cerr"
> >       cdebug_ (std::cerr),
> Sorry, I don't know C++ namespaces that well, but I'll guess that this
> is because the Tru64 C++ compiler doesn't conform to the latest C++
> standard.  The easiest fix for me is to check that "std:cerr" works,
> and to reject the C++ compiler otherwise.  I hope the patch below
> accomplishes that.

Yes. However, you need the attached patch as well. I cannot pass "-std
strict_ansi" through in CXXFLAGS because there is an assumption the C
and C++ compilers accept the same arguments. This patch fixes that.
I've left WERROR_CFLAGS in because I'll hope that fails for any
non-GNU C++ compiler.

With this patch, all tests pass on Tru64 UNIX with
CXXFLAGS="-std strict_ansi".

albert chin (address@hidden)

-- snip snip
2004-05-30  Albert Chin-A-Young  <address@hidden>

        * configure.ac, tests/atlocal.in: Don't assume the C++
        compiler takes the same arguments as the C compiler.

--- configure.ac.orig   2004-05-30 04:34:57.000000000 -0500
+++ configure.ac        2004-05-30 04:29:23.000000000 -0500
@@ -117,6 +117,8 @@
 O0CFLAGS=`echo $CFLAGS | sed 's/-O[0-9] *//'`
+O0CXXFLAGS=`echo $CXXFLAGS | sed 's/-O[0-9] *//'`
--- tests/atlocal.in.orig       2004-05-30 04:36:07.000000000 -0500
+++ tests/atlocal.in    2004-05-30 04:30:40.000000000 -0500
@@ -21,7 +21,7 @@
 # We want no optimization with C++, too.
 # Are special link options needed?

reply via email to

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