From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/1253 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: Hello Date: Thu, 5 Jul 2012 19:34:57 -0400 Message-ID: <20120705233457.GR544@brightrain.aerifal.cx> References: <20120607200123.402a1672@sibserver.ru> <4FD0A902.6070108@barfooze.de> <20120607231831.66c78c33@sibserver.ru> <4FD0D6D9.5080707@barfooze.de> <20120607161928.GE163@brightrain.aerifal.cx> <20120608011516.0b5fca7d@sibserver.ru> <20120608033141.GH163@brightrain.aerifal.cx> <20120706012417.5ae680f0@sibserver.ru> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1341531396 12093 80.91.229.3 (5 Jul 2012 23:36:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 5 Jul 2012 23:36:36 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-1254-gllmg-musl=m.gmane.org@lists.openwall.com Fri Jul 06 01:36:36 2012 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 1Smvb4-0008Iu-5j for gllmg-musl@plane.gmane.org; Fri, 06 Jul 2012 01:36:30 +0200 Original-Received: (qmail 25945 invoked by uid 550); 5 Jul 2012 23:36:28 -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 25933 invoked from network); 5 Jul 2012 23:36:28 -0000 Content-Disposition: inline In-Reply-To: <20120706012417.5ae680f0@sibserver.ru> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:1253 Archived-At: On Fri, Jul 06, 2012 at 01:24:17AM +0800, orc wrote: > On Thu, 7 Jun 2012 23:31:41 -0400 > Rich Felker wrote: > > > > So there is a question: will musl support this configs? Or I will > > > need patchelf and 'libc6-legacy' for them? > > > > It's intended to work, but I don't know whether it does yet. > > Did some research there last days: for, example, one that proprietary > drivers that nvidia ships it was required about 30 missing symbols, > half of them are one-liners system calls, 5 were glibc-specific > functions that were easy to add (one of them is gnu_get_libc_version() > that is designed to return a plain string), 4 were missing math > functions that already defined as a macros in math.h, rest is a forest > of weak aliases around already existed functions (plus two aliases to > objects). That allowed me to run plain unmodified X11 applications (not > even gtk2 ones) and accelerated glxgears without errors (The gtk2 or > qt or other such libraries compiled against glibc is not my target, > just to prove that userspace nvidia could be run with musl). > If you interested, I can put a patch that adds such forest of > weak_alias'es to improve (partly) glibc compatibility. And separate > patch for missing syscall wrappers. I'm very interested in this. I'm surprised it was that easy to make it work, and just curious about all the aliases that were involved and whether they make since or whether they're hacks. Post patches or a report in whatever form you prefer; I'll review it and hopefully it can be committed without much additional fuss. Rich