GNU GRUB - Bugs: bug #55520, Configure failure on glibc 2.28 on...
You are not allowed to post comments on this tracker with your current authentication level.
bug #55520: Configure failure on glibc 2.28 on usability of <sys/sysmacros.h>
Submitter: | Earnestly <earnestly> | ||
Submitted: | Sat 19 Jan 2019 01:23:47 PM UTC | ||
Category: | Compilation | Severity: | Major |
Priority: | 5 - Normal | Item Group: | Software Error |
Status: | None | Privacy: | Public |
Assigned to: | None | Originator Name: | |
Open/Closed: | Open | Release: | Git master |
Release: | Reproducibility: | Every Time | |
Planned Release: | None |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
Carbon-Copy List
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
No changes have been made to this item
Powered by Savane 3.13-4448.
Corresponding source code
When using the following ./configure the configure system appears to not correctly detect the presence of sys/sysmacros.h which generates errors involving undefined major and
minor-nomarkup objects.
+verbatim+
./configure --with-platform=pc \
--prefix=/usr \
--sbindir=/usr/bin \
--enable-nls \
--enable-device-mapper \
--enable-boot-time \
--enable-cache-stats \
--enable-grub-mkfont \
--enable-grub-mount \
--disable-werror
-verbatim-
+verbatim+
grub-core/osdep/devmapper/hostdisk.c:87:26: warning: implicit declaration of function 'major' [-Wimplicit-function-declaration]
return dm_is_dm_major (major (st.st_rdev));
^~~~~
grub-core/osdep/devmapper/hostdisk.c:87:26: warning: nested extern declaration of 'major' [-Wnested-externs]
grub-core/osdep/devmapper/hostdisk.c: In function 'grub_util_get_dm_node_linear_info':
grub-core/osdep/devmapper/hostdisk.c:122:11: error: called object 'major' is not a function or function pointer
major = major (dev);
^~~~~
grub-core/osdep/devmapper/hostdisk.c:117:7: note: declared here
int major = 0, minor = 0;
^~~~~
grub-core/osdep/devmapper/hostdisk.c:123:11: error: called object 'minor' is not a function or function pointer
minor = minor (dev);
^~~~~
grub-core/osdep/devmapper/hostdisk.c:117:18: note: declared here
int major = 0, minor = 0;
^~~~~
make[2]: *** [Makefile;6227: grub-core/osdep/devmapper/libgrubkern_a-hostdisk.o] Error 1
make[2]: *** Waiting for unfinished jobs....
-verbatim-
To work around this issue I'm explicitly setting +nomarkup+ac_cv_header_sys_sysmacros_h=yes
Additionally during the configure I get the following warning: