<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://sourceware.org/bugzilla/bugzilla.dtd">

<bugzilla version="4.0.10"
          urlbase="http://sourceware.org/bugzilla/"
          
          maintainer="overseers@sourceware.org"
>

    <bug>
          <bug_id>3992</bug_id>
          
          <creation_ts>2007-02-07 14:18:00 +0000</creation_ts>
          <short_desc>stdlib/fmtmsg.c: missing stdint.h include</short_desc>
          <delta_ts>2012-02-28 03:35:30 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>glibc</product>
          <component>libc</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Aurelien Jarno">aurelien</reporter>
          <assigned_to name="Carlos O&apos;Donell">carlos</assigned_to>
          <cc>carlos</cc>
    
    <cc>glibc-bugs</cc>
          <cf_gcchost>i686-unknown-gnu0.3</cf_gcchost>
          <cf_gcctarget>i686-unknown-gnu0.3</cf_gcctarget>
          <cf_gccbuild>i686-unknown-gnu0.3</cf_gccbuild>
          

      

      

      

          <long_desc isprivate="0">
            <commentid>14932</commentid>
            <who name="Aurelien Jarno">aurelien</who>
            <bug_when>2007-02-07 14:18:51 +0000</bug_when>
            <thetext>stdlib/fmtmsg.c is using a uint32_t type, but does not include stdint.h. This 
make the glibc to fail to build on Hurd. On other architectures, I guess 
stdint.h is included by one of the architecture specific headers.

The patches below fixes the problem:


Index: stdlib/fmtmsg.c
===================================================================
RCS file: /cvs/glibc/libc/stdlib/fmtmsg.c,v
retrieving revision 1.20
diff -u -d -p -r1.20 stdlib/fmtmsg.c
--- stdlib/fmtmsg.c    15 May 2006 18:41:18 -0000      1.20
+++ stdlib/fmtmsg.c    7 Feb 2007 14:06:37 -0000
@@ -20,6 +20,7 @@
 #include &lt;fmtmsg.h&gt;
 #include &lt;bits/libc-lock.h&gt;
 #include &lt;stdio.h&gt;
+#include &lt;stdint.h&gt;
 #include &lt;stdlib.h&gt;
 #include &lt;string.h&gt;
 #include &lt;sys/syslog.h&gt;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <commentid>14948</commentid>
            <who name="Ulrich Drepper">drepper.fsp</who>
            <bug_when>2007-02-07 17:00:17 +0000</bug_when>
            <thetext>I&apos;ve said multiple times that the correct thing to do is to mimic what the other
archs do and include the same headers.  Otherwise there will always be these
kind of problems.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <commentid>53607</commentid>
            <who name="Carlos O&apos;Donell">carlos</who>
            <bug_when>2012-02-28 03:35:30 +0000</bug_when>
            <thetext>Fixed by commit 433f48bf3ba7120b9a16ed4816d630f250ea4d92.

Thanks.</thetext>
          </long_desc>
      
      

    </bug>

</bugzilla>