From owner-freebsd-current@freebsd.org Mon Aug 21 06:14:37 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5B5B2DEB1BB for ; Mon, 21 Aug 2017 06:14:37 +0000 (UTC) (envelope-from mizhka@gmail.com) Received: from mail-qt0-f181.google.com (mail-qt0-f181.google.com [209.85.216.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1E1492116; Mon, 21 Aug 2017 06:14:36 +0000 (UTC) (envelope-from mizhka@gmail.com) Received: by mail-qt0-f181.google.com with SMTP id b4so30348412qta.1; Sun, 20 Aug 2017 23:14:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=udq5miaGBOZNOBebiR8ppq0iqqeFwDr9KpdlKpGUzYU=; b=UxVLw2ra/DI3MTO1UsMUZoOKfDwYA58bdFuo4nvqghuBDi8/K725O840UvHiJ7J3qQ NWhdx4BXL8D/I1OcaYGXOXkYbsP7/wfFjUxGsFbkrw4A8F3u2qmCN6HP9fnBNHWyElI/ /7d7Xg0sAlCKffkx0PttOLmY0qjXCpUdeAUPIQkce8dt8xgZWGaLw+Du+tC1bt06MqPH B547LzDQBAMhRZasG5RaFlH4jdKJtp8ZdRRUtrDgfrII8TtMa3sECJUzr5HTo03+A/Ms SW0mFm4Oyg+cxF49KjP6MkdjMhoMlydA8mcFT5/dpMA86bMNyf+u9zo+fBt8Hg2yy7iM Ivow== X-Gm-Message-State: AHYfb5ic9jy0nqjPntEwXK2y6znCqNRApJbEMGUyJnqb37xV0smX3Mzm xdJXYQ/a8kummPIvAv0= X-Received: by 10.237.59.200 with SMTP id s8mr12882934qte.168.1503295636819; Sun, 20 Aug 2017 23:07:16 -0700 (PDT) Received: from mail-qt0-f174.google.com (mail-qt0-f174.google.com. [209.85.216.174]) by smtp.gmail.com with ESMTPSA id w46sm7907442qtc.16.2017.08.20.23.07.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 20 Aug 2017 23:07:15 -0700 (PDT) Received: by mail-qt0-f174.google.com with SMTP id v29so78103533qtv.3; Sun, 20 Aug 2017 23:07:15 -0700 (PDT) X-Received: by 10.200.44.143 with SMTP id 15mr11956531qtw.52.1503295635312; Sun, 20 Aug 2017 23:07:15 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.82.37 with HTTP; Sun, 20 Aug 2017 23:07:14 -0700 (PDT) In-Reply-To: <5EB2EB33-9701-469B-B953-4161DD3F2D99@FreeBSD.org> References: <5EB2EB33-9701-469B-B953-4161DD3F2D99@FreeBSD.org> From: Michael Zhilin Date: Mon, 21 Aug 2017 09:07:14 +0300 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [libelftc] internal library or not? To: David Chisnall Cc: Ed Maste , freebsd-current Current Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Aug 2017 06:14:37 -0000 Thank you, David! __cxa_demangle works fine [1] :) Best regards, Michael. [1] https://github.com/z0nt/pstack/pull/2/commits/8f45f92c63d385cd523d67f6ccbc436c7669f9d3 On Tue, Aug 1, 2017 at 6:22 PM, David Chisnall wrote: > On 1 Aug 2017, at 12:36, Michael Zhilin wrote: > > > > Hi Ed, freebsd-current, > > > > I want to add C++ demangling into sysutils/pstack. In man pages I've > found > > eltfc_demangle, exact what I need. This function belongs to libelftc. > "make > > installworld" installs man pages and include files, but there is no > > installed library. As results compilation error is occuried. > > Is pstack written in C++ or linking anything that is? If so, you will get > __cxa_demangle[1] provided by the C++ ABI library (libcxxrt on FreeBSD, > which currently uses the libelftc implementation, though might switch > soon). If not, adding -lcxxrt will provide it. > > David > > [1] https://itanium-cxx-abi.github.io/cxx-abi/abi.html#demangler