misc/153887: Linux emulator not understand STB_GNU_UNIQUE binding

Yuri yuri at tsoft.com
Tue Jan 11 08:10:09 UTC 2011


>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:


More information about the freebsd-bugs mailing list