Menu

#59 The "major" and "minor" macros will move header in future glibc

v1.0 (example)
closed-fixed
nobody
None
5
2020-04-18
2016-12-15
No

I realize this is a bit proactive, but... From glibc upstream:

"In some future release, glibc's <sys types.h=""> will not include <sys sysmacros.h=""> anymore. As of 2.25, it still does, but you get deprecation warnings if you use the macros without including <sys sysmacros.h="">. We have not decided exactly which future release will finally remove the #include; to help us decide, please send reports of software that trips the deprecation warnings to libc-alpha."</sys></sys></sys>

autoconf already has AC_HEADER_MAJOR, which sets MAJOR_IN_SYSMACROS if the sys/sysmacros.h include is needed.

The macros are at least used in gpib_config.c.

References:
https://sourceware.org/ml/libc-alpha/2015-11/msg00253.html
https://bugzilla.redhat.com/show_bug.cgi?id=130601
https://bugs.gentoo.org/show_bug.cgi?id=575232

Discussion

  • DaveP

    DaveP - 2016-12-18

    Thanks Andreas.

     
  • Andreas Huettel

    Andreas Huettel - 2020-04-18
    • status: open --> closed-fixed
     
  • Andreas Huettel

    Andreas Huettel - 2020-04-18

    r1660 | dpenkler | 2017-09-01 19:33:05 +0300 (Fr, 01 Sep 2017) | 8 lines
    Changed paths:
    M /trunk/linux-gpib/configure.ac
    M /trunk/linux-gpib/doc/linux-gpib.sgml
    M /trunk/linux-gpib/drivers/gpib/lpvo_usb_gpib/lpvo_usb_gpib.c
    M /trunk/linux-gpib/drivers/gpib/ni_usb/ni_usb_gpib.c
    M /trunk/linux-gpib/drivers/gpib/ni_usb/ni_usb_gpib.h
    M /trunk/linux-gpib/lib/gpib_config/gpib_config.c
    M /trunk/linux-gpib/usb/ni_usb_gpib/99-ni_usb_gpib.rules.in
    M /trunk/linux-gpib/usb/ni_usb_gpib/ni_usb_gpib

    Commit for 4.0.4rc3
    - Fix lpvo use of wait_queue_t
    - Fix doc defines for IbaPPollTime & IbcPPollTime. Thanks Vince Vielhaber.
    - Bumped version number to 4.0.4rc3
    - Included patch to support NI GPIB-USB-HS+. Thanks Lukas Botsch.
    - Updated doc to include NI GPIB-USB-HS+
    - Added include of <sys sysmacros.h=""> in gpib_config.c for minor() definition.
    </sys>

    glibc-2.28 was released with sys/sysmacros.h removed from sys/types.h

     

Log in to post a comment.

Auth0 Logo