mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Robert Clausecker <fuz@fuz.su>
To: musl@lists.openwall.com
Subject: [musl] getpwuid() calls getline() which may be redefined
Date: Mon, 17 Apr 2023 18:50:06 +0200	[thread overview]
Message-ID: <ZD14vr35ZF2k+fd/@fuz.su> (raw)

Greetings,

I'm the maintainer of schilytools [1], a suite of tools including
cdrecord, mkisofs, star, smake, and others.  To produce Linux
binary releases for our users, I investigated building static
binaries with musl and found that the star command experienced
problems [3]: when built with

    smake LINKMODE=static LDOPTX=-static INS_RBASE=/opt/schily SHLIB_BUILD=\#

the program hangs reading from stdin.  With the help of psykose
from your IRC channel, we found that this is due to getpwuid()
calling getline(), a symbol which this program uses for a custom
function with a POSIX-incompatible signature.  This use of the
getline() symbol dates back to UNOS [2], an early UNIX close.

We'll try to work around this issue, likely by renaming our
getline() to something else.  I have filed this bug report with
you so you may decide if you wish to route the getline() call
through an internal symbol alias, proofing your library against
incompatible external redefinitions.

Yours,
Robert Clausecker

[1]: https://codeberg.org/schilytools/schilytools
[2]: https://en.wikipedia.org/wiki/UNOS_(operating_system)
[3]: https://codeberg.org/schilytools/schilytools/issues/31

-- 
()  ascii ribbon campaign - for an 8-bit clean world 
/\  - against html email  - against proprietary attachments

             reply	other threads:[~2023-04-17 17:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-17 16:50 Robert Clausecker [this message]
2023-04-17 19:39 ` Rich Felker

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=ZD14vr35ZF2k+fd/@fuz.su \
    --to=fuz@fuz.su \
    --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).