From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/369 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: Make Date: Tue, 9 Aug 2011 15:29:52 -0400 Message-ID: <20110809192952.GT132@brightrain.aerifal.cx> References: <6b8e6a08f65ec476283a3699a41451d7@smtp1.ispfr.net> <20110807193658.GA29562@port70.net> <20110807193431.GI132@brightrain.aerifal.cx> <20110807195006.GJ132@brightrain.aerifal.cx> <20110807220940.GC29562@port70.net> <20110807220025.GL132@brightrain.aerifal.cx> <84fdaa74ee78c44b1cbc804bfc2b8635@smtp1.ispfr.net> <20110808205618.GO132@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1312918969 26878 80.91.229.12 (9 Aug 2011 19:42:49 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 9 Aug 2011 19:42:49 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-370-gllmg-musl=m.gmane.org@lists.openwall.com Tue Aug 09 21:42:46 2011 Return-path: Envelope-to: gllmg-musl@lo.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by lo.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1QqsCK-0002TX-20 for gllmg-musl@lo.gmane.org; Tue, 09 Aug 2011 21:42:44 +0200 Original-Received: (qmail 30617 invoked by uid 550); 9 Aug 2011 19:42:43 -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 30609 invoked from network); 9 Aug 2011 19:42:43 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:369 Archived-At: On Tue, Aug 09, 2011 at 09:10:23PM +0200, nicolas@atelier-web.com wrote: > On Mon, 8 Aug 2011 16:56:18 -0400, Rich Felker wrote: > > On Mon, Aug 08, 2011 at 03:03:09PM +0200, nicolas@atelier-web.com wrote: > >> But make depends on ld-linux.so.2 ans on librt.so.1 which are not > >> provided > >> by musl.. > > > > Actually maybe I misunderstood - are you trying to use a glibc-linked > > "make" in a chroot that only has musl? If so, it won't work. You could > > instead static-link all your glibc programs (so they'll work in the > > chroot) then replace them with musl-linked ones as soon as you can.. > > > > Rich > > Hmm, > Okay, thanks for these explanations :) > I tried something, i began to try to use the gcc wrapper to link make to > musl, > but i had some errors : some headers were missing (ar.h / sys/cdefs.h) I'm doubtful that make was trying to include sys/cdefs.h. I certainly never ran into this issue when building it. It may try ar.h, but configure should really be detecting the presence or absence of these. Are you trying to use a make source tree that was already configured for glibc? > So I tried to use the system's headers (Archlinux) but the compilation > failed. (copy to /usr/local/musl/include) This is definitely wrong, in general. If a program is trying to include a header that doesn't exist, the first thing you try should be just removing the #include line. :-) Rich