Page 1 of 1

glibc headers and compatibility

Posted: 01 Jul 2021, 12:36
by supertabs
My question is,

Will a glibc header version 2.33 compatible with the older libc.so.6? or will my program fail when Iink with my old libc.so.6 because of the new glibc header? :%) :fool:

  • I am planning to copy the glibc headers version 2.33 for my dev modules.
  • Will it be ok? :shock:
  • What will be the differences? :crazy:

glibc headers and compatibility

Posted: 01 Jul 2021, 12:46
by supertabs
Just another question to add, specifically I want the porteus developers here to answer me :D :) , where did you get the glibc headers bundled inside the 05-devel.xzm?

If it is okay with you my dear porteus developers, can you somewhat share it to me how you do the process of creating 05-devel.xzm, such as the list of the libraries, headers, and other files, and how you compile them (do you use chroot, or other techniques?) ???

glibc headers and compatibility

Posted: 01 Jul 2021, 12:48
by supertabs
I am planning to share something here in this community, but I am still unsure if my contribution will be a benefit or a disaster. :o

glibc headers and compatibility

Posted: 01 Jul 2021, 15:09
by babam
supertabs wrote:
01 Jul 2021, 12:48
I am planning to share something here in this community, but I am still unsure if my contribution will be a benefit or a disaster. :o
Why not
Disaster? are you kidding.

glibc headers and compatibility

Posted: 01 Jul 2021, 15:26
by supertabs
babam wrote:
01 Jul 2021, 15:09
supertabs wrote:
01 Jul 2021, 12:48
I am planning to share something here in this community, but I am still unsure if my contribution will be a benefit or a disaster. :o
Why not
Disaster? are you kidding.
Maybe, :D :lol:

My porteus was screwed recently after compiling glibc and replacing libc.so.6 directly. I cannot guarantee that it will be useful if I share it to others.

My plan is to share my newly compile glibc, but I am not sure if will work with other, so I will just use the new glibc headers while keeping the old libc.so.6?

@babam, will that be ok? :Search:

glibc headers and compatibility

Posted: 01 Jul 2021, 23:51
by ncmprhnsbl
when building the base modules of porteus, we mostly use slackware packages(a few are compiled) that contain the headers(in /usr/include/*)
in the build process, these headers are exported to a tempory location(along with locale and man pages), so that 001,002,003 don't contain these.
later when 05-devel is built, as well as the dev packages(make etc..) those exported headers are imported back into it.
afaiui, glibc is a bit special, it's pretty much at the base of the dependency tree, sitting between the kernel and everything else..
usually, when glibc is updated in slackware(or most other distros), a mass rebuild of the entire repo is triggered.. but i think there's some backward compatibility built into glibc libs?

now, whether mixing the newer headers with an older lib would be be workable, i don't know, but am doubtful..