Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 644094 - sys-kernel/genkernel dmraid fails to link to new lvm undefined reference to `udev_queue_unref'
Summary: sys-kernel/genkernel dmraid fails to link to new lvm undefined reference to...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-10 05:03 UTC by Anton Kochkov
Modified: 2019-03-21 23:51 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
full output (genkernel_all.log,15.58 KB, text/x-log)
2018-01-11 04:39 UTC, Anton Kochkov
Details
complete log (genkernel_new.log,164.79 KB, text/x-log)
2018-01-11 04:41 UTC, Anton Kochkov
Details
full log (genkernel.log,147.66 KB, text/x-log)
2018-06-23 17:36 UTC, Slava
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Kochkov 2018-01-10 05:03:38 UTC
After solving old bug ( https://bugs.gentoo.org/631368 ) a new one appeared

*--                                                                                                                                                                   
*(.text+0xd3c): undefined reference to `udev_queue_unref'                          
*(.text+0xd44): undefined reference to `udev_unref'                                                                                                                                                                                        
*(.text+0xdfe): undefined reference to `udev_queue_unref'                                 
*(.text+0xe06): undefined reference to `udev_unref'     
*(.text+0xf04): undefined reference to `udev_unref'                                                                                                                                                                                   
*collect2: error: ld returned 1 exit status         
*make[1]: *** [Makefile:71: dmraid] Error 1                                                                             
*make[1]: Leaving directory '/var/tmp/genkernel/20204.30716.28704.3163115/dmraid/1.0.0.rc16-3/dmraid/tools'
*make: *** [make.tmpl:120: tools] Error 2              
*--                                                                      
* Running with options: all                                                     
* Using genkernel.conf from /etc/genkernel.conf
* Sourcing arch-specific config.sh from /usr/share/genkernel/arch/x86_64/config.sh ..                                                                                                                                         
* Sourcing arch-specific modules_load from /usr/share/genkernel/arch/x86_64/modules_load ..
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2018-01-10 22:24:51 UTC
I need a lot more output than that please.
Comment 2 Anton Kochkov 2018-01-11 04:39:20 UTC
Created attachment 514210 [details]
full output
Comment 3 Anton Kochkov 2018-01-11 04:41:15 UTC
Created attachment 514212 [details]
complete log

Attaching /var/log/genkernel.log
Comment 4 Anton Kochkov 2018-02-14 06:43:09 UTC
Any update on this? Any more information I can provide you?
Comment 5 Anton Kochkov 2018-04-23 13:23:12 UTC
Ping?
Comment 6 Slava 2018-06-23 17:36:25 UTC
Created attachment 536974 [details]
full log
Comment 7 Slava 2018-06-23 17:37:37 UTC
Hello,

Having the same issue as Anton reported.  Using genkernel 3.5.3.3, trying to compile vanilla 4.17.2 with dmraid.  Build log is attached
Comment 8 Slava 2018-06-23 18:21:45 UTC
FYI, I was able to compile successfully using genkernel-next.  I would much prefer not to use genkernel-next in the future though, so hoping this gets fixed in genkernel
Comment 9 Lars 2018-07-01 21:14:57 UTC
I think the build fails because the patches for dmraid are in the wrong location:

* dmraid: >> No patches found in /usr/share/genkernel/patches/dmraid/1.0.0.rc16-3 ...

The patches are not in a subdirectory 1.0.0.rc16-3:

equery files genkernel | grep -e 'dmraid.*.patch'
/usr/share/genkernel/patches/dmraid/dmraid-1.0.0.rc16-3-staticlink.patch
/usr/share/genkernel/patches/dmraid/dmraid-1.0.0_rc16-as-needed2.patch
/usr/share/genkernel/patches/dmraid/dmraid-1.0.0_rc16-return-all-sets.patch
/usr/share/genkernel/patches/dmraid/dmraid-1.0.0_rc16-static-build-fixes.patch
/usr/share/genkernel/patches/dmraid/dmraid-1.0.0_rc16-undo-p-rename.patch

Workaround:

mkdir  /usr/share/genkernel/patches/dmraid/1.0.0.rc16-3
ln -s /usr/share/genkernel/patches/dmraid/dmraid-1.0.0.rc16-3-staticlink.patch /usr/share/genkernel/patches/dmraid/1.0.0.rc16-3
ln -s /usr/share/genkernel/patches/dmraid/dmraid-1.0.0_rc16-static-build-fixes.patch /usr/share/genkernel/patches/dmraid/1.0.0.rc16-3
ln -s /usr/share/genkernel/patches/dmraid/dmraid-1.0.0_rc16-undo-p-rename.patch /usr/share/genkernel/patches/dmraid/1.0.0.rc16-3
ln -s /usr/share/genkernel/patches/dmraid/dmraid-1.0.0_rc16-return-all-sets.patch /usr/share/genkernel/patches/dmraid/1.0.0.rc16-3

Please note that dmraid-1.0.0_rc16-as-needed2.patch is not linked as it fails.

Now genkernel works as expected.
Comment 10 Larry the Git Cow gentoo-dev 2019-03-21 23:51:13 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=d29d35d22c47eed852d95cd7ea5b313d1c51929d

commit d29d35d22c47eed852d95cd7ea5b313d1c51929d
Author:     Thomas Deutschmann <whissi@gentoo.org>
AuthorDate: 2019-03-21 20:50:46 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2019-03-21 20:50:46 +0000

    Fix compilation of dmraid
    
    Fixes: https://bugs.gentoo.org/642988
    Fixes: https://bugs.gentoo.org/644094
    Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>

 gen_compile.sh                                     | 23 +++++++++++-----------
 .../dmraid-1.0.0.rc16-3-staticlink.patch           |  0
 .../dmraid-1.0.0_rc16-parallel-make.patch          | 11 +++++++++++
 .../dmraid-1.0.0_rc16-return-all-sets.patch        |  0
 .../dmraid-1.0.0_rc16-static-build-fixes.patch     |  0
 .../dmraid-1.0.0_rc16-undo-p-rename.patch          |  0
 patches/dmraid/dmraid-1.0.0_rc16-as-needed2.patch  | 11 -----------
 7 files changed, 23 insertions(+), 22 deletions(-)