From owner-freebsd-hackers@freebsd.org Sat Nov 3 16:22:58 2018 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BE50110DCB55 for ; Sat, 3 Nov 2018 16:22:58 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [IPv6:2001:470:7a58:1::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5F0F188C28 for ; Sat, 3 Nov 2018 16:22:58 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from [IPv6:2001:470:7a58::d46f:9b92:e1e6:6d2f] (unknown [IPv6:2001:470:7a58:0:d46f:9b92:e1e6:6d2f]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id BEA3115250; Sat, 3 Nov 2018 17:22:56 +0100 (CET) From: Dimitry Andric Message-Id: <71B23784-3BA5-4FB8-A3A0-A72BC2BC3A26@FreeBSD.org> Content-Type: multipart/signed; boundary="Apple-Mail=_B858BDE2-259A-4CFE-A493-6CCC3212C605"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: help with dl module and clang Date: Sat, 3 Nov 2018 17:22:52 +0100 In-Reply-To: <08A14290-0A6E-4002-892E-D4254EB23076@cs.huji.ac.il> Cc: freebsd-hackers@FreeBSD.org To: Daniel Braniss References: <4B8101F4-9A89-4486-8DF3-93DC799EF6D4@cs.huji.ac.il> <2E58B6A3-B3E4-4266-9B40-5F3D64433460@cs.huji.ac.il> <08A14290-0A6E-4002-892E-D4254EB23076@cs.huji.ac.il> X-Mailer: Apple Mail (2.3445.9.1) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Nov 2018 16:22:58 -0000 --Apple-Mail=_B858BDE2-259A-4CFE-A493-6CCC3212C605 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii On 3 Nov 2018, at 17:11, Daniel Braniss wrote: ... > ok, new problem, it also happens with gcc: > > when compiling the main program with flag -pg (gprof) > dlopen fails with dlerror: Service unavailable > > what magic is needed now? Usually, this occurs when you attempt to dlopen from a statically linked executable. Is this executable statically linked? -Dimitry --Apple-Mail=_B858BDE2-259A-4CFE-A493-6CCC3212C605 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.2 iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCW93LXAAKCRCwXqMKLiCW oxnwAKChVroTJp9sMvR5xMr5in18UEiybACgxMMpeyBlPZU0OnRcDtqHCRvVNBY= =RzyA -----END PGP SIGNATURE----- --Apple-Mail=_B858BDE2-259A-4CFE-A493-6CCC3212C605--