Date: Tue, 11 Jan 2011 08:02:36 GMT From: Yuri <yuri@tsoft.com> To: freebsd-gnats-submit@FreeBSD.org Subject: misc/153887: Linux emulator not understand STB_GNU_UNIQUE binding Message-ID: <201101110802.p0B82aVs070126@red.freebsd.org> Resent-Message-ID: <201101110810.p0B8A9Wf049531@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 153887 >Category: misc >Synopsis: Linux emulator not understand STB_GNU_UNIQUE binding >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Jan 11 08:10:08 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Yuri >Release: 8.1-STABLE amd64 >Organization: n/a >Environment: >Description: I have the working app in Ubuntu. When I copy it to FreeBSD with all shared libs I get such message: app.linux: symbol lookup error: ../lib/libstdc++.so.6: undefined symbol: _ZNSt7num_getIcSt19istreambuf_iteratorIcSt11char_traitsIcEEE2idE, version GLIBCXX_3.4 ./lib/libstdc++.so.6 has been taken from Ubuntu (gcc-4.5.1). It was compiled there from gcc sources. Upon closer inspection I see that on FreeBSD: > readelf -aW ../lib/libstdc++.so.6 | grep _ZNSt7num_getIcSt19istreambuf_iteratorIcSt11char_traitsIcEEE2idE 1426: 000f30dc 4 OBJECT <OS specific>: 10 DEFAULT 26 _ZNSt7num_getIcSt19istreambuf_iteratorIcSt11char_traitsIcEEE2idE@@GLIBCXX_3.4 3380: 000f30dc 4 OBJECT <OS specific>: 10 DEFAULT 26 _ZNSt7num_getIcSt19istreambuf_iteratorIcSt11char_traitsIcEEE2idE But on Ubuntu the word 10 is replaced with UNIQUE. It refers to the relatively newly introduced extension STB_GNU_UNIQUE, see here: http://osdir.com/ml/general/2009-08/msg09809.html I think Linux emulator is outdated and needs to be updated. >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201101110802.p0B82aVs070126>