bugGNU 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

Sat 19 Jan 2019 01:23:47 PM UTC, original submission:  
  • linux
  • glibc 2.28.9000-553-g02f440c1ef5


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:


configure: WARNING: sys/sysmacros.h: present but cannot be compiled
configure: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?
configure: WARNING: sys/sysmacros.h: see the Autoconf documentation
configure: WARNING: sys/sysmacros.h:     section "Present But Cannot Be Compiled"
configure: WARNING: sys/sysmacros.h: proceeding with the compiler's result
configure: WARNING:     ## ------------------------------- ##
configure: WARNING:     ## Report this to bug-grub@gnu.org ##
configure: WARNING:     ## ------------------------------- ##


Earnestly <earnestly>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by earnestly (Submitted the item)
  •  

    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

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code