Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 638412

Summary: sys-fs/multipath-tools build error with =sys-libs/glibc-2.26-r3
Product: Gentoo Linux Reporter: Thomas Bettler <thomas.bettler>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://bugzilla.redhat.com/show_bug.cgi?id=130601
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 628768, 646004    
Attachments: patch to include sysmacros where those are still needed

Description Thomas Bettler 2017-11-21 22:26:52 UTC
Created attachment 505586 [details, diff]
patch to include sysmacros where those are still needed

Build fails for sys-fs/multipath (0.5* trough 0.7*) with newer glibc with error message:

discovery.c: In function ‘path_discover’:
discovery.c:130:5: error: implicit declaration of function ‘major’ [-Werror=implicit-function-declaration]
     major(devnum), minor(devnum));
     ^~~~~
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2018-01-17 12:10:11 UTC
multipath-tools-0.7.4 builds fine on my system with sys-libs/glibc-2.26-r5

Can you please verify and report back?
Comment 2 Thomas Bettler 2018-02-11 17:57:33 UTC
works fine now, great, thanks.
Comment 3 Andreas K. Hüttel archtester gentoo-dev 2018-04-28 19:59:20 UTC
Please either backport the fix or stabilize newer multipath-tools!
Comment 4 Andreas K. Hüttel archtester gentoo-dev 2018-05-01 14:12:34 UTC
(In reply to Andreas K. Hüttel from comment #3)
> Please either backport the fix or stabilize newer multipath-tools!

This is already fixed in latest stable 0.6.4-r1. 

commit 464cae287dd74763239b33d48b871224a888cb50
Author:     Anthony Ryan <anthonyryan1@gmail.com>
AuthorDate: Wed Jan 4 16:51:16 2017 -0500
Commit:     Robin H. Johnson <robbat2@gentoo.org>
CommitDate: Sat Jan 7 13:49:28 2017 -0800

    sys-fs/multipath-tools: Version bump 0.6.4
    
    Gentoo-bug: 604228
    
    * Include patch for sysmacros
    * Remove patch for makefile (building still performs a few unnecessary
      operations, but the cost is negligible compared to the cost of
      carrying yet another patch.
    * Remove COMMIT_ID
    * Remove some unnecessary definitions
    * Include a way to disable ceph when building
    * Add linux-info to check for CONFIG_DM_MULTIPATH
    
    Package-Manager: Portage-2.3.3, Repoman-2.3.1
    (cherry picked from commit ef97e67d7cb4b009af471dd2fafdf463960a909d)
    Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>

 sys-fs/multipath-tools/Manifest                                    |  1 +
 sys-fs/multipath-tools/files/multipath-tools-0.6.4-sysmacros.patch | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 sys-fs/multipath-tools/metadata.xml                                | 11 ++++++----
 sys-fs/multipath-tools/multipath-tools-0.6.4.ebuild                | 92 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 160 insertions(+), 4 deletions(-)