From owner-freebsd-questions@FreeBSD.ORG Wed Dec 29 09:47:19 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1B927106566B for ; Wed, 29 Dec 2010 09:47:19 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from shell0.rawbw.com (shell0.rawbw.com [198.144.192.45]) by mx1.freebsd.org (Postfix) with ESMTP id 088D78FC0C for ; Wed, 29 Dec 2010 09:47:18 +0000 (UTC) Received: from eagle.yuri.org (stunnel@localhost [127.0.0.1]) (authenticated bits=0) by shell0.rawbw.com (8.14.4/8.14.4) with ESMTP id oBT9jog4033778 for ; Wed, 29 Dec 2010 01:45:50 -0800 (PST) (envelope-from yuri@rawbw.com) Message-ID: <4D1B03A6.6050704@rawbw.com> Date: Wed, 29 Dec 2010 01:47:18 -0800 From: Yuri User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.16) Gecko/20101211 Thunderbird/3.0.11 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Is Linux emulator not up-to-date and doesn't understand STB_GNU_UNIQUE binding? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Dec 2010 09:47:19 -0000 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 : 10 DEFAULT 26 _ZNSt7num_getIcSt19istreambuf_iteratorIcSt11char_traitsIcEEE2idE@@GLIBCXX_3.4 3380: 000f30dc 4 OBJECT : 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