From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/10209 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: musl ldd: swt build: Error relocating / symbol not found Date: Thu, 23 Jun 2016 00:24:48 -0400 Message-ID: <20160623042448.GX10893@brightrain.aerifal.cx> References: <576B58E6.6040400@gmail.com> 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 1466655920 28057 80.91.229.3 (23 Jun 2016 04:25:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 23 Jun 2016 04:25:20 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-10222-gllmg-musl=m.gmane.org@lists.openwall.com Thu Jun 23 06:25:05 2016 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1bFwCN-0004EK-Nk for gllmg-musl@m.gmane.org; Thu, 23 Jun 2016 06:25:04 +0200 Original-Received: (qmail 17882 invoked by uid 550); 23 Jun 2016 04:25:01 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 17864 invoked from network); 23 Jun 2016 04:25:00 -0000 Content-Disposition: inline In-Reply-To: <576B58E6.6040400@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:10209 Archived-At: On Thu, Jun 23, 2016 at 03:35:02AM +0000, Andrei Pozolotin wrote: > Hello. > > I have a curious problem: > > 1) the following build system: > https://github.com/random-alpiner/repository/blob/master/bugs/01/APKBUILD > https://github.com/random-alpiner/repository/blob/master/bugs/01/build.sh > https://github.com/random-alpiner/repository/blob/master/bugs/01/make_linux.mak > > 2) produces a library: > https://github.com/random-alpiner/repository/blob/master/alpine/x86_64/swt-4.5.2-r1.apk > > 3) which, when loaded by target application (java/eclipse), produces > an error: > https://github.com/random-alpiner/repository/blob/master/bugs/01/1-app.log > > 4) and yet, that error should not happen, according to musl ldd: > https://github.com/random-alpiner/repository/blob/master/bugs/01/2-ldd.log > > 5) and also confirmed by readelf: > https://github.com/random-alpiner/repository/blob/master/bugs/01/3-readelf.log > > Any pointers on how to resolve this seeming contradiction are much > appreciated. My first guess would be that something else in the application (eclipse) has already caused an older/stale version of libgobject to be loaded, so that the version containing the symbol definition does not get loaded. You could confirm this by running strace on the program and checking what library files it loads/maps. > Finally, someone on irc#musl suggested that musl ldd provides "-d" > and "-r" options > by default out of the box: > http://man7.org/linux/man-pages/man1/ldd.1.html. Is that so? This is roughly correct. Symbol resolution is always attempted and errors reported. Rich