[OpenAFS] module compilation problem against kernel 3.6.12 in release 1.6.5.2

Wojciech Tadeusz Fedorko wojtek.fedorko@gmail.com
Tue, 14 Jan 2014 19:19:18 -0800


--001a11c2478e38478c04eff9c6ab
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

Hello,

Trying to build the openafs release 1.6.5.2 on a system running a newer
kernel 3.6.12.
Build fails when openafs module is being compiled. I attach the relevant
portion of the log.

Could anyone help me with this?

Please let me know if you need any more information to solve the problem.

Thank you!

make[4]: Entering directory
`/home/myuser/openafs-1.6.5.2/src/libafs/MODLOAD-3.12.6-031206-generic-MP'
Makefile.common:50: warning: overriding commands for target `.c.o'
/home/myuser/openafs-1.6.5.2/src/config/Makefile.config:141: warning:
ignoring old commands for target `.c.o'
env EXTRA_CFLAGS=3D"" /home/myuser/openafs-1.6.5.2/src/libafs/
make_kbuild_makefile.pl MODLOAD-3.12.6-031206-generic-MP libafs.ko
/home/myuser/openafs-1.6.5.2/src/config/Makefile.config Makefile.afs
Makefile.common
env EXTRA_CFLAGS=3D"" make -C /lib/modules/3.12.6-031206-generic/build
M=3D/home/myuser/openafs-1.6.5.2/src/libafs/MODLOAD-3.12.6-031206-generic-M=
P
modules 2>&1 | tee .makelog
make[5]: Entering directory `/usr/src/linux-headers-3.12.6-031206-generic'
  CC [M]  /home/myuser/openafs-1.6.5.2/src/libafs/MODLOAD-3.12.6-031206
-generic-MP/afs_atomlist.o
  CC [M]  /home/myuser/openafs-1.6.5.2/src/libafs/MODLOAD-3.12.6-031206
-generic-MP/afs_error.o
In file included from /home/myuser/openafs-1.6.5.2/src/afs/afs_osi.h:440:0,
                 from /home/myuser/openafs-1.6.5.2/src/rx/rx_clock.h:46,
                 from /home/myuser/openafs-1.6.5.2/src/rx/rx.h:29,
                 from /home/myuser/openafs-1.6.5.2/src/afs/afsincludes.h:30=
,
                 from /home/myuser/openafs-1.6.5.2/src/libafs/MODLOAD-
3.12.6-031206-generic-MP/afs_error.c:34:
/home/myuser/openafs-1.6.5.2/src/afs/LINUX/osi_machdep.h: In function
=91afs_set_cr_uid=92:
/home/myuser/openafs-1.6.5.2/src/afs/LINUX/osi_machdep.h:160:17: error:
incompatible types when assigning to type =91kuid_t=92 from type =91uid_t=
=92
     cred->fsuid =3D uid;
                 ^
/home/myuser/openafs-1.6.5.2/src/afs/LINUX/osi_machdep.h: In function
=91afs_set_cr_gid=92:
/home/myuser/openafs-1.6.5.2/src/afs/LINUX/osi_machdep.h:164:17: error:
incompatible types when assigning to type =91kgid_t=92 from type =91gid_t=
=92
     cred->fsgid =3D gid;
                 ^
/home/myuser/openafs-1.6.5.2/src/afs/LINUX/osi_machdep.h: In function
=91afs_set_cr_ruid=92:
/home/myuser/openafs-1.6.5.2/src/afs/LINUX/osi_machdep.h:168:15: error:
incompatible types when assigning to type =91kuid_t=92 from type =91uid_t=
=92
     cred->uid =3D uid;
               ^
/home/myuser/openafs-1.6.5.2/src/afs/LINUX/osi_machdep.h: In function
=91afs_set_cr_rgid=92:
/home/myuser/openafs-1.6.5.2/src/afs/LINUX/osi_machdep.h:172:15: error:
incompatible types when assigning to type =91kgid_t=92 from type =91gid_t=
=92
     cred->gid =3D gid;
               ^
make[6]: *** [/home/myuser/openafs-1.6.5.2/src/libafs/MODLOAD-3.12.6-031206=
-generic-MP/afs_error.o]
Error 1
make[5]: *** [_module_/home/myuser/openafs-1.6.5.2/src/libafs/MODLOAD-
3.12.6-031206-generic-MP] Error 2
make[5]: Leaving directory `/usr/src/linux-headers-3.12.6-031206-generic'
rm .makelog
cp libafs.ko libafs-3.12.6-031206-generic.mp.ko
cp: cannot stat =91libafs.ko=92: No such file or directory
make[4]: *** [libafs-3.12.6-031206-generic.mp.ko] Error 1
make[4]: Leaving directory `/home/myuser/openafs-1.6.5.2/src/libafs/MODLOAD=
-
3.12.6-031206-generic-MP'
make[3]: *** [linux_compdirs] Error 2
make[3]: Leaving directory `/home/myuser/openafs-1.6.5.2/src/libafs'
make[2]: *** [libafs] Error 2
make[2]: Leaving directory `/home/myuser/openafs-1.6.5.2'
make[1]: *** [build] Error 2
make[1]: Leaving directory `/home/myuser/openafs-1.6.5.2'
make: *** [all] Error 2

--001a11c2478e38478c04eff9c6ab
Content-Type: text/html; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><span style=3D"font-family:arial,sans-serif;font-size:12.5=
71428298950195px">Hello,</span><div style=3D"font-family:arial,sans-serif;f=
ont-size:12.571428298950195px"><br><div>Trying to build the openafs release=
 1.6.5.2 on a system running a newer kernel 3.6.12.</div>
<div>Build fails when openafs module is being compiled. I attach the releva=
nt portion of the log.</div><div><br></div><div>Could anyone help me with t=
his?</div><div><br></div><div>Please let me know if you need any more infor=
mation to solve the problem.</div>
<div><br></div><div>Thank you!</div><div><br></div><div><div>make[4]: Enter=
ing directory `/home/myuser/openafs-1.6.5.2/src/libafs/MODLOAD-<a href=3D"t=
el:3.12.6-031206" value=3D"+13126031206" target=3D"_blank">3.12.6-031206</a=
>-generic-MP&#39;</div>
<div>Makefile.common:50: warning: overriding commands for target `.c.o&#39;=
</div><div>/home/myuser/openafs-1.6.5.2/src/config/Makefile.config:141: war=
ning: ignoring old commands for target `.c.o&#39;</div><div>env EXTRA_CFLAG=
S=3D&quot;&quot; /home/myuser/openafs-1.6.5.2/src/libafs/<a href=3D"http://=
make_kbuild_makefile.pl/" target=3D"_blank">make_kbuild_makefile.pl</a>=A0M=
ODLOAD-<a href=3D"tel:3.12.6-031206" value=3D"+13126031206" target=3D"_blan=
k">3.12.6-031206</a>-generic-MP libafs.ko /home/myuser/openafs-1.6.5.2/src/=
config/Makefile.config Makefile.afs Makefile.common</div>
<div>env EXTRA_CFLAGS=3D&quot;&quot; make -C /lib/modules/<a href=3D"tel:3.=
12.6-031206" value=3D"+13126031206" target=3D"_blank">3.12.6-031206</a>-gen=
eric/build M=3D/home/myuser/openafs-1.6.5.2/src/libafs/MODLOAD-<a href=3D"t=
el:3.12.6-031206" value=3D"+13126031206" target=3D"_blank">3.12.6-031206</a=
>-generic-MP modules 2&gt;&amp;1 | tee .makelog</div>
<div>make[5]: Entering directory `/usr/src/linux-headers-<a href=3D"tel:3.1=
2.6-031206" value=3D"+13126031206" target=3D"_blank">3.12.6-031206</a>-gene=
ric&#39;</div><div>=A0 CC [M] =A0/home/myuser/openafs-1.6.5.2/src/libafs/MO=
DLOAD-<a href=3D"tel:3.12.6-031206" value=3D"+13126031206" target=3D"_blank=
">3.12.6-031206</a>-generic-MP/afs_atomlist.o</div>
<div>=A0 CC [M] =A0/home/myuser/openafs-1.6.5.2/src/libafs/MODLOAD-<a href=
=3D"tel:3.12.6-031206" value=3D"+13126031206" target=3D"_blank">3.12.6-0312=
06</a>-generic-MP/afs_error.o</div><div>In file included from /home/myuser/=
openafs-1.6.5.2/src/afs/afs_osi.h:440:0,</div>
<div>=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0from /home/myuser/openafs-1.6.5.2/s=
rc/rx/rx_clock.h:46,</div><div>=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0from /hom=
e/myuser/openafs-1.6.5.2/src/rx/rx.h:29,</div><div>=A0 =A0 =A0 =A0 =A0 =A0 =
=A0 =A0 =A0from /home/myuser/openafs-1.6.5.2/src/afs/afsincludes.h:30,</div=
>
<div>=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0from /home/myuser/openafs-1.6.5.2/s=
rc/libafs/MODLOAD-<a href=3D"tel:3.12.6-031206" value=3D"+13126031206" targ=
et=3D"_blank">3.12.6-031206</a>-generic-MP/afs_error.c:34:</div><div>/home/=
myuser/openafs-1.6.5.2/src/afs/LINUX/osi_machdep.h: In function =91afs_set_=
cr_uid=92:</div>
<div>/home/myuser/openafs-1.6.5.2/src/afs/LINUX/osi_machdep.h:160:17: error=
: incompatible types when assigning to type =91kuid_t=92 from type =91uid_t=
=92</div><div>=A0 =A0 =A0cred-&gt;fsuid =3D uid;</div><div>=A0 =A0 =A0 =A0 =
=A0 =A0 =A0 =A0 =A0^</div><div>
/home/myuser/openafs-1.6.5.2/src/afs/LINUX/osi_machdep.h: In function =91af=
s_set_cr_gid=92:</div><div>/home/myuser/openafs-1.6.5.2/src/afs/LINUX/osi_m=
achdep.h:164:17: error: incompatible types when assigning to type =91kgid_t=
=92 from type =91gid_t=92</div>
<div>=A0 =A0 =A0cred-&gt;fsgid =3D gid;</div><div>=A0 =A0 =A0 =A0 =A0 =A0 =
=A0 =A0 =A0^</div><div>/home/myuser/openafs-1.6.5.2/src/afs/LINUX/osi_machd=
ep.h: In function =91afs_set_cr_ruid=92:</div><div>/home/myuser/openafs-1.6=
.5.2/src/afs/LINUX/osi_machdep.h:168:15: error: incompatible types when ass=
igning to type =91kuid_t=92 from type =91uid_t=92</div>
<div>=A0 =A0 =A0cred-&gt;uid =3D uid;</div><div>=A0 =A0 =A0 =A0 =A0 =A0 =A0=
 =A0^</div><div>/home/myuser/openafs-1.6.5.2/src/afs/LINUX/osi_machdep.h: I=
n function =91afs_set_cr_rgid=92:</div><div>/home/myuser/openafs-1.6.5.2/sr=
c/afs/LINUX/osi_machdep.h:172:15: error: incompatible types when assigning =
to type =91kgid_t=92 from type =91gid_t=92</div>
<div>=A0 =A0 =A0cred-&gt;gid =3D gid;</div><div>=A0 =A0 =A0 =A0 =A0 =A0 =A0=
 =A0^</div><div>make[6]: *** [/home/myuser/openafs-1.6.5.2/src/libafs/MODLO=
AD-<a href=3D"tel:3.12.6-031206" value=3D"+13126031206" target=3D"_blank">3=
.12.6-031206</a>-generic-MP/afs_error.o] Error 1</div>
<div>make[5]: *** [_module_/home/myuser/openafs-1.6.5.2/src/libafs/MODLOAD-=
<a href=3D"tel:3.12.6-031206" value=3D"+13126031206" target=3D"_blank">3.12=
.6-031206</a>-generic-MP] Error 2</div><div>make[5]: Leaving directory `/us=
r/src/linux-headers-<a href=3D"tel:3.12.6-031206" value=3D"+13126031206" ta=
rget=3D"_blank">3.12.6-031206</a>-generic&#39;</div>
<div>rm .makelog</div><div>cp libafs.ko libafs-<a href=3D"tel:3.12.6-031206=
" value=3D"+13126031206" target=3D"_blank">3.12.6-031206</a>-generic.mp.ko<=
/div><div>cp: cannot stat =91libafs.ko=92: No such file or directory</div><=
div>make[4]: *** [libafs-<a href=3D"tel:3.12.6-031206" value=3D"+1312603120=
6" target=3D"_blank">3.12.6-031206</a>-generic.mp.ko] Error 1</div>
<div>make[4]: Leaving directory `/home/myuser/openafs-1.6.5.2/src/libafs/MO=
DLOAD-<a href=3D"tel:3.12.6-031206" value=3D"+13126031206" target=3D"_blank=
">3.12.6-031206</a>-generic-MP&#39;</div><div>make[3]: *** [linux_compdirs]=
 Error 2</div>
<div>make[3]: Leaving directory `/home/myuser/openafs-1.6.5.2/src/libafs&#3=
9;</div><div>make[2]: *** [libafs] Error 2</div><div>make[2]: Leaving direc=
tory `/home/myuser/openafs-1.6.5.2&#39;</div><div>make[1]: *** [build] Erro=
r 2</div>
<div>make[1]: Leaving directory `/home/myuser/openafs-1.6.5.2&#39;</div><di=
v>make: *** [all] Error 2</div></div><div><br></div></div></div>

--001a11c2478e38478c04eff9c6ab--