mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rich Felker <dalias@libc.org>
To: musl@lists.openwall.com
Subject: Re: musl & proprietary programs
Date: Thu, 24 Dec 2015 00:16:25 -0500	[thread overview]
Message-ID: <20151224051625.GC238@brightrain.aerifal.cx> (raw)
In-Reply-To: <20151224120442.04e497db@r2lynx>

On Thu, Dec 24, 2015 at 12:04:42PM +0700, Рысь wrote:
> On Wed, 23 Dec 2015 18:00:12 -0200
> Alba Pompeo <albapompeo@gmail.com> wrote:
> 
> > I also don't want to pollute my system with glibc. That's why I asked
> > if there was any plan to improve musl support of proprietary programs
> > like the ones I listed.
> > But as a last resort, I think Rich's method is the best so far, but
> > I'm a bit lost on the details since I'm not a libc expert.
> > I couldn't find a wiki page detailing Rich's method on Void or Alpine
> > (the 2 distros I know use musl). Is there a step-by-step for a novice
> > somewhere?
> 
> There is also problem that musl wishes not to be fully glibc compat.
> Certain libc structs and public structs coming from glibc headers that
> are not required to be ABI same will be different on musl for
> performance or optimization reasons, and programs relying on them
> usually will not be happy. Simple programs probably still will work.

There are no differences for performance or optimization reasons,
unless you want to count [u]int_fastNN_t which are basically never
used in public APIs anyway. Otherwise the only differences are that
musl lacks the 32-bit-off_t structures on 32-bit archs (i.e. it can't
match the _FILE_OFFSET_BITS=32 ABI on glibc, but it's not safe to use
this ABI anymore anyway) and that musl does not copy the
non-conforming, unsafe-because-it's-too-small glibc regoff_t on 64-bit
archs (this only affects regexec).

That's the situation for x86 and mainstream archs, at least. Some
other archs have additional differences due to further brokenness in
glibc (like IBM double-double on powerpc).

Rich


  reply	other threads:[~2015-12-24  5:16 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-22 11:23 Alba Pompeo
2015-12-22 11:27 ` Timo Teras
2015-12-22 15:25   ` Рысь
2015-12-22 15:37     ` Alba Pompeo
2015-12-23 14:48       ` Szabolcs Nagy
2015-12-23 16:01         ` u-uy74
2015-12-23 17:22         ` Рысь
2015-12-23 17:43           ` Rich Felker
2015-12-23 18:51             ` Рысь
2015-12-23 20:00               ` Alba Pompeo
2015-12-24  5:04                 ` Рысь
2015-12-24  5:16                   ` Rich Felker [this message]
2015-12-24 10:40                     ` Szabolcs Nagy
2015-12-27  3:54                       ` Rich Felker
2015-12-24  7:00                 ` Isaac Dunham
2015-12-24 19:49                   ` Isaac Dunham
2015-12-24 21:29                     ` Alba Pompeo
2015-12-24  5:12               ` Rich Felker
2015-12-24  7:20                 ` Рысь

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=20151224051625.GC238@brightrain.aerifal.cx \
    --to=dalias@libc.org \
    --cc=musl@lists.openwall.com \
    /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/musl/

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).