From owner-freebsd-current@freebsd.org Tue Aug 1 15:22:43 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 BDABEDB0444 for ; Tue, 1 Aug 2017 15:22:43 +0000 (UTC) (envelope-from theraven@FreeBSD.org) Received: from theravensnest.org (xvm-110-62.dc2.ghst.net [46.226.110.62]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "theravensnest.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5EEDD7F331; Tue, 1 Aug 2017 15:22:42 +0000 (UTC) (envelope-from theraven@FreeBSD.org) Received: from c124.sec.cl.cam.ac.uk (c124.sec.cl.cam.ac.uk [128.232.18.124]) (authenticated bits=0) by theravensnest.org (8.15.2/8.15.2) with ESMTPSA id v71FMYfi081133 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 1 Aug 2017 15:22:34 GMT (envelope-from theraven@FreeBSD.org) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: [libelftc] internal library or not? From: David Chisnall In-Reply-To: Date: Tue, 1 Aug 2017 16:22:33 +0100 Cc: Ed Maste , freebsd-current@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <5EB2EB33-9701-469B-B953-4161DD3F2D99@FreeBSD.org> References: To: Michael Zhilin X-Mailer: Apple Mail (2.3273) 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: Tue, 01 Aug 2017 15:22:43 -0000 On 1 Aug 2017, at 12:36, Michael Zhilin wrote: >=20 > Hi Ed, freebsd-current, >=20 > 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=