From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/1158 Path: news.gmane.org!not-for-mail From: Bruno Haible Newsgroups: gmane.linux.lib.musl.general Subject: installation without root privileges Date: Sun, 17 Jun 2012 19:33:26 +0200 Message-ID: <1369503.9MkYmHAvz4@linuix> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1339956621 4243 80.91.229.3 (17 Jun 2012 18:10:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 17 Jun 2012 18:10:21 +0000 (UTC) Bcc: bruno@haible.de To: Rich Felker , musl@lists.openwall.com Original-X-From: musl-return-1159-gllmg-musl=m.gmane.org@lists.openwall.com Sun Jun 17 20:10:20 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 1SgJvR-0002HU-7g for gllmg-musl@plane.gmane.org; Sun, 17 Jun 2012 20:10:13 +0200 Original-Received: (qmail 30369 invoked by uid 550); 17 Jun 2012 18:10:13 -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 16098 invoked from network); 17 Jun 2012 17:31:38 -0000 X-RZG-AUTH: :Ln4Re0+Ic/6oZXR1YgKryK8brksyK8dozXDwHXjf9hj/zDNRbvY44zMkpA== X-RZG-CLASS-ID: mo00 User-Agent: KMail/4.7.4 (Linux/3.1.10-1.9-desktop; KDE/4.7.4; x86_64; ; ) Xref: news.gmane.org gmane.linux.lib.musl.general:1158 Archived-At: Hi, When installing musl-0.9.1 according to the recipe of INSTALL, Option 1= , CC=3D"gcc-32" \ ./configure --prefix=3D/arch/x86-linux/inst-musl \ --exec-prefix=3D/arch/x86-linux/inst-musl \ --target=3Di686-unknown-linux-gnu \ CC=3D"gcc-32" the "make install" ends like this: ... install -D -m 644 include/wctype.h /arch/x86-linux/inst-musl/include/wc= type.h install -D -m 644 include/wordexp.h /arch/x86-linux/inst-musl/include/w= ordexp.h install -D tools/musl-gcc /arch/x86-linux/inst-musl/bin/musl-gcc ln -sf /arch/x86-linux/inst-musl/lib/libc.so /lib/ld-musl-i386.so.1 || = true ln: could not create symbolic link =E2=80=9E/lib/ld-musl-i386.so.1=E2=80= =9C: Permission denied But the /arch/x86-linux/inst-musl/lib/musl-gcc.specs, section *link, contains a reference to the file /lib/ld-musl-i386.so.1 that could not = be installed. My solution was to change this to read: *link: %(old_link) -dynamic-linker /arch/x86-linux/inst-musl/lib/libc.so -nost= dlib Suggestion: When --disable-gcc-wrapper is not passed to configure (this= is what distinguishes "Option 1" from "Option 2", right?), don't even atte= mpt to put a symlink into /lib. Simply always put the libc.so's real filena= me into the *link section of musl-gcc.specs. The drawback is that executab= les built with musl can typically not be transferred to a different machine= (because that machine will likely use a different installation director= y for musl). Bruno