While trying to figure out a specific challange to ctflearn website, I had to run gdb on a binary file to try to get some debug info from there. My CentOS 8.x said I need to install the glibc-debug package in order to get access to all the available debug info generated by gdb. Unfortunatelly, it seems that there is no glibc-debug package for CentOS 8 (at least for glibc-2.28-127 version).
That being said I’ve decided to create such a package. Finding the glibc-2.28-127.el8.x86_64.src.rpm package seemed like an easy task but in the end proved to be a little more complicated that I thought. I found the .src.rpm package on the pkgs.org website but the download URL was incorrect so I was always getting a 404 error. In the end, I’ve tried to replace the OS version from the URL which was 8.1.1911 with 8.3.2011 (which is the latest version) and voila, the download worked.
Installing the .src.rpm package was an easy task but to re-create all the glibc packages as .rpm requires additional software to be installed: gcc, gd-devel, rpm-build, glibc-static, libpng-devel, libstdc++-static, texinfo etc.
I have installed them all and issued the command to rebuild the packages. The process took quite a lot (4 cpu cores kvm instance, 4g ram, ssd disk ~ about 75 minutes).
In the end, I was able to have all the glibc packages as .rpm packages and ready to be installed.You can download the 2 packages from the url bellow: glibc debug packages.
They are 100% clean packages, no viruses, no malware, no hidden backdoors or trojan. Scan them with whatever software you want if you do not trust me…
2 thoughts on “glibc-debug missing on CentOS 8 latest version”
Can you share the instruction from downloading the src package, applying patch, build and installing
You can download the .src.rpm package from here: ftp://ftp.pbone.net/mirror/vault.centos.org/8.3.2011/BaseOS/Source/SPackages/glibc-2.28-127.el8.src.rpm
As for the instructions, honestly I can’t remember since it was quite some time ago but I assume you can just use something like: rpmbuild –rebuild glibc-2.28-127.el8.src.rpm
if you check at the end of the article, there’s link with the packages I’ve built. Don’t worry, they are malware and virus free.
The article also states what packages need to be installed as dependencies in order to build the glibc-debug package.