From: Szabolcs Nagy <nsz@port70.net>
To: musl@lists.openwall.com
Subject: Re: Trying to compile libselinux against musl
Date: Tue, 19 Nov 2013 20:15:51 +0100 [thread overview]
Message-ID: <20131119191550.GC1685@port70.net> (raw)
In-Reply-To: <CACCP0Gpi_pN6ZdcTjj+URp7+uUGc7=cpFj4gvEUSUVq1PdmScQ@mail.gmail.com>
* Raphael Cohn <raphael.cohn@stormmq.com> [2013-11-19 16:20:27 +0000]:
> src/booleans.c wants to use the macro _D_ALLOC_NAMLEN - which seems to be a
> glibc-ism in dirent.h. It may be possible to hack in their macro definition
should be fixed upstream
> to overcome this;
> src/proccattr.c tries to use __register_atfork, which is in the LSB but I
> suspect is a glibc-ism.
>
> I'm stuck on the latter - I'm not deep into this stuff. Does anyone have
> any ideas how to patch / hack / bypass this to get things compiled? Are
> there any other workarounds (apart from not using libselinux or musl)?
i think you can just use pthread_atfork instead
#define __register_atfork(prepare,parent,child,dso) pthread_atfork(prepare,parent,child)
the dso arg is just there in case dlclose() is used
which is broken on glibc anyway and noop on musl
next prev parent reply other threads:[~2013-11-19 19:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-19 16:20 Raphael Cohn
2013-11-19 19:15 ` Szabolcs Nagy [this message]
2013-11-20 10:33 ` Raphael Cohn
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=20131119191550.GC1685@port70.net \
--to=nsz@port70.net \
--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).