byteswap-16.h file is missed in 20.04 LTS

Bug #1888302 reported by Norbert
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
glibc (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Steps to reproduce:
1. Have Ubuntu 20.04 LTS installed
2. Try to compile some application which uses byteswap-16.h (for example as described here - https://askubuntu.com/q/1260661)

Expected results:
* byteswap-16.h is found, compilation is successful

Actual results:
* byteswap-16.h is not found, compilation is not successful

Note:
the last Ubuntu version with this file was 18.04 LTS.

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: libc6-dev 2.31-0ubuntu9
ProcVersionSignature: Ubuntu 5.4.0-40.44-generic 5.4.44
Uname: Linux 5.4.0-40-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.3
Architecture: amd64
CasperMD5CheckResult: skip
CurrentDesktop: MATE
Date: Mon Jul 20 22:06:00 2020
InstallationDate: Installed on 2020-04-23 (88 days ago)
InstallationMedia: Ubuntu-MATE 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
SourcePackage: glibc
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Norbert (nrbrtx) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in glibc (Ubuntu):
status: New → Confirmed
Revision history for this message
Luís de Sousa (luis-de-sousa) wrote :

There are other header files missing from lib6-dev in 20.04. I just had to fetch libio.h and _G_config.h from an old Ubuntu 18.04 to compile a programme on 20.04.

Revision history for this message
Matthias Klose (doko) wrote :

removed upstream:

2018-02-06 Joseph Myers <email address hidden>

        [BZ #14508]
        [BZ #15512]
        [BZ #17082]
        [BZ #20530]

Changed in glibc (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
tomdean (tomdean) wrote :

sudo apt-get --reinstall install libc6-dev
    sudo cp /mnt/usr/include/x86_64-linux-gnu/bits/byteswap-16.h /usr/include/x86_64-linux-gnu/bits/
    sudo cp /mnt/usr/include/x86_64-linux-gnu/bits/libio.h /usr/include/x86_64-linux-gnu/bits/
    sudo cp /mnt/usr/include/x86_64-linux-gnu/bits/_G_config.h /usr/include/x86_64-linux-gnu/bits/
    sudo cp /mnt/usr/lib/gcc/x86_64-linux-gnu/7/include-fixed/limits.h /usr/lib/gcc/x86_64-linux-gnu/7/include-fixed/
    sudo cp /mnt/usr/lib/gcc/x86_64-linux-gnu/7/include-fixed/syslimits.h /usr/lib/gcc/x86_64-linux-gnu/7/include-fixed/

fixed the problem

Revision history for this message
tomdean (tomdean) wrote : Re: [Question #693795]: byteswap-16.h removed from libc8-dev. Why?

On 2020-11-02 21:15, tomdean wrote:
> Your question #693795 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/693795
>
> tomdean posted a new comment:
> libc6-dev in the title.
>
An old .depend file may have caused the requirement for byteswap-16.h.
Removing the .depend fixed the problem.
Sorry for the noise.

Tom Dean

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.