<br><font size=2 face="sans-serif">Hi all,</font>
<br>
<br><font size=2 face="sans-serif">I've compiled spread 4.2 with gcc version
egcs-2.91.66 19990314/Linux (egcs-1.1.2 release) on Redhat 6.1, i.e. glibc
2.1.2 (no, this is not a typo ;-). &nbsp;It compiled just fine with a minor
issue concerning the use of va_copy in alarm.c. &nbsp;Googling around a
bit I found the following approach which should be better portable than
just using &quot;va_copy&quot; (according to the glibc reference manual
and the autoconf manual) and certainly compiles on my platform:</font>
<br>
<br><font size=2 face="sans-serif">--- alarm.c.orig &nbsp; &nbsp; &nbsp;
&nbsp;Mon Oct 29 13:40:12 2012</font>
<br><font size=2 face="sans-serif">+++ alarm.c &nbsp; &nbsp; &nbsp; &nbsp;Mon
Oct 29 13:55:38 2012</font>
<br><font size=2 face="sans-serif">@@ -191,7 +191,11 @@</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp;}</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</font>
<br><font size=2 face="sans-serif">&nbsp;</font>
<br><font size=2 face="sans-serif">- &nbsp; &nbsp; &nbsp; &nbsp;va_copy(ap_copy,
ap); &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; /* make a copy of param list in case
of vsnprintf truncation */</font>
<br><font size=2 face="sans-serif">+#ifdef __va_copy &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;/* make a copy of
param list in case of vsnprintf truncation */</font>
<br><font size=2 face="sans-serif">+ &nbsp; &nbsp; &nbsp; &nbsp;__va_copy(ap_copy,
ap);</font>
<br><font size=2 face="sans-serif">+#else</font>
<br><font size=2 face="sans-serif">+ &nbsp; &nbsp; &nbsp; &nbsp;memcpy(&amp;ap_copy,
&amp;ap, sizeof (va_list));</font>
<br><font size=2 face="sans-serif">+#endif</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;msg_len
&nbsp;= vsnprintf(msg_ptr, MAX_ALARM_MESSAGE_BUF - tot_len, message, ap);</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;tot_len
+= msg_len;</font>
<br><font size=2 face="sans-serif">&nbsp;</font>
<br>
<br><font size=2 face="sans-serif">cheers,</font>
<br>
<br><font size=2 face="sans-serif">aa</font>
<br>
<br><font size=2 face="sans-serif">--<br>
</font><font size=2 face="Microsoft Sans Serif"> &nbsp;<br>
 &nbsp;</font><font size=1 face="Microsoft Sans Serif"><br>
Please consider the environment before you print / Merci de penser à l'environnement
avant d'imprimer / Bitte denken Sie an die Umwelt bevor Sie drucken </font><font size=3><br>
</font><font size=1 face="Microsoft Sans Serif"><br>
Bombardier Transportation GmbH <br>
Vorsitzender des Aufsichtsrats / Chairman of Supervisory Board: Prof. Dr.
Wilhelm Bender <br>
Geschäftsführung / Executive Board: Michael Clausecker (Vorsitzender/Chairman),
Dr. Susanne Kortendick, Luc Charlemagne, Gregorius Peters <br>
Sitz der Gesellschaft / Principal Office: Berlin <br>
Registergericht / Registration Court: Amtsgericht Charlottenburg, HRB 64838
<br>
<br>
_______________________________________________________________________________________________________________
<br>
This e-mail communication (and any attachment/s) may contain confidential
or privileged information and is intended only for the individual(s) or
entity named above and to others who have been specifically authorized
to receive it. If you are not the intended recipient, please do not read,
copy, use or disclose the contents of this communication to others. Please
notify the sender that you have received this e-mail in error by reply
e-mail, and delete the e-mail subsequently. Please note that in order to
protect the security of our information systems an AntiSPAM solution is
in use and will browse through incoming emails. <br>
Thank you. <br>
_________________________________________________________________________________________________________________
<br>
<br>
Ce message (ainsi que le(s) fichier(s)), transmis par courriel, peut contenir
des renseignements confidentiels ou protégés et est destiné à l&#8217;usage
exclusif du destinataire ci-dessus. Toute autre personne est, par les présentes,
avisée qu&#8217;il est strictement interdit de le diffuser, le distribuer ou
le reproduire. Si vous l&#8217;avez reçu par inadvertance, veuillez nous en
aviser et détruire ce message. Veuillez prendre note qu'une solution antipollupostage
(AntiSPAM) est utilisée afin d'assurer la sécurité de nos systèmes d'information
et qu'elle furètera les courriels entrants.<br>
Merci. <br>
_________________________________________________________________________________________________________________
<br>
<br>
</font>