From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/6220 Path: news.gmane.org!not-for-mail From: Weldon Goree Newsgroups: gmane.linux.lib.musl.general Subject: Re: A running list of questions from "porting" Slackware to musl Date: Tue, 30 Sep 2014 21:35:57 +0530 Message-ID: <542AD4E5.5060606@langurwallah.org> References: <542AA579.2040304@langurwallah.org> <20140930154635.GB23797@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1412093248 9913 80.91.229.3 (30 Sep 2014 16:07:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 30 Sep 2014 16:07:28 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-6233-gllmg-musl=m.gmane.org@lists.openwall.com Tue Sep 30 18:07:23 2014 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1XYzxN-0001AU-RM for gllmg-musl@plane.gmane.org; Tue, 30 Sep 2014 18:07:17 +0200 Original-Received: (qmail 22423 invoked by uid 550); 30 Sep 2014 16:07:17 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 22413 invoked from network); 30 Sep 2014 16:07:16 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.8.0 In-Reply-To: <20140930154635.GB23797@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:6220 Archived-At: 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