Bug 31864 - system header file attempts to redefine a type that is built in to gcc 3.0.2
Summary: system header file attempts to redefine a type that is built in to gcc 3.0.2
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: Gerald Pfeifer
Depends on:
Reported: 2001-11-09 02:30 UTC by quik
Modified: 2003-01-31 23:32 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description quik 2001-11-09 02:30:01 UTC
While trying to compile a C++ file, I recieved the following error, indicating that perhaps some system header files need to be modified so they will tolerate the new gcc:

/usr/include/runetype.h:56: redeclaration of C++ built-in type `wchar_t'


Well, a woekaround would be to use gcc 2.9.5 but ideally, we would find a way od not declaring this type if it is already defined.
Perhaps an IFDEF...
How-To-Repeat: I tried to build the QT23 port & this fails very quickly.
Comment 1 adsouza 2001-11-09 02:37:11 UTC
I found the same problem in these 2 additional files:
After commenting out the line with the typedef, everything seems to be
compiling OK.
"Think Random"
Comment 2 Gerald Pfeifer freebsd_committer 2003-01-31 01:33:28 UTC
State Changed
From-To: open->feedback

As far as I know (I originally experienced the same bug) this has been 
fixed by now.  Can you confirm this? 

Comment 3 Gerald Pfeifer freebsd_committer 2003-01-31 01:33:28 UTC
Responsible Changed
From-To: freebsd-bugs->gerald

I'll try to handle this.
Comment 4 adsouza 2003-01-31 02:33:04 UTC
Unfortunately, I no longer run FreeBSD so I am unable to verify this for you. 
However, I am fairly certain that this bug would have been fixed by now. 
I know I am able to build QT2.3 on Linux at any rate, using gcc-3.2.1
Comment 5 Gerald Pfeifer freebsd_committer 2003-01-31 23:28:18 UTC
State Changed
From-To: feedback->closed

Resolved by fixes to our header files, such as stdlib 1.37 and stddef 1.7, 
which were backported to -STABLE.