From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/2908 Path: news.gmane.org!not-for-mail From: John Spencer Newsgroups: gmane.linux.lib.musl.general Subject: Re: musl setup attempt Date: Wed, 13 Mar 2013 19:49:15 +0100 Message-ID: <5140CA2B.2060902@barfooze.de> References: 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 1363200588 12652 80.91.229.3 (13 Mar 2013 18:49:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 13 Mar 2013 18:49:48 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-2909-gllmg-musl=m.gmane.org@lists.openwall.com Wed Mar 13 19:50:14 2013 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 1UFqkb-00057V-T7 for gllmg-musl@plane.gmane.org; Wed, 13 Mar 2013 19:50:10 +0100 Original-Received: (qmail 18257 invoked by uid 550); 13 Mar 2013 18:49:47 -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 18249 invoked from network); 13 Mar 2013 18:49:46 -0000 User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.14) Gecko/20110221 SUSE/3.1.8 Mail/1.0 In-Reply-To: Xref: news.gmane.org gmane.linux.lib.musl.general:2908 Archived-At: On 03/13/2013 12:54 PM, LM wrote: > I tried following the instructions at > http://git.musl-libc.org/cgit/musl/tree/INSTALL for Option 1. Built > musl on a Debian Squeeze system and while configuring, set the prefix, > exec-prefix and syslibdir to a subdirectory beneath my home directory > and set target to i386. A few programs seem to build and run fine > with this setup. For instance, I was able to get bzip2 and diffh to > build and they run right on my Debian system. However, several other > programs build without any complaints and when I try to run them, I > get input/output error. I see that when I try to run programs like > bzip2 or some of the utilities with wavpack for instance. I assumed > that possibly the program couldn't find the loader to load relevant > libraries. I have /etc/ld-musl-i386.path set to the home directory > where I installed the musl lib files and I have LD_LIBRARY_PATH > environment variable set to that lib directory as well. When that > didn't work, I even went in and tried to hardcode dynlink.c and > reloc.h to point to my locations. Still getting the same errors. > Anyone have any ideas what for work-arounds or fixes? please see http://wiki.musl-libc.org/Getting_started . it has detailed instructions about how to use musl from /home. after installation, the key point is to use "CC=musl-gcc" when running configure scripts. if you still get that error, please provide the exact command you issue and the complete error message. in order to debug dynlinker issues, you can always use readelf -a mybinary | grep -i interp that will show you the dynamic linker baked into an executable. readelf -a mybinary | grep -i needed will show you which other dynamic libraries are used. also note that many programs need patches because they're using non-portable constructs. here you can find build instructions for some programs: https://github.com/rofl0r/sabotage/tree/master/pkg if patches are referenced from the build script using $K, you can find them here https://github.com/rofl0r/sabotage/tree/master/KEEP > According to the README ( > http://git.musl-libc.org/cgit/musl/tree/README ): "The musl project > is actively seeking contributors, mostly in the areas > of porting, testing, and application compatibility improvement." > What type of help do you need with porting and application > compatibility? mostly finding portability bugs in programs, like missing include directives, and then reporting the issue upstream (and keep nagging them until they finally fix it). > I'm currently working with several Open Source sdl, > fltk, pdcurses and command line based applications and building them > on Windows and FreeBSD. If I can get musl working the way I hope, > would be interested in getting those Open Source applications working > with it as well. > > Thanks. > > Sincerely, > Laura > http://www.distasis.com/cpp >