From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/3722 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: Missing symbols for supporting glibc-built libstdc++.so.6 Date: Wed, 24 Jul 2013 12:01:11 -0400 Message-ID: <20130724160111.GV3249@brightrain.aerifal.cx> References: <20130724075533.GA14709@brightrain.aerifal.cx> <20130724222003.57719e51@sibserver.ru> <20130724144726.GU3249@brightrain.aerifal.cx> <20130724233611.5bac4fe7@sibserver.ru> 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 1374681684 7958 80.91.229.3 (24 Jul 2013 16:01:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 24 Jul 2013 16:01:24 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-3726-gllmg-musl=m.gmane.org@lists.openwall.com Wed Jul 24 18:01:28 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 1V21VI-0007V7-2s for gllmg-musl@plane.gmane.org; Wed, 24 Jul 2013 18:01:28 +0200 Original-Received: (qmail 4050 invoked by uid 550); 24 Jul 2013 16:01:27 -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 4034 invoked from network); 24 Jul 2013 16:01:26 -0000 Content-Disposition: inline In-Reply-To: <20130724233611.5bac4fe7@sibserver.ru> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:3722 Archived-At: On Wed, Jul 24, 2013 at 11:36:11PM +0800, orc wrote: > I did not send a report about this especially, just my experiments > showed that. Just because nvidia blob did not require libstdc++.so at > all. But others did. > You can start reading somewhere in long 'Hello' thread about 6 Jul 2012. > > Tested now: > - Hello world prog: > #include > > int main() > { > std::cout << "Hello, world!" << std::endl; > return 0; > } > > % g++ test.cc -o test-cpp > % musl-out/lib/libc.so ./test-cpp > [lots of "Error relocating..." errors] > % musl-out/lib/libc.so ./test-cpp 2>&1 | fgrep _ZGVNSt7collateIwE2idE # > picking one > % nm /usr/lib/libstdc++.so.6 | fgrep _ZGVNSt7collateIwE2idE > 00000000002e40d8 u _ZGVNSt7collateIwE2idE > (man nm says that 'u' is "unique global" and gnu extension) > > On musl system there is 'V' instead of 'u'. > Is my example falls under "glibc-built libstdc++.so.6"? Yes. Thanks for the report. It's fixed in git. Here is the original thread on "unique global" support in binutils: http://www.sourceware.org/ml/binutils/2009-06/msg00016.html With the latest git, the only symbol errors in glibc-built libstdc++ are the ones I described at the beginning of this thread: Error relocating .../libstdc++.so.6: __towlower_l: symbol not found Error relocating .../libstdc++.so.6: __nl_langinfo_l: symbol not found Error relocating .../libstdc++.so.6: __strxfrm_l: symbol not found Error relocating .../libstdc++.so.6: __towupper_l: symbol not found Error relocating .../libstdc++.so.6: __uselocale: symbol not found Error relocating .../libstdc++.so.6: __wcsxfrm_l: symbol not found Error relocating .../libstdc++.so.6: __strcoll_l: symbol not found Error relocating .../libstdc++.so.6: __wcscoll_l: symbol not found Error relocating .../libstdc++.so.6: __duplocale: symbol not found Error relocating .../libstdc++.so.6: __wcsftime_l: symbol not found Error relocating .../libstdc++.so.6: __newlocale: symbol not found Error relocating .../libstdc++.so.6: __strftime_l: symbol not found Error relocating .../libstdc++.so.6: __freelocale: symbol not found Error relocating .../libstdc++.so.6: __strtod_l: symbol not found Error relocating .../libstdc++.so.6: __strtof_l: symbol not found Error relocating .../libstdc++.so.6: __iswctype_l: symbol not found Error relocating .../libstdc++.so.6: strtold_l: symbol not found Error relocating .../libstdc++.so.6: __wctype_l: symbol not found (Pathnames elided to make this legible in email.) Rich