mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Isaac Dunham <idunham@lavabit.com>
To: musl@lists.openwall.com
Subject: Re: musl setup attempt
Date: Wed, 13 Mar 2013 07:07:38 -0700	[thread overview]
Message-ID: <20130313070738.4993159f.idunham@lavabit.com> (raw)
In-Reply-To: <CAFipMOF+-DfSV0BpUA0VJw4jJxQ1Aa_45aPGVY0DfZHx3QAmXQ@mail.gmail.com>

On Wed, 13 Mar 2013 07:54:18 -0400
LM <lmemsm@gmail.com> wrote:

> 
> I tried following the instructions at
> http://git.musl-libc.org/cgit/musl/tree/INSTALL for Option 1.  Built

I presume that means you used current git?

> 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

If that were the issue, you could not run anything. The loader is specified by the specfile musl-gcc uses, and it's what make the program run.  If libraries are missing, the program will generally fail to run (depending on your settings).
So it's probably something else.

> 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?

No ideas just yet, but it would probably be most helpful if you installed strace, then used it on bzip2:
(this assumes prefix=~/; replace everything with appropriate paths)

apt-get install strace
#If I read correctly, bzip2 was affected-
#if not, use a program that is affected.
strace ~/bin/bzip2 -k ~/lib/libc.so 2>musl.strace
ls ~/lib/  #You should see libc.so, libc.so.bz2, and others 

Then either look through musl.strace and find what's just before the io errors, or just attach the file (you'll likely need to compress it, unless the io error cuts it short).

grep -B 7 -i input.output musl-bz2.strace

> 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?  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


-- 
Isaac Dunham <idunham@lavabit.com>



  reply	other threads:[~2013-03-13 14:07 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-13 11:54 LM
2013-03-13 14:07 ` Isaac Dunham [this message]
2013-03-13 18:49 ` John Spencer
2013-03-15 11:54   ` LM
2013-03-15 21:11     ` Isaac Dunham
2013-03-16 13:36       ` LM
2013-03-16 22:58       ` Rich Felker
2013-03-14 11:02 LM

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130313070738.4993159f.idunham@lavabit.com \
    --to=idunham@lavabit.com \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).