<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
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>                                           </body>
</html>