libc6-dev deprecated headers, when removed?

Asked by Mark Koski

Can you share with me when/what version of libc6-dev package was bits/libio.h, bits/_G_config.h, bits/sys_errlist.h, bits/byteswap-16.h, and bits/mathinline.h deprecated.

Were any of them suggested to replace with another header name(?)

Google implied bits/libio.h could/should use bits/stdio.h.

The others?

Is there any harm in including them in a 22.04 OS environment due to s/w that still reference them?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu glibc Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

A quick check in the version history shows that the removal of bits/libio.h happened with the version change from 2.27 to 2.28 (introduced in Ubuntu 18.10 cosmic), but it was already marked as "deprecated" in Ubuntu 18.04 bionic.

The change history of version 2.28 shows among others:

Include libio.h as <libio/libio.h> rather than as <bits/libio.h>.
 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.

Revision history for this message
Mark Koski (emk037) said :
#2

Thank you for some guidance on libio.h, but in the context of Ubuntu 22.04 and jammy.

none of these headers asking about are anywhere after install of:
ibc6-dev/jammy-updates,now 2.35-0ubuntu3.1 amd64 [installed,automatic]

so totally deprecated it would appear.

Is there a jammy version of libc6-dev that could be used to bring them back?

[https://image.motorola-mail.com/lib/fe901272716d077b74/m/7/ico-robot-20170411.jpg]
Mark Koski
Senior Software Engineer
MBG PCS - Software & Test Tools
Motorola Mobility, A Lenovo Company
motorola.com<http://www.motorola.com/>
E <email address hidden><mailto:<email address hidden>>
twitter<https://www.twitter.com/Moto_USA> | facebook<https://www.facebook.com/MotoUSA/> | instagram<https://www.instagram.com/moto_usa/> | blog<http://www.motorola-blog.blogspot.com/> | forums<https://forums.lenovo.com/t5/Motorola-Community/ct-p/MotorolaCommunity>
[https://image.motorola-mail.com/lib/fe901272716d077b74/m/7/bug-lenovo-blue-20170405.png]
________________________________
From: <email address hidden> <email address hidden> on behalf of Manfred Hampl <email address hidden>
Sent: Thursday, July 20, 2023 1:00 PM
To: Mark Koski <email address hidden>
Subject: [External] Re: [Question #707344]: libc6-dev deprecated headers, when removed?

Your question #707344 on glibc in Ubuntu changed:
https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fanswers.launchpad.net%2Fubuntu%2F%2Bsource%2Fglibc%2F%2Bquestion%2F707344&data=05%7C01%7Cmarkkoski%40motorola.com%7Cdcf7648a814b4620452708db8942eb97%7C5c7d0b28bdf8410caa934df372b16203%7C0%7C0%7C638254692736466850%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=p26Vgz0xPenek0T79zcZPlTQRT%2F8sXm5JcEwINzY84M%3D&reserved=0<https://answers.launchpad.net/ubuntu/+source/glibc/+question/707344>

    Status: Open => Answered

Manfred Hampl proposed the following answer:
A quick check in the version history shows that the removal of
bits/libio.h happened with the version change from 2.27 to 2.28
(introduced in Ubuntu 18.10 cosmic), but it was already marked as
"deprecated" in Ubuntu 18.04 bionic.

The change history of version 2.28 shows among others:

Include libio.h as <libio/libio.h> rather than as <bits/libio.h>.
        * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.

--
If this answers your question, please go to the following page to let us
know that it is solved:
https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fanswers.launchpad.net%2Fubuntu%2F%2Bsource%2Fglibc%2F%2Bquestion%2F707344%2F%2Bconfirm%3Fanswer_id%3D0&data=05%7C01%7Cmarkkoski%40motorola.com%7Cdcf7648a814b4620452708db8942eb97%7C5c7d0b28bdf8410caa934df372b16203%7C0%7C0%7C638254692736466850%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=KK6mrQQKi02ub8mnGq92xn55zbaB5CDc5UC0sYY793o%3D&reserved=0<https://answers.launchpad.net/ubuntu/+source/glibc/+question/707344/+confirm?answer_id=0>

If you still need help, you can reply to this email or go to the
following page to enter your feedback:
https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fanswers.launchpad.net%2Fubuntu%2F%2Bsource%2Fglibc%2F%2Bquestion%2F707344&data=05%7C01%7Cmarkkoski%40motorola.com%7Cdcf7648a814b4620452708db8942eb97%7C5c7d0b28bdf8410caa934df372b16203%7C0%7C0%7C638254692736466850%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=p26Vgz0xPenek0T79zcZPlTQRT%2F8sXm5JcEwINzY84M%3D&reserved=0<https://answers.launchpad.net/ubuntu/+source/glibc/+question/707344>

You received this question notification because you asked the question.

Revision history for this message
Bernard Stafford (bernard010) said (last edit ):
#3

https://packages.ubuntu.com/jammy/libc6-dev
libc6-dev (2.35-0ubuntu3)

https://sourceware.org/pipermail/libc-alpha/2023-February/145190.html
Only available for Ubuntu lunar 23.04 2.37-0ubuntu2

Revision history for this message
Best Manfred Hampl (m-hampl) said :
#4

If these header files have been removed in libc6 version 2.28, then you will not find them any more if your operating system has a higher version.
And downgrading jammy's libc6 from 2.35 to 2.27 or lower is a very bad idea, because there are certain dependencies of other programs that need a certain minimum version, e.g. 2.32

The only reasonable step forward that I see is correcting that other program, such that it works with a current version of libc6-dev.

Revision history for this message
Mark Koski (emk037) said :
#5

Thank you! We did not want to downgrade to lower version of libc6-dev. wasn't even sure jammy environment offered a diff version than the 2.35.