From: Weldon Goree <weldon@langurwallah.org>
To: musl@lists.openwall.com
Subject: Re: A running list of questions from "porting" Slackware to musl
Date: Tue, 30 Sep 2014 21:35:57 +0530 [thread overview]
Message-ID: <542AD4E5.5060606@langurwallah.org> (raw)
In-Reply-To: <20140930154635.GB23797@brightrain.aerifal.cx>
On 09/30/2014 09:16 PM, Rich Felker wrote:
>
> Like glibc, musl supports the gettext API natively. There is no need
> for libintl and it should not be installed. libintl.h is just the
> header for the gettext API.
>
> I'm not sure what's happening with symbol names in your libintl. I
> suspect it was either built incorrectly or has some invalid glibc
> assumptions, but I know other users (even Alpine Linux) have used it
> successfully with musl in the past, before musl had gettext.
>
Nor I, but I've tried it with all the permutations of older gettext
versions and no gettext versions, and several GNU programs fail to link
if they aren't told to --disable-nls. I'm not a programmer, just a
sysadmin, and I'm interested in musl because it might make my life
easier in the future, but I'm in no place (yet) to figure out what I've
done wrong.
> I don't think gcc/ld search /lib when linking, so putting libc.so
> there (and not having it in /usr/lib) would probably leave things
> broken. If the core issue is that you want the actual file on /, you
> could swap the direction of the symlink (make ld-musl the real file)
> or make both ld-musl and /usr/lib/libc.so symlinks to /lib/libc.so or
> similar.
>
When I cross-compile a native gcc it "wants" the linker to be in /lib
(or I should say, Gregor's patches tell it to look for the symlink in
/lib, and my being a sysadmin tells me that whatever /lib/ld-foo links
to should not be in /usr because I do have to boot my server occasionally).
>
> If you're "porting" the whole system to build against musl, you
> shouldn't need the musl-gcc wrapper, and in fact you're going to have
> a hard time using it as soon as you try to build C++ software. You
> really want a native compiler toolchain that supports musl. See the
> musl-cross project for the necessary patches to GCC.
Granted: my slackware port doesn't use musl-gcc, but I'm maintaining the
community port of musl for slackware-gnu users too.
>
>> 4. Is Pth a lost cause?
>
> Yes. But there's a new portable pth (sorry, couldn't resist) in the
> works that several projects (iirc gnupg) are eagar to switch to, since
> pth is so bad and has no future (it's incompatible with programs that
> use real threads, and likely with most/all future systems). It's
> API-compatible but based on pthread so it works anywhere. No idea what
> the status is, though.
>
I'll look into it. xorg was happy with the stub lib they wrote years ago
so I haven't looked past that because it did what I needed; that was
more out of curiosity.
>
> I'd need more context to know what, if anything, you're doing wrong,
> or if the packages you're compiling just insist on using stack
> protector. In any case having it on should not break anything, but you
> may need libssp_nonshared.a (from a gcc natively targeting musl) for
> ssp to link right in shared libraries. libssp.so should not exist, and
> libssp.a should be an empty .a file (ar rc libssp.a to make it).
>
RPM is the candidate this time; I only need it to build rpm2cpio to get
the linuxdoc sources (I found a workaround), but it also took some
finagling to get Perl to stop "helping" me by adding -f-stack-protector.
This was again a point of curiosity.
Cheers,
Weldon
next prev parent reply other threads:[~2014-09-30 16:05 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-30 12:43 Weldon Goree
2014-09-30 14:59 ` stephen Turner
2014-09-30 16:20 ` Weldon Goree
2014-09-30 15:32 ` Isaac Dunham
2014-09-30 15:50 ` Rich Felker
2014-09-30 23:50 ` Andy Lutomirski
2014-10-01 0:05 ` Rich Felker
2014-10-01 5:49 ` Andy Lutomirski
2014-10-01 13:29 ` Rich Felker
2014-10-01 15:00 ` Andy Lutomirski
2014-10-01 7:48 ` Szabolcs Nagy
2014-10-01 8:19 ` u-wsnj
2014-10-01 13:30 ` Rich Felker
2014-09-30 15:46 ` Rich Felker
2014-09-30 16:05 ` Weldon Goree [this message]
2014-10-01 6:29 ` Timo Teras
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=542AD4E5.5060606@langurwallah.org \
--to=weldon@langurwallah.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).