Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 580022 - sys-block/parted-3.2: ../libparted/.libs/libparted.so: undefined reference to `minor'
Summary: sys-block/parted-3.2: ../libparted/.libs/libparted.so: undefined reference to...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal major (vote)
Assignee: Gentoo LiveCD Package Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: glibc-sysmacros
  Show dependency tree
 
Reported: 2016-04-15 01:10 UTC by G.Wolfe Woodbury
Modified: 2018-02-23 22:31 UTC (History)
1 user (show)

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


Attachments
emerge --info for system (emerge-info.txt,14.93 KB, text/plain)
2016-04-15 01:10 UTC, G.Wolfe Woodbury
Details
emerge log for parted-3.2 (parted-3.2:20160414-234705.log,112.21 KB, text/plain)
2016-04-15 01:12 UTC, G.Wolfe Woodbury
Details
proposed patch to correct missing major() minor() macro definitions (parted-3.2-use-sysmacros.patch,273 bytes, patch)
2016-04-15 12:14 UTC, G.Wolfe Woodbury
Details | Diff
emerge-info.txt (emerge-info.txt,6.68 KB, text/plain)
2016-04-27 19:52 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,560.42 KB, text/plain)
2016-04-27 19:53 UTC, Toralf Förster
Details
environment (environment,113.52 KB, text/plain)
2016-04-27 19:53 UTC, Toralf Förster
Details
sys-block:parted-3.2-r1:20160427-194613.log (sys-block:parted-3.2-r1:20160427-194613.log,112.29 KB, text/plain)
2016-04-27 19:53 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description G.Wolfe Woodbury 2016-04-15 01:10:58 UTC
Created attachment 430536 [details]
emerge --info for system

Trying to build "plasma-meta" for new KDE5, parted fails to compile.

attaching "emerge --info" and build log

It is complaining about an implicit definition of the "major" macro. The only place I find that is in "/usr/include/sys/sysmacros.h" which seems not to be included anywhere in the chain at the moment. [XOSlib would, but I don't see it.]
Comment 1 G.Wolfe Woodbury 2016-04-15 01:12:12 UTC
Created attachment 430538 [details]
emerge log for parted-3.2
Comment 2 G.Wolfe Woodbury 2016-04-15 12:14:47 UTC
Created attachment 430604 [details, diff]
proposed patch to correct missing major() minor() macro definitions

Something caused parted to no longer include sysmacros.h (probably was a side efect before).   This just explicitly brings in the <sys/sysmacros.h> for
libparted/arch/linux.c    It could also go in linux.h alternatively.
Comment 3 Marcin Kowalski 2016-04-15 17:05:36 UTC
I am seeing the same problem in cryptsetup-1.7.1 atm.
Comment 4 G.Wolfe Woodbury 2016-04-15 19:54:59 UTC
So, some header include got changed and sysmacros.h is not a side effect anymore.

Do you, by chance, use 4.5.x (unstable/testing) kernels?

Also it seems, folks upgrading to kde5 who already have these packages installed won't get this problem.
Comment 5 G.Wolfe Woodbury 2016-04-19 11:15:25 UTC
I just comprehended what is being discussed in gentoo-dev with the topic "glibc 2.23 ... breaking stuff" and this seems to be a fallout from the glibc update?
Comment 6 Toralf Förster gentoo-dev 2016-04-27 19:52:58 UTC
Created attachment 432332 [details]
emerge-info.txt

feed the blocker\n\nThis bug report feeds bug #575232 (sys-libs/glibc-2.23-r1 breakage).


/bin/sh ../libtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc   -march=native -O2 -pipe  -Wl,--as-needed -Wl,-O1 -Wl,--as-needed -rdynamic -o parted command.o parted.o strlist.o ui.o table.o libver.a ../libparted/libparted.la   -lreadline  -ldl -lncurses  
libtool: link: x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -Wl,-O1 -rdynamic -o .libs/parted command.o parted.o strlist.o ui.o table.o  -Wl,--as-needed libver.a ../libparted/.libs/libparted.so -luuid -lblkid -lreadline -ldl -lncurses
../libparted/.libs/libparted.so: undefined reference to `minor'
Comment 7 Toralf Förster gentoo-dev 2016-04-27 19:53:03 UTC
Created attachment 432334 [details]
emerge-history.txt
Comment 8 Toralf Förster gentoo-dev 2016-04-27 19:53:06 UTC
Created attachment 432336 [details]
environment
Comment 9 Toralf Förster gentoo-dev 2016-04-27 19:53:08 UTC
Created attachment 432338 [details]
sys-block:parted-3.2-r1:20160427-194613.log
Comment 11 Larry the Git Cow gentoo-dev 2018-02-23 22:31:38 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3571d8bf77ab6a3ae461f2faa15e3ad9521b32b9

commit 3571d8bf77ab6a3ae461f2faa15e3ad9521b32b9
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: 2018-02-23 22:31:11 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: 2018-02-23 22:31:30 +0000

    sys-block/parted: Drop old, bug 575232
    
    Bug: https://bugs.gentoo.org/580022
    Package-Manager: Portage-2.3.24, Repoman-2.3.6

 sys-block/parted/Manifest                        |   2 -
 sys-block/parted/files/parted-2.4-no-gets.patch  |  10 --
 sys-block/parted/files/parted-2.4-readline.patch |  11 --
 sys-block/parted/files/parted-3.1-readline.patch |  11 --
 sys-block/parted/files/parted-3.1-zfs.patch      | 170 -----------------------
 sys-block/parted/parted-2.4-r1.ebuild            |  54 -------
 sys-block/parted/parted-2.4.ebuild               |  55 --------
 sys-block/parted/parted-3.1-r1.ebuild            |  81 -----------
 sys-block/parted/parted-3.1-r2.ebuild            |  85 ------------
 9 files changed, 479 deletions(-)}