Bug 15912 - libafs build fails with kernel 3.14.41-desktop-1.mga4
Summary: libafs build fails with kernel 3.14.41-desktop-1.mga4
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 4
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: advisory mga4-32-ok mga4-64-ok
Keywords: validated_update
Depends on:
Blocks: 15614 15873
  Show dependency treegraph
 
Reported: 2015-05-12 08:55 CEST by Götz Waschk
Modified: 2015-05-13 19:19 CEST (History)
2 users (show)

See Also:
Source RPM: openafs-1.6.10-1.1.mga4.src.rpm
CVE:
Status comment:


Attachments

Description Götz Waschk 2015-05-12 08:55:42 CEST
With the kernel upgrade, the dkms build of libafs fails:
# dkms build -m libafs -v 1.6.10-1.1.mga4

Preparing kernel 3.14.41-desktop-1.mga4 for module build:
(This is not compiling a kernel, just preparing kernel symbols)
Storing current .config to be restored when complete
Running Generic preparation routine
make mrproper.....
using /proc/config.gz
make oldconfig.....
make prepare....

Building module:
cleaning build area....(bad exit status: 2)
SMP=SP; eval `grep CONFIG_SMP /boot/config-3.14.41-desktop-1.mga4`; [ -n "$CONFIG_SMP" ] && SMP=MP; ./configure --with-linux-kernel-headers=/lib/modules/3.14.41-desktop-1.mga4/build; make MPS=$SMP; mv src/libafs/MODLOAD-*/libafs.ko .......................................................................................(bad exit status: 1)

Error! Bad return status for module build on kernel: 3.14.41-desktop-1.mga4 (x86_64)
Consult the make.log in the build directory
/var/lib/dkms/libafs/1.6.10-1.1.mga4/build/ for more information.



If you type make in the build directory, you get this error:

â¦
  CC [M]  /var/lib/dkms/libafs/1.6.10-1.1.mga4/build/src/libafs/MODLOAD-3.14.41-desktop-1.mga4-MP/afs_daemons.o
/var/lib/dkms/libafs/1.6.10-1.1.mga4/build/src/libafs/MODLOAD-3.14.41-desktop-1.mga4-MP/afs_daemons.c: In function 'afs_CheckRootVolume':
/var/lib/dkms/libafs/1.6.10-1.1.mga4/build/src/libafs/MODLOAD-3.14.41-desktop-1.mga4-MP/afs_daemons.c:403:24: error: 'struct dentry' has no member named 'd_alias'
       list_del_init(&dp->d_alias);
                        ^
/var/lib/dkms/libafs/1.6.10-1.1.mga4/build/src/libafs/MODLOAD-3.14.41-desktop-1.mga4-MP/afs_daemons.c:404:19: error: 'struct dentry' has no member named 'd_alias'
       list_add(&dp->d_alias, &(AFSTOV(vcp)->i_dentry));
                   ^
/var/lib/dkms/libafs/1.6.10-1.1.mga4/build/src/libafs/MODLOAD-3.14.41-desktop-1.mga4-MP/afs_daemons.c:404:7: warning: passing argument 2 of 'list_add' from incompatible pointer type [enabled by default]
       list_add(&dp->d_alias, &(AFSTOV(vcp)->i_dentry));
       ^
In file included from include/linux/wait.h:6:0,
                 from /var/lib/dkms/libafs/1.6.10-1.1.mga4/build/src/afs/sysincludes.h:124,
                 from /var/lib/dkms/libafs/1.6.10-1.1.mga4/build/src/libafs/MODLOAD-3.14.41-desktop-1.mga4-MP/afs_daemons.c:19:
include/linux/list.h:60:20: note: expected 'struct list_head *' but argument is of type 'struct hlist_head *'
 static inline void list_add(struct list_head *new, struct list_head *head)
                    ^
scripts/Makefile.build:308: recipe for target '/var/lib/dkms/libafs/1.6.10-1.1.mga4/build/src/libafs/MODLOAD-3.14.41-desktop-1.mga4-MP/afs_daemons.o' failed
make[4]: *** [/var/lib/dkms/libafs/1.6.10-1.1.mga4/build/src/libafs/MODLOAD-3.14.41-desktop-1.mga4-MP/afs_daemons.o] Error 1
Makefile:1276: recipe for target '_module_/var/lib/dkms/libafs/1.6.10-1.1.mga4/build/src/libafs/MODLOAD-3.14.41-desktop-1.mga4-MP' failed
make[3]: *** [_module_/var/lib/dkms/libafs/1.6.10-1.1.mga4/build/src/libafs/MODLOAD-3.14.41-desktop-1.mga4-MP] Error 2
make[3]: Leaving directory '/usr/src/kernel-3.14.41-desktop-1.mga4'
FAILURE: make exit code 2
Makefile.afs:241: recipe for target 'libafs.ko' failed
make[2]: *** [libafs.ko] Error 1
make[2]: Leaving directory '/var/lib/dkms/libafs/1.6.10-1.1.mga4/build/src/libafs/MODLOAD-3.14.41-desktop-1.mga4-MP'
Makefile:138: recipe for target 'linux_compdirs' failed
make[1]: *** [linux_compdirs] Error 2
make[1]: Leaving directory '/var/lib/dkms/libafs/1.6.10-1.1.mga4/build/src/libafs'
Makefile:13: recipe for target 'all' failed


Reproducible: 

Steps to Reproduce:
Götz Waschk 2015-05-12 08:57:15 CEST

Source RPM: openafs-1.6.10-1.2.mga4.src.rpm => openafs-1.6.10-1.1.mga4.src.rpm

Comment 1 Samuel Verschelde 2015-05-12 09:10:10 CEST
Assigning to tmb, with QA in CC.

CC: (none) => qa-bugs
Assignee: bugsquad => tmb

Comment 2 Götz Waschk 2015-05-12 09:27:21 CEST
FYI a backport of openafs 1.6.11-1 from Cauldron builds fine with that kernel.
Comment 3 Thomas Backlund 2015-05-12 09:31:02 CEST
Yep, 1.6.11 already pushed to updates_testing to cope with the d_alias change..
Comment 4 David Walser 2015-05-13 02:32:33 CEST
Advisory:
----------------------------------------

The openafs package has been updated to version 1.6.11 for compatibility with
the current Mageia 4 kernel version.

References:
http://openafs.org/dl/openafs/1.6.11/RELNOTES-1.6.11
https://lists.openafs.org/pipermail/openafs-announce/2015/000478.html
----------------------------------------

Updated packages in core/updates_testing:
----------------------------------------
openafs-1.6.11-1.mga4
openafs-client-1.6.11-1.mga4
openafs-server-1.6.11-1.mga4
libopenafs1-1.6.11-1.mga4
libopenafs-devel-1.6.11-1.mga4
libopenafs-static-devel-1.6.11-1.mga4
dkms-libafs-1.6.11-1.mga4
openafs-doc-1.6.11-1.mga4

from openafs-1.6.11-1.mga4.src.rpm

CC: qa-bugs => tmb
Hardware: x86_64 => All
Assignee: tmb => qa-bugs
Severity: major => normal

Comment 5 claire robinson 2015-05-13 10:17:18 CEST
Testing complete mga4 64

Sorry about that. I check gpu/broadcom/vbox dkms builds when we update kernels so I'll add this one to the list aswell.

Before
------
Building module:
cleaning build area....(bad exit status: 2)
SMP=SP; eval `grep CONFIG_SMP /boot/config-3.14.41-desktop-1.mga4`; [ -n "$CONFIG_SMP" ] && SMP=MP; ./configure --with-linux-kernel-headers=/lib/modules/3.14.41-desktop-1.mga4/build; make MPS=$SMP; mv src/libafs/MODLOAD-*/libafs.ko ..................................................................(bad exit status: 1)

Error! Bad return status for module build on kernel: 3.14.41-desktop-1.mga4 (x86_64)
Consult the make.log in the build directory
/var/lib/dkms/libafs/1.6.10-1.1.mga4/build/ for more information.

Error! Could not locate libafs.ko.xz for module libafs in the DKMS tree.
You must run a dkms build for kernel 3.14.41-desktop-1.mga4 (x86_64) first.
warning: %post(dkms-libafs-1.6.10-1.1.mga4.noarch) scriptlet failed, exit status 4
ERROR: 'script' failed for dkms-libafs-1.6.10-1.1.mga4.noarch: 


After
-----
Building module:
cleaning build area....(bad exit status: 2)
SMP=SP; eval `grep CONFIG_SMP /boot/config-3.14.41-desktop-1.mga4`; [ -n "$CONFIG_SMP" ] && SMP=MP; ./configure --with-linux-kernel-headers=/lib/modules/3.14.41-desktop-1.mga4/build; make MPS=$SMP; mv src/libafs/MODLOAD-*/libafs.ko ..................................................................................
cleaning build area....
cleaning kernel tree (make mrproper).....

DKMS: build Completed.

libafs.ko.xz:
 - Installation
   - Installing to /lib/modules/3.14.41-desktop-1.mga4/dkms/3rdparty/libafs//

depmod......

DKMS: install Completed.

Whiteboard: (none) => mga4-64-ok

Comment 6 claire robinson 2015-05-13 10:20:13 CEST
I notice there's still a bad exit status cleaning the build area but dkms status shows it has installed ok.
Comment 7 claire robinson 2015-05-13 14:18:36 CEST
Testing complete mga4 32, as comment 5.

Whiteboard: mga4-64-ok => mga4-32-ok mga4-64-ok

claire robinson 2015-05-13 14:21:58 CEST

Blocks: (none) => 15873

claire robinson 2015-05-13 15:21:44 CEST

Blocks: (none) => 15614

Comment 8 claire robinson 2015-05-13 18:11:45 CEST
Validating. Advisory uploaded.

Please push to 4 updates

Thanks

Keywords: (none) => validated_update
Whiteboard: mga4-32-ok mga4-64-ok => advisory mga4-32-ok mga4-64-ok
CC: (none) => sysadmin-bugs

Comment 9 Mageia Robot 2015-05-13 19:19:36 CEST
An update for this issue has been pushed to Mageia Updates repository.

http://advisories.mageia.org/MGAA-2015-0047.html

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.