[OpenAFS] kernel 5.0.3 openafs issues in fedora linux

Cheyenne Wills cwills@sinenomine.net
Mon, 25 Mar 2019 17:56:21 +0000


--_000_a1c91ca3000d462485d2ef52310f7250sinenominenet_
Content-Type: text/plain; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

There were three patches needed to get openafs to build on a Linux 5.0 kern=
el.  They were merged into the master openafs-stable-1_8_x branch sometime =
mid January and are included in 1.8.3-pre1

25829aaef319728e30fc45895e8945438e4dc719 Linux_5.0: Use super_block flags i=
nstead of Mount flags when filling sb

e7d8dc01cc1f0592eaecea5b87990097e9e59b88 Linux_5.0: replace do_gettimeofday=
 with ktime_get_real_ts64

804fefa6b46ed75921a1560a9e6b37842eabc94a Linux_5.0: replaced current_kernel=
_time with ktime_get_coarse_real_ts64

________________________________
From: openafs-info-admin@openafs.org <openafs-info-admin@openafs.org> on be=
half of Gary Gatling <gsgatlin@ncsu.edu>
Sent: Monday, March 25, 2019 11:21:11 AM
To: openafs-info
Subject: [OpenAFS] kernel 5.0.3 openafs issues in fedora linux

Hello,

I'm having trouble getting openafs to work in fedora 29 with kernel 5.0.3-2=
00.fc29.x86_64

This is how it fails on kernel module build. Does anyone know if there is a=
 patch to get around this error?

  CC [M]  /var/lib/dkms/openafs/1.8.2/build/src/libafs/MODLOAD-5.0.3-200.fc=
29.x86_64-MP/afs_callback.o
In file included from /var/lib/dkms/openafs/1.8.2/build/src/afs/afs_osi.h:4=
40,
                 from /var/lib/dkms/openafs/1.8.2/build/src/rx/rx_clock.h:4=
6,
                 from /var/lib/dkms/openafs/1.8.2/build/src/rx/rx.h:57,
                 from /var/lib/dkms/openafs/1.8.2/build/src/afs/afsincludes=
.h:30,
                 from /var/lib/dkms/openafs/1.8.2/build/src/libafs/MODLOAD-=
5.0.3-200.fc29.x86_64-MP/afs_callback.c:21:
/var/lib/dkms/openafs/1.8.2/build/src/libafs/MODLOAD-5.0.3-200.fc29.x86_64-=
MP/afs_callback.c: In function =91SRXAFSCB_GetCE=92:
/var/lib/dkms/openafs/1.8.2/build/src/afs/LINUX/osi_machdep.h:101:8: error:=
 implicit declaration of function =91do_gettimeofday=92; did you mean =91do=
_settimeofday64=92? [-Werror=3Dimplicit-function-declaration]
        do_gettimeofday(&__afs_tv);                           \
        ^~~~~~~~~~~~~~~
/var/lib/dkms/openafs/1.8.2/build/src/afs/afs_osi.h:170:25: note: in expans=
ion of macro =91osi_GetTime=92
 #define osi_GetuTime(x) osi_GetTime(x)
                         ^~~~~~~~~~~
/var/lib/dkms/openafs/1.8.2/build/src/afs/afs_stats.h:61:3: note: in expans=
ion of macro =91osi_GetuTime=92
   osi_GetuTime(&opStartTime);
   ^~~~~~~~~~~~
/var/lib/dkms/openafs/1.8.2/build/src/libafs/MODLOAD-5.0.3-200.fc29.x86_64-=
MP/afs_callback.c:113:5: note: in expansion of macro =91XSTATS_START_CMTIME=
=92
     XSTATS_START_CMTIME(AFS_STATS_CM_RPCIDX_GETCE);
     ^~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[4]: *** [scripts/Makefile.build:277: /var/lib/dkms/openafs/1.8.2/build=
/src/libafs/MODLOAD-5.0.3-200.fc29.x86_64-MP/afs_callback.o] Error 1
make[3]: *** [Makefile:1557: _module_/var/lib/dkms/openafs/1.8.2/build/src/=
libafs/MODLOAD-5.0.3-200.fc29.x86_64-MP] Error 2
make[3]: Leaving directory '/usr/src/kernels/5.0.3-200.fc29.x86_64'
FAILURE: make exit code 2
make[2]: *** [Makefile.afs:280: libafs.ko] Error 1
make[2]: Leaving directory '/var/lib/dkms/openafs/1.8.2/build/src/libafs/MO=
DLOAD-5.0.3-200.fc29.x86_64-MP'
make[1]: *** [Makefile:187: linux_compdirs] Error 2
make[1]: Leaving directory '/var/lib/dkms/openafs/1.8.2/build/src/libafs'
make: *** [Makefile:15: all] Error 2
mv: cannot stat 'src/libafs/MODLOAD-*/libafs.ko': No such file or directory

It was working with a patch in the 4.20 series.


--_000_a1c91ca3000d462485d2ef52310f7250sinenominenet_
Content-Type: text/html; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DWindows-1=
252">
</head>
<body>
<style type=3D"text/css" style=3D"display:none;"><!-- P {margin-top:0;margi=
n-bottom:0;} --></style>
<div id=3D"divtagdefaultwrapper" style=3D"font-size:12pt;color:#000000;font=
-family:Calibri,Helvetica,sans-serif;" dir=3D"ltr">
<p><span style=3D"font-family: Calibri, Helvetica, sans-serif; font-size: 1=
2pt;">There were three patches needed to get openafs to build on a Linux 5.=
0 kernel.&nbsp; They were merged into the master openafs-stable-1_8_x branc=
h sometime&nbsp;mid January and are included
 in 1.8.3-pre1</span><br>
<br>
<span><span style=3D"font-family: Calibri, Helvetica, sans-serif; font-size=
: 12pt;">25829aaef319728e30fc45895e8945438e4dc719&nbsp;</span><span style=
=3D"color: rgb(53, 53, 53); font-family: Calibri, Helvetica, sans-serif; fo=
nt-size: 12pt; white-space: pre;">Linux_5.0:
 Use super_block flags instead of Mount flags when filling sb</span></span>=
<br>
</p>
<p><span><span style=3D"color: rgb(53, 53, 53); font-family: monospace; fon=
t-size: small; white-space: pre;"><span><span style=3D"font-family: Calibri=
, Helvetica, sans-serif; font-size: 12pt;">e7d8dc01cc1f0592eaecea5b87990097=
e9e59b88
</span><span style=3D"font-family: Calibri, Helvetica, sans-serif; font-siz=
e: 12pt;">Linux_5.0: replace do_gettimeofday with ktime_get_real_ts64</span=
></span><br>
</span></span></p>
<p><span><span style=3D"color: rgb(53, 53, 53); font-family: monospace; fon=
t-size: small; white-space: pre;"><span><span><span><span style=3D"font-fam=
ily: Calibri, Helvetica, sans-serif; font-size: 12pt;">804fefa6b46ed75921a1=
560a9e6b37842eabc94a
</span><span style=3D"color: rgb(53, 53, 53); font-family: Calibri, Helveti=
ca, sans-serif; font-size: 12pt; white-space: pre;">Linux_5.0: replaced cur=
rent_kernel_time with ktime_get_coarse_real_ts64</span></span><br>
</span></span></span></span></p>
</div>
<hr style=3D"display:inline-block;width:98%" tabindex=3D"-1">
<div id=3D"divRplyFwdMsg" dir=3D"ltr"><font face=3D"Calibri, sans-serif" st=
yle=3D"font-size:11pt" color=3D"#000000"><b>From:</b> openafs-info-admin@op=
enafs.org &lt;openafs-info-admin@openafs.org&gt; on behalf of Gary Gatling =
&lt;gsgatlin@ncsu.edu&gt;<br>
<b>Sent:</b> Monday, March 25, 2019 11:21:11 AM<br>
<b>To:</b> openafs-info<br>
<b>Subject:</b> [OpenAFS] kernel 5.0.3 openafs issues in fedora linux</font=
>
<div>&nbsp;</div>
</div>
<div>
<div dir=3D"ltr">
<div dir=3D"ltr">
<div>Hello,</div>
<div dir=3D"ltr"><br>
</div>
<div dir=3D"ltr">I'm having trouble getting openafs to work in fedora 29 wi=
th kernel&nbsp;5.0.3-200.fc29.x86_64</div>
<div dir=3D"ltr"><br>
</div>
<div>This is how it fails on kernel module build. Does anyone know if there=
 is a patch to get around this error?</div>
<div><br>
</div>
<div>
<div>&nbsp; CC [M]&nbsp; /var/lib/dkms/openafs/1.8.2/build/src/libafs/MODLO=
AD-5.0.3-200.fc29.x86_64-MP/afs_callback.o</div>
<div>In file included from /var/lib/dkms/openafs/1.8.2/build/src/afs/afs_os=
i.h:440,</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from /va=
r/lib/dkms/openafs/1.8.2/build/src/rx/rx_clock.h:46,</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from /va=
r/lib/dkms/openafs/1.8.2/build/src/rx/rx.h:57,</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from /va=
r/lib/dkms/openafs/1.8.2/build/src/afs/afsincludes.h:30,</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from /va=
r/lib/dkms/openafs/1.8.2/build/src/libafs/MODLOAD-5.0.3-200.fc29.x86_64-MP/=
afs_callback.c:21:</div>
<div>/var/lib/dkms/openafs/1.8.2/build/src/libafs/MODLOAD-5.0.3-200.fc29.x8=
6_64-MP/afs_callback.c: In function =91SRXAFSCB_GetCE=92:</div>
<div>/var/lib/dkms/openafs/1.8.2/build/src/afs/LINUX/osi_machdep.h:101:8: e=
rror: implicit declaration of function =91do_gettimeofday=92; did you mean =
=91do_settimeofday64=92? [-Werror=3Dimplicit-function-declaration]</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; do_gettimeofday(&amp;__afs_tv);&nbsp; &nbs=
p; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &n=
bsp; &nbsp;\</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; ^~~~~~~~~~~~~~~</div>
<div>/var/lib/dkms/openafs/1.8.2/build/src/afs/afs_osi.h:170:25: note: in e=
xpansion of macro =91osi_GetTime=92</div>
<div>&nbsp;#define osi_GetuTime(x) osi_GetTime(x)</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp; &nbsp; &nbsp;^~~~~~~~~~~</div>
<div>/var/lib/dkms/openafs/1.8.2/build/src/afs/afs_stats.h:61:3: note: in e=
xpansion of macro =91osi_GetuTime=92</div>
<div>&nbsp; &nbsp;osi_GetuTime(&amp;opStartTime);</div>
<div>&nbsp; &nbsp;^~~~~~~~~~~~</div>
<div>/var/lib/dkms/openafs/1.8.2/build/src/libafs/MODLOAD-5.0.3-200.fc29.x8=
6_64-MP/afs_callback.c:113:5: note: in expansion of macro =91XSTATS_START_C=
MTIME=92</div>
<div>&nbsp; &nbsp; &nbsp;XSTATS_START_CMTIME(AFS_STATS_CM_RPCIDX_GETCE);</d=
iv>
<div>&nbsp; &nbsp; &nbsp;^~~~~~~~~~~~~~~~~~~</div>
<div>cc1: some warnings being treated as errors</div>
<div>make[4]: *** [scripts/Makefile.build:277: /var/lib/dkms/openafs/1.8.2/=
build/src/libafs/MODLOAD-5.0.3-200.fc29.x86_64-MP/afs_callback.o] Error 1</=
div>
<div>make[3]: *** [Makefile:1557: _module_/var/lib/dkms/openafs/1.8.2/build=
/src/libafs/MODLOAD-5.0.3-200.fc29.x86_64-MP] Error 2</div>
<div>make[3]: Leaving directory '/usr/src/kernels/5.0.3-200.fc29.x86_64'</d=
iv>
<div>FAILURE: make exit code 2</div>
<div>make[2]: *** [Makefile.afs:280: libafs.ko] Error 1</div>
<div>make[2]: Leaving directory '/var/lib/dkms/openafs/1.8.2/build/src/liba=
fs/MODLOAD-5.0.3-200.fc29.x86_64-MP'</div>
<div>make[1]: *** [Makefile:187: linux_compdirs] Error 2</div>
<div>make[1]: Leaving directory '/var/lib/dkms/openafs/1.8.2/build/src/liba=
fs'</div>
<div>make: *** [Makefile:15: all] Error 2</div>
<div>mv: cannot stat 'src/libafs/MODLOAD-*/libafs.ko': No such file or dire=
ctory</div>
</div>
<div><br>
</div>
<div>It was working with a patch in the 4.20 series.</div>
<div><br>
</div>
</div>
</div>
</div>
</body>
</html>

--_000_a1c91ca3000d462485d2ef52310f7250sinenominenet_--