Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Dec 2010 01:47:18 -0800
From:      Yuri <yuri@rawbw.com>
To:        freebsd-questions@freebsd.org
Subject:   Is Linux emulator not up-to-date and doesn't understand STB_GNU_UNIQUE binding?
Message-ID:  <4D1B03A6.6050704@rawbw.com>

next in thread | raw e-mail | index | archive | help
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)

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 UNIQUE replaces 10. It refers to the relatively 
newly introduced extension STB_GNU_UNIQUE, see here:
http://osdir.com/ml/general/2009-08/msg09809.html

Should Linux emulator be updated?

Yuri



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4D1B03A6.6050704>