mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rich Felker <dalias@libc.org>
To: musl@lists.openwall.com
Cc: lancethepants@gmail.com
Subject: Re: Minimal asterisk compilation
Date: Sun, 4 May 2014 07:50:21 -0400	[thread overview]
Message-ID: <20140504115021.GA23751@brightrain.aerifal.cx> (raw)
In-Reply-To: <20140504125541.58602273@vostro>

On Sun, May 04, 2014 at 12:55:41PM +0300, Timo Teras wrote:
> On Sun, 04 May 2014 01:23:02 -0600
> Lance Fredrickson <lancethepants@gmail.com> wrote:
> 
> > Musl has caught my eye, and I've compiled various one-off binaries,
> > but wanted to compile a minimal asterisk setup for an embedded mipsel
> > device (router).
> > 
> > I've put my code here.
> > https://github.com/lancethepants/asterisk-embedded-musl
> > Sorry, I do things hacky.
> > 
> > I later moved over libc.so, and created ld-musl-mipsel.so.1
> > 
> > All the binaries I've compiled so far work fine, but the modules in 
> > asterisk have issues.
> > One example is
> > 
> > # /opt/asterisk/bin/ldd ./codec_ulaw.so /opt/asterisk/bin/ldd
> > (0x55550000) libc.so => /opt/asterisk/bin/ldd (0x55550000)
> > Error relocating ./codec_ulaw.so: ast_format_set: symbol not found
> > Error relocating ./codec_ulaw.so: __ast_mulaw: symbol not found
> > Error relocating ./codec_ulaw.so: ast_unregister_file_version: symbol 
> > not found
> > Error relocating ./codec_ulaw.so: ast_module_unregister: symbol not
> > found Error relocating ./codec_ulaw.so: __ast_lin2mu: symbol not found
> > Error relocating ./codec_ulaw.so: ast_unregister_translator: symbol
> > not found
> > Error relocating ./codec_ulaw.so: __ast_register_translator: symbol
> > not found
> > Error relocating ./codec_ulaw.so: ast_register_file_version: symbol
> > not found
> > Error relocating ./codec_ulaw.so: ast_module_register: symbol not
> > found
> 
> Those are symbols from the main 'asterisk' binary that the modules use.
> ldd cannot resolve them because it does not know about the main
> asterisk binary anything.

If that's the case, the problem is most likely that -rdynamic is
missing from the LDFLAGS. No idea why the build system would have
omitted it...

Rich


      reply	other threads:[~2014-05-04 11:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-04  7:23 Lance Fredrickson
2014-05-04  9:55 ` Timo Teras
2014-05-04 11:50   ` Rich Felker [this message]

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=20140504115021.GA23751@brightrain.aerifal.cx \
    --to=dalias@libc.org \
    --cc=lancethepants@gmail.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).