SliTaz SliTaz Forum archive

This forum is now a read-only archive

The SliTaz community has moved to Maille, a forum made for SliTaz.

We looked hard for a replacement for this aging forum, including a move from bbPress to FluxBB last June. But spam bots now get through sign-up even with mail confirmation, and these forum engines are barely maintained anymore. So we wrote a forum in the SliTaz spirit: small, fast, no JavaScript, works on old machines and in text browsers. Everything here stays readable.

Go to Maille

You are not logged in.

#1 2020-04-06 02:39:19

enigma9o7
Member
Registered: 2020-03-22
Posts: 77

GLIBC 2.17 problem

I'm trying to install glibc 2.17 because something else I want depends on it.

I grabbed souce and configure then make but run into an error related to obstack.  Searching for this error, seems its related to using newer binutils and is trivial to fix, but unfortunately I don't know how to init a pointer/etc.

Can someone tell the command or the file to edit to accomplish this?

[attachment=48706,2929]

Offline

#2 2020-04-06 13:03:29

mistfire
Member
Registered: 2018-08-17
Posts: 168

Re: GLIBC 2.17 problem

Use this glibc version from slitaz next repo

http://pkgs.slitaz.org/?info=glibc&version=next

Offline

#3 2020-04-06 16:04:51

enigma9o7
Member
Registered: 2020-03-22
Posts: 77

Re: GLIBC 2.17 problem

Thanks.  I was unfamiliar with next repo.   Will try that shortly.

Next repo is just for new versions of stuff?  No downsides to using stuff from there?  Seems like there must be a reason it's not in main repo...

Offline

#4 2020-04-08 23:13:40

enigma9o7
Member
Registered: 2020-03-22
Posts: 77

Re: GLIBC 2.17 problem

I'm hesitant to try it cuz I don't understand about repo it's coming from.   I'm always afraid of breaking things when I do things I don't understand, although I'm new at Slitaz I've broken (and fixed) other distro enough times over the years to learn to be careful...  When I was building myself I knew I wasn't root and all was safe, couldn't mess up other things.  But if I install that with root, is there some risk for messing up other stuff?  Can I safely downgrade if it does break something else?

Thanks, sorry for dumb questions.  In a year I promise I'll know more wink

Offline

#5 2020-04-11 06:03:36

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: GLIBC 2.17 problem

Go to https://git.io/JvhzO in web browser.

File/Save Page As

Save fix_obstack_compat.diff to same directory as glibc-2.17.tar.xz

[c][tux@slitaz:~/Downloads]$ tar xf glibc-2.17.tar.xz[/c]

[c][tux@slitaz:~/Downloads]$ cd glibc-2.17[/c]

[c][tux@slitaz:~/Downloads/glibc-2.17]$ patch -p1 < ../fix_obstack_compat.diff[/c]

[c]patching file malloc/obstack.c[/c]

Offline

#6 2020-04-11 21:31:27

enigma9o7
Member
Registered: 2020-03-22
Posts: 77

Re: GLIBC 2.17 problem

Thank you very much!  Patch worked & build successful!

I haven't figured out how to trick the app I want into using it yet, without installing it I mean.   And I'm a little afraid of installing it as I don't want to break something else, and seems this is a fairly important library. 

But I'm going to keep playing with it.  My building issue is resolved, thanks again.

Offline

#7 2020-04-11 22:58:50

enigma9o7
Member
Registered: 2020-03-22
Posts: 77

Re: GLIBC 2.17 problem

When I installed my build locally then put it in my LD_LIBRARY_PATH, things start to segfault, i.e. nano, clear.  So I don't think I'm going to try installing it for real.  Back to wondering about that next version...

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.017 seconds, 7 queries executed - Memory usage: 1.55 MiB (Peak: 1.77 MiB) ]