This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Compiling 4.3.3 on Tru64 V5.1b
- From: Didier Godefroy <dg at ulysium dot net>
- To: Kai Ruottu <kai dot ruottu at wippies dot com>
- Cc: "gcc-help at gcc dot gnu dot org" <gcc-help at gcc dot gnu dot org>
- Date: Tue, 21 Apr 2009 18:05:15 +0200
- Subject: Re: Compiling 4.3.3 on Tru64 V5.1b
>>>> In file included from
>>>> /srv/build/obj/alphaev56-dec-osf5.1b/libstdc++-v3/include/tr1/cctype:47,
>>>> from
>>>> /srv/build/src/libstdc++-v3/include/precompiled/stdtr1c++.h:37:
>>>>
/srv/build/obj/alphaev56-dec-osf5.1b/libstdc++-v3/include/tr1_impl/cctype:4>>>>
3
>>>> : error: '::isblank' has not been declared
>>> This sounds like there would be no declaration/prototype for the
>>> 'isblank' in the OSF5.1b standard header 'ctype.h'... Is there?
>>
>> That's right.
>>
>> Should I send the header file?
>
> You should first look the line 43 in :
>
> /srv/build/obj/alphaev56-dec-osf5.1b/libstdc++-v3/include/tr1_impl/cctype
cctype there has this:
#if _GLIBCXX_USE_C99_CTYPE_TR1
#undef isblank
namespace std
{
_GLIBCXX_BEGIN_NAMESPACE_TR1
using ::isblank;
_GLIBCXX_END_NAMESPACE_TR1
}
#endif
And the line 43 is of course the one with isblank
> because the problem is there... My thought (by the sources) is that
> somehow the '_GLIBCXX_USE_C99_CTYPE_TR1' (in
> 'libstdc++-v3/include/tr1/cctype'), is defined by the configure... What
> it means and why could be investigated from the possible 'config.h' in
> libstdc++-v3 build directory....
Ok, it is definitely defining it:
/* Define if C99 functions in <ctype.h> should be imported in <tr1/cctype>
in
namespace std::tr1. */
#define _GLIBCXX_USE_C99_CTYPE_TR1 1
And in config.log:
configure:39006: checking for ISO C99 support to TR1 in <ctype.h>
configure:39031: /srv/build/obj/./gcc/xgcc -shared-libgcc
-B/srv/build/obj/./gcc -nostdinc++
-L/srv/build/obj/alphaev56-dec-osf5.1b/libstdc++-v3/src -L/sr$
configure:39037: $? = 0
configure:39041: test -z
|| test ! -s conftest.err
configure:39044: $? = 0
configure:39047: test -s conftest.o
configure:39050: $? = 0
configure:39063: result: yes
And so GLIBCXX_USE_C99_CTYPE_TR1 is defined after that.
So something isn't working right in this test and it returns a wrong result.
--
Didier Godefroy
mailto:dg@ulysium.net
Support anti-Spam legislation.
Join the fight http://www.cauce.org/