From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/5049 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: Minimal asterisk compilation Date: Sun, 4 May 2014 07:50:21 -0400 Message-ID: <20140504115021.GA23751@brightrain.aerifal.cx> References: <5365EAD6.504@gmail.com> <20140504125541.58602273@vostro> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1399204242 1317 80.91.229.3 (4 May 2014 11:50:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 4 May 2014 11:50:42 +0000 (UTC) Cc: lancethepants@gmail.com To: musl@lists.openwall.com Original-X-From: musl-return-5053-gllmg-musl=m.gmane.org@lists.openwall.com Sun May 04 13:50:36 2014 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 1WguwE-0002lq-R1 for gllmg-musl@plane.gmane.org; Sun, 04 May 2014 13:50:34 +0200 Original-Received: (qmail 12158 invoked by uid 550); 4 May 2014 11:50:34 -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 12150 invoked from network); 4 May 2014 11:50:34 -0000 Content-Disposition: inline In-Reply-To: <20140504125541.58602273@vostro> User-Agent: Mutt/1.5.21 (2010-09-15) Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:5049 Archived-At: On Sun, May 04, 2014 at 12:55:41PM +0300, Timo Teras wrote: > On Sun, 04 May 2014 01:23:02 -0600 > Lance Fredrickson 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