<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
    <title></title>
  </head>
  <body text="#000000" bgcolor="#ffffff">
    On 2010-11-26 13:39, Pontus Carlsson wrote:
    <blockquote cite="mid:BLU156-w31DD03DF128BBFF37ECC4FD8210@phx.gbl"
      type="cite">
      <style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
      People might encounter errors trying to compile latest revision of
      EGLIBC with the following error;<br>
      <br>
      stat.c:50:1: error: redefinition of '__stat'<br>
      ../include/sys/stat.h:22:23: note: previous definition of '__stat'
      was here<br>
      <br>
      I found the following patch to work at least through the
      compilation,  I'm not yet finished with the system so I can't
      really leave any review on whether or not this fix breaks anything
      else.<br>
      Lord knows I'm no C/C++ developer, although I do know logic
      overall and considering the comment above this function definition
      (io/stat.c) I sort of think that this approach isn't correct.<br>
      <br>
      I'd bee glad if someone could confirm and perhaps provide a better
      approach on this issue.<br>
      <br>
      Patch:<br>
      <br>
      --- eglibc-2.12-12130.original/io/stat.c        2010-11-25
      23:05:31.000000000 +0100<br>
      +++ eglibc-2.12-12130/io/stat.c 2010-11-26 12:21:43.016668816
      +0100<br>
      @@ -44,6 +44,7 @@<br>
          functions in the shared library can adapt without needing to
      recompile<br>
          all callers.  */<br>
      <br>
      +#ifndef stat<br>
       #undef stat<br>
       int<br>
       attribute_hidden<br>
      @@ -53,3 +54,4 @@<br>
       }<br>
      <br>
       weak_hidden_alias (__stat, stat)<br>
      +#endif<br>
      <br>
      <br>
      Also, the versions I'm running (for the toolchain) is the
      following:<br>
      # Linux-Headers 2.6.36.1<br>
      # File 5.04<br>
      # Ncurses 5.7 (Patched up to 20101120)<br>
      # GMP 5.0.1<br>
      # MPFR 3.0.0<br>
      # MPC 0.8.2<br>
      # PPL 0.11<br>
      # CLooG-PPL 0.15.10<br>
      # Binutils 2.20.1<br>
      # GCC 4.5.1<br>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Clfs-support mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Clfs-support@lists.cross-lfs.org">Clfs-support@lists.cross-lfs.org</a>
<a class="moz-txt-link-freetext" href="http://lists.cross-lfs.org/listinfo.cgi/clfs-support-cross-lfs.org">http://lists.cross-lfs.org/listinfo.cgi/clfs-support-cross-lfs.org</a>
</pre>
    </blockquote>
    Everyone should ignore this patch as it completely disables stat,
    which is for example used by findutils.<br>
    I'm sorry about this missunderstanding and I promise I'll
    doublecheck my fixes in the future.<br>
    <br>
    Apologies<br>
  </body>
</html>