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

Cheyenne Wills cwills@sinenomine.net
Mon, 21 Apr 2025 09:40:17 -0600


The actual fix is a little more involved.  Setting CC=3D"gcc -std=3Dc99"
isn't sufficient to fix the problem as rpmbuild will rely on the
openafs spec file. =20

The solution will be setting the CFLAG within the autoconf
configuration so configure will test for features properly.

I'm working on a patch and will be pushing it to gerrit soon.

--=20
Cheyenne Wills
cwills@sinenomine.net



On Sat, 19 Apr 2025 08:58:45 -0400
Eric Matlis <ematlis@nd.edu> wrote:
> I have repeated from scratch the process of downloading and patching
> the sources then re-tarring and rpmbuilding to make sure I didn't
> miss anything with the same result.  See attached the config.log file
> you requested. **********************************************
> Eric Matlis
> Associate Research Professor
> 114 Hessert Laboratory
> Aerospace and Mechanical Engineering
> University of Notre Dame
> Notre Dame, IN
> 574-631-6054
>=20
>=20
> On Sat, Apr 19, 2025 at 1:42=E2=80=AFAM Benjamin Kaduk <kaduk@mit.edu> wr=
ote:
>=20
> > On Fri, Apr 18, 2025 at 09:06:37PM -0400, Eric Matlis wrote:
> > > Thank you for the quick response.  Using export CC=3D"gcc -std=3Dc99"
> > > before rpmbuild --rebuild resolved this issue, however, not I get
> > > the following errors:
> > >
> > > osi_vnodeops.c: In function =E2=80=98afs_linux_dentry_revalidate=E2=
=80=99:
> > > osi_vnodeops.c:1636:10: error: =E2=80=98nd=E2=80=99 undeclared (first=
 use in this
> > > function); did you mean =E2=80=98fd=E2=80=99?
> > > 1636 |     if ((nd->flags & LOOKUP_RCU) !=3D 0) {
> > >      |          ^~
> > >      |          fd
> >
> > That looks to be in the vicinity of the patches that should be
> > adding support for 6.14 kernels -- can you post your config.log
> > somewhere so we can tell if configure is finding the functions we
> > expect?
> >
> > -Ben
> >
> >