[OpenAFS-devel] Openafs on kernel 6.14 Fedora 42 patched but fails to compile

Eric Matlis ematlis@nd.edu
Fri, 18 Apr 2025 11:43:15 -0400


--00000000000009bd9106330f61f2
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Dear developers-

patches https://gerrit.openafs.org/#/c/16277/ and
https://gerrit.openafs.org/#/c/16276/1 fail to fix openafs-1.8.13.2 for
compilation under Fedora 42 and kernel 6.14.2-300.  The error I get using
rpmbuild is:

iomgr.c:50:23: error: =E2=80=98bool=E2=80=99 cannot be defined via =E2=80=
=98typedef=E2=80=99
  50 | typedef unsigned char bool;
     |                       ^~~~
iomgr.c:50:23: note: =E2=80=98bool=E2=80=99 is a keyword with =E2=80=98-std=
=3Dc23=E2=80=99 onwards
iomgr.c:50:1: warning: useless type name in empty declaration
  50 | typedef unsigned char bool;

This was after applying the patches manually with "patch -p1 < patchfile"
to the source code extracted from the bunzip2 tar file, recreating the tar
file, executing the procedure to turn tar files into a src rpm, and issuing
"rpmbuild --rebuild xxx.src.rpm".

Let me know if I can provide any other information.

Thank you and please advise,
Eric

**********************************************
Eric Matlis
Associate Research Professor
114 Hessert Laboratory
Aerospace and Mechanical Engineering
University of Notre Dame
Notre Dame, IN
574-631-6054

--00000000000009bd9106330f61f2
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div><span style=3D"font-family:monospace"><span style=3D"=
color:rgb(0,0,0)">Dear developers-</span></span></div><div><span style=3D"f=
ont-family:monospace"><span style=3D"color:rgb(0,0,0)"><br></span></span></=
div><div>patches=C2=A0<a href=3D"https://gerrit.openafs.org/#/c/16277/">htt=
ps://gerrit.openafs.org/#/c/16277/</a> and=C2=A0<a href=3D"https://gerrit.o=
penafs.org/#/c/16276/1">https://gerrit.openafs.org/#/c/16276/1</a> fail to =
fix openafs-1.8.13.2 for compilation under Fedora 42 and kernel 6.14.2-300.=
=C2=A0 The error I get using rpmbuild is:</div><div><br></div><div><span st=
yle=3D"font-family:monospace"><span style=3D"color:rgb(0,0,0)">iomgr.c:50:2=
3: error: =E2=80=98bool=E2=80=99 cannot be defined via =E2=80=98typedef=E2=
=80=99</span><span style=3D"color:rgb(0,0,0)">
</span><br><span style=3D"color:rgb(0,0,0)"> =C2=A0=C2=A050 | typedef unsig=
ned char bool;</span><span style=3D"color:rgb(0,0,0)">
</span><br><span style=3D"color:rgb(0,0,0)"> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
| =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0^~~~</span><spa=
n style=3D"color:rgb(0,0,0)">
</span><br><span style=3D"color:rgb(0,0,0)">iomgr.c:50:23: note: =E2=80=98b=
ool=E2=80=99 is a keyword with =E2=80=98-std=3Dc23=E2=80=99 onwards</span><=
span style=3D"color:rgb(0,0,0)">
</span><br><span style=3D"color:rgb(0,0,0)">iomgr.c:50:1: warning: useless =
type name in empty declaration</span><span style=3D"color:rgb(0,0,0)">
</span><br><span style=3D"color:rgb(0,0,0)"> =C2=A0=C2=A050 | typedef unsig=
ned char bool;</span><br><span style=3D"color:rgb(0,0,0)">
</span><br></span></div><div><font face=3D"monospace">This was after applyi=
ng the patches manually with &quot;patch -p1 &lt; patchfile&quot; to the so=
urce code extracted from the bunzip2 tar file, recreating the tar file, exe=
cuting the procedure to turn tar files into a src rpm, and issuing &quot;rp=
mbuild --rebuild xxx.src.rpm&quot;.</font></div><div><font face=3D"monospac=
e"><br></font></div><div><font face=3D"monospace">Let me know if I can prov=
ide any other information.</font></div><div><font face=3D"monospace"><br></=
font></div><div><font face=3D"monospace">Thank you and please advise,</font=
></div><div><font face=3D"monospace">Eric</font></div><div><span style=3D"f=
ont-family:monospace"><br></span></div><div><div dir=3D"ltr" class=3D"gmail=
_signature" data-smartmail=3D"gmail_signature"><div dir=3D"ltr"><div><div d=
ir=3D"ltr"><div>**********************************************</div><div>Er=
ic Matlis</div><div>Associate Research Professor</div><div>114 Hessert Labo=
ratory</div><div>Aerospace and Mechanical Engineering</div><div>University =
of Notre Dame</div><div>Notre Dame, IN</div><div>574-631-6054</div></div></=
div></div></div></div></div>

--00000000000009bd9106330f61f2--