[OpenAFS-devel] latest 1_5_x doesn't compile on fedora 9 gcc-4.3

Dragos Tatulea dragos.tatulea@gmail.com
Thu, 14 Aug 2008 01:18:34 +0300


------=_Part_112674_24375780.1218665914166
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi,

   I'm using the following config options: --enable-debug
--enable-debug-kernel --enable-warnings --enable-disconnected
--with-krb5-conf=/path and I'm getting the following compiling error:
vol-salvage.c:2692: error: lvalue required as left operand of assignment
Looking into the code we find the line:
 VNDISK_GET_LEN(vnodeLength, vnode);

Which expands into versions:
#define VNDISK_GET_LEN(N, V) FillInt64(N, (V)->reserved6, (V)->length)
(AFS_LARGEFILE_ENV enabled)
and FillInt64 is :
#define FillInt64(t,h,l) (t) = (h); ((afs_uint64)t) <<= 32; (t) |= (l);

Making FillInt64:
#define FillInt64(t,h,l) (t) = (h);t <<= 32; (t) |= (l);
Solves the problem... I know it's not the right way to go, but what can I
make to have it compilable with gcc4.3?

Good bye,
Dragos

------=_Part_112674_24375780.1218665914166
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

<div dir="ltr">Hi,<br><br>&nbsp;&nbsp; I&#39;m using the following config options: --enable-debug --enable-debug-kernel --enable-warnings --enable-disconnected --with-krb5-conf=/path and I&#39;m getting the following compiling error:<br>

vol-salvage.c:2692: error: lvalue required as left operand of assignment<br>Looking into the code we find the line:<br>&nbsp;VNDISK_GET_LEN(vnodeLength, vnode);<br><br>Which expands into versions:<br>#define VNDISK_GET_LEN(N, V) FillInt64(N, (V)-&gt;reserved6, (V)-&gt;length) (AFS_LARGEFILE_ENV enabled)<br>
and FillInt64 is :<br>#define FillInt64(t,h,l) (t) = (h); ((afs_uint64)t) &lt;&lt;= 32; (t) |= (l);<br><br>Making FillInt64:<br>#define FillInt64(t,h,l) (t) = (h);t &lt;&lt;= 32; (t) |= (l);<br>Solves the problem... I know it&#39;s not the right way to go, but what can I make to have it compilable with gcc4.3?<br>
<br>Good bye,<br>Dragos<br></div>

------=_Part_112674_24375780.1218665914166--