Bug 60326

Summary: Invalid directive line 37 of /usr/include/inttypes.h
Product: [Retired] Red Hat Linux Reporter: barnett2
Component: glibcAssignee: Jakub Jelinek <jakub>
Status: CLOSED DUPLICATE QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.2CC: fweimer
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-02-25 16:17:50 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description barnett2 2002-02-25 16:17:46 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.76 [en] (Windows NT 5.0; U)

Description of problem:
Line #37 of /usr/include/inttypes.h header file reads:
#  defined __need_wchar_t

#defined is not a valid directive.

This should read:
#  define __need_wchar_t

I've submitted this to glibc as well, and it is identified as "libc/3004".

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. I don't know
2.
3.
	

Actual Results:  We're using the Intel Compiler, but that seems irrelevant as the line "#  defined" also won't work with the gcc compiler, either.

Additional info:

This error is causing our code not to build.  I don't know why our code is in this section, but that is irrelevant.  As far as how to reproduce the issue, 
I 
don't know, sorry.  I'm about 10 layers removed from the author of the code......

Comment 1 Jakub Jelinek 2002-02-25 16:29:11 UTC
This actually worked with gcc, since it the code in question is #if'ed out
for gcc. Anyway, has been fixed for quite some time in errata.

*** This bug has been marked as a duplicate of 57268 ***

Comment 2 barnett2 2002-02-25 17:48:40 UTC
Please advise which errata fixes this.

We have glibc-devel-2.2.4-19.3 installed [which is the last one available from updates.redhat.com], and the issue remains.

Comment 3 Jakub Jelinek 2002-02-26 10:46:14 UTC
glibc-devel-2.2.4-19.3.
/usr/include/inttypes.h in that package has:
/* Get a definition for wchar_t.  But we must not define wchar_t itself.  */
#ifndef ____gwchar_t_defined
# ifdef __cplusplus
#  define __gwchar_t wchar_t
# elif defined __WCHAR_TYPE__
typedef __WCHAR_TYPE__ __gwchar_t;
# else
#  define __need_wchar_t
#  include <stddef.h>
typedef wchar_t __gwchar_t;
# endif
# define ____gwchar_t_defined   1
#endif

You must be using a different package if you don't see this in it.