Bug 12726

Summary: dkms-lzma fails to build the module
Product: Mageia Reporter: Samuel Verschelde <stormi-mageia>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED OLD QA Contact:
Severity: major    
Priority: Normal CC: mageia, thomas
Version: 4Keywords: Triaged
Target Milestone: ---   
Hardware: i586   
OS: Linux   
Whiteboard:
Source RPM: lzma-4.43-34.mga4.src.rpm CVE:
Status comment:

Description Samuel Verschelde 2014-02-11 18:16:10 CET
- install kernel-[flavor]-devel-xxx matching your current kernel
- install dkms-lzma
- watch it fail to build

Build log:

make: Entering directory '/usr/src/linux-3.12.9-desktop-1.mga4'
  LD      /var/lib/dkms/lzma/4.43-34.mga4/build/built-in.o
  CC [M]  /var/lib/dkms/lzma/4.43-34.mga4/build/uncomp.o
/var/lib/dkms/lzma/4.43-34.mga4/build/uncomp.c: In function âLzmaUncompressâ:
/var/lib/dkms/lzma/4.43-34.mga4/build/uncomp.c:52:6: attention : assignment discards âconstâ qualifier from pp
ointer target type [enabled by default]
  src = un->un_cmbuf;
      ^
/var/lib/dkms/lzma/4.43-34.mga4/build/uncomp.c:64:4: erreur: implicit declaration of function âkfreeâ [-Werroo
r=implicit-function-declaration]
    kfree(sbuf->buf);
    ^
/var/lib/dkms/lzma/4.43-34.mga4/build/uncomp.c:72:3: erreur: implicit declaration of function âkmallocâ [-Werr
ror=implicit-function-declaration]
   sbuf->buf = kmalloc(i, GFP_ATOMIC);
   ^
/var/lib/dkms/lzma/4.43-34.mga4/build/uncomp.c:72:13: attention : assignment makes pointer from integer without a cast [enabled by default]
   sbuf->buf = kmalloc(i, GFP_ATOMIC);
             ^
/var/lib/dkms/lzma/4.43-34.mga4/build/uncomp.c: In function âsqlzma_initâ:
/var/lib/dkms/lzma/4.43-34.mga4/build/uncomp.c:163:29: attention : assignment makes pointer from integer without a cast [enabled by default]
   un->un_a[SQUN_RESULT].buf = kmalloc(res_sz, GFP_KERNEL);
                             ^
/var/lib/dkms/lzma/4.43-34.mga4/build/uncomp.c:172:26: attention : assignment makes pointer from integer without a cast [enabled by default]
  un->un_stream.workspace = kmalloc(zlib_inflate_workspacesize(), GFP_KERNEL);
                          ^
cc1: some warnings being treated as errors
scripts/Makefile.build:308: recipe for target '/var/lib/dkms/lzma/4.43-34.mga4/build/uncomp.o' failed
make[1]: *** [/var/lib/dkms/lzma/4.43-34.mga4/build/uncomp.o] Error 1
Makefile:1228: recipe for target '_module_/var/lib/dkms/lzma/4.43-34.mga4/build' failed
make: *** [_module_/var/lib/dkms/lzma/4.43-34.mga4/build] Error 2
make: Leaving directory '/usr/src/linux-3.12.9-desktop-1.mga4'


Reproducible: 

Steps to Reproduce:
Comment 1 Manuel Hiebel 2014-02-12 21:51:56 CET
As there is no maintainer for this package I added the committers in CC.
(really old commit but well)

Maybe something to absolete.

Keywords: (none) => Triaged
CC: (none) => mageia, thomas

Comment 2 Samuel Verschelde 2015-09-21 13:21:44 CEST
Mageia 4 changed to end-of-life (EOL) status on 2015-09-19. It is is no longer 
maintained, which means that it will not receive any further security or bug 
fix updates.

Package Maintainer: If you wish for this bug to remain open because you plan to 
fix it in a currently maintained version, simply change the 'version' to a later 
Mageia version.

Bug Reporter: Thank you for reporting this issue and we are sorry that we weren't 
able to fix it before Mageia 4's end of life. If you are able to reproduce it 
against a later version of Mageia, you are encouraged to click on "Version" and 
change it against that version of Mageia. If it's valid in several versions, 
select the highest and add MGAxTOO in whiteboard for each other valid release.
Example: it's valid in cauldron and Mageia 5, set to cauldron and add MGA5TOO.

Although we aim to fix as many bugs as possible during every release's lifetime, 
sometimes those efforts are overtaken by events. Often a more recent Mageia 
release includes newer upstream software that fixes bugs or makes them obsolete.

If you would like to help fixing bugs in the future, don't hesitate to join the
packager team via our mentoring program [1] or join the teams that fit you 
most [2].

[1] https://wiki.mageia.org/en/Becoming_a_Mageia_Packager
[2] http://www.mageia.org/contribute/
Comment 3 Marja Van Waes 2015-10-27 06:58:42 CET
As announced over a month ago, Mageia 4 changed to end-of-life (EOL) status on 2015-09-19. It is is no longer maintained, which means that it will not receive any further security or bug fix updates.

This issue may have been fixed in a later Mageia release, so, if you still see it and didn't already do so: please upgrade to Mageia 5 (or, if you read this much later than this is written: make sure you run a currently maintained Mageia version)

If you are able to reproduce it against a maintained version of Mageia, you are encouraged to 
1. reopen this bug report, by changing the "Status" from "RESOLVED - OLD" to "REOPENED"
2. click on "Version" and change it against that version of Mageia. If you know it's valid in several versions, select the highest and add MGAxTOO in whiteboard for each other valid release.
Example: it's valid in cauldron and Mageia 5, set to cauldron and add MGA5TOO.
3. give as much relevant information as possible. If you're not an experienced bug reporter and have some time: please read this page:
https://wiki.mageia.org/en/How_to_report_a_bug_properly

If you see a similar issue, but are _not_sure_ it is the same, with the same cause, then please file a new bug report and mention this one in it (please include the bug number, too). 


If you would like to help fixing bugs in the future, don't hesitate to join the
packager team via our mentoring program [1] or join the teams that fit you 
most [2].
[1] https://wiki.mageia.org/en/Becoming_a_Mageia_Packager
[2] http://www.mageia.org/contribute/

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