zsh-workers
 help / color / mirror / code / Atom feed
From: Axel Beckert <abe@deuxchevaux.org>
To: zsh-workers@zsh.org
Subject: Re: [BUG] With --disable-dynamic-nss, not all functions calls are protected
Date: Fri, 17 Sep 2021 16:16:12 +0200	[thread overview]
Message-ID: <20210917141611.wycuu5ve3kapjltz@sym.noone.org> (raw)
In-Reply-To: <CAN=4vMqGT9f6E8Q3-PNt5BvQ92hoae4QkDDkFBmeu8zXbbWPYw@mail.gmail.com>

Hi Roman,

On Fri, Sep 17, 2021 at 03:55:43PM +0200, Roman Perepelitsa wrote:
> > Yay, this patch works for me! zsh-static built on Debian Unstable
> > (glibc 2.32) no more segfaults when copied to and executed on Debian
> > 11 Bullseye (glibc 2.31) for me.
> 
> If your goal is to create a binary that runs on any Linux x64 box
> regardless of libc runtimes that may or may not be available on it,
> link against musl libc.

Thanks for that idea, but the main goal for now was to make zsh-static
survive glibc upgrades in Debian (Unstable first and foremost).

> Static linking against glibc is a lost cause.

Not the first time I've read that, yes.

> Zsh can link against musl libc out of the box. This is how I build
> mine.

I've just checked: At least bash-static, busybox-static and sash
(static by default as that's its purpose) are built against glibc in
Debian, so I'll probably stay with glibc for now in Debian's
zsh-static package.

Nevertheless thanks for that hint. Will keep it in mind in case we run
into more severe glibc issues with static builds in the future.

		Kind regards, Axel
-- 
PGP: 2FF9CD59612616B5      /~\  Plain Text Ribbon Campaign, http://arc.pasp.de/
Mail: abe@deuxchevaux.org  \ /  Say No to HTML in E-Mail and Usenet
Mail+Jabber: abe@noone.org  X
https://axel.beckert.ch/   / \  I love long mails: https://email.is-not-s.ms/


  reply	other threads:[~2021-09-17 14:16 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-08  1:12 Vincent Lefevre
2021-09-15 14:31 ` Axel Beckert
2021-09-15 19:13   ` Bart Schaefer
2021-09-16  7:37     ` Jun T
2021-09-16 12:10       ` Axel Beckert
2021-09-16 16:48         ` Bart Schaefer
2021-09-16 18:21           ` Jun. T
2021-09-16 18:34             ` Axel Beckert
2021-09-16 22:01               ` Bart Schaefer
2021-09-17  1:23             ` Jun T
2021-09-17  8:45               ` Jun T
2021-09-17 13:44                 ` Axel Beckert
2021-09-17 13:55                   ` Roman Perepelitsa
2021-09-17 14:16                     ` Axel Beckert [this message]
2021-09-17 15:02                 ` Bart Schaefer
2021-09-21  0:53                   ` Jun T
2021-09-21  3:38                     ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210917141611.wycuu5ve3kapjltz@sym.noone.org \
    --to=abe@deuxchevaux.org \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).