From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 3 02:26:42 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4DB2516A4CE for ; Wed, 3 Dec 2003 02:26:42 -0800 (PST) Received: from oasis.uptsoft.com (oasis.uptsoft.com [217.20.165.41]) by mx1.FreeBSD.org (Postfix) with ESMTP id 67EEA43FE5 for ; Wed, 3 Dec 2003 02:26:35 -0800 (PST) (envelope-from devnull@oasis.uptsoft.com) Received: (from devnull@localhost) by oasis.uptsoft.com (8.11.6/linuxconf) id hB3AQXV01075 for freebsd-hackers@freebsd.org; Wed, 3 Dec 2003 12:26:33 +0200 Date: Wed, 3 Dec 2003 12:26:33 +0200 From: Sergey Lyubka To: freebsd-hackers@freebsd.org Message-ID: <20031203122633.B822@oasis.uptsoft.com> Mail-Followup-To: freebsd-hackers@freebsd.org References: <20031203121658.A822@oasis.uptsoft.com> <3FCDB996.4090603@netli.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <3FCDB996.4090603@netli.com>; from vlm@netli.com on Wed, Dec 03, 2003 at 02:23:18AM -0800 X-OS: FreeBSD 4.5-STABLE Subject: Re: dlopen() and -pg flag X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Dec 2003 10:26:42 -0000 Absolutely. thanks, that helps! On Wed, Dec 03, 2003 at 02:23:18AM -0800, Lev Walkin wrote: > > -pg on your system implies static linking. dlopen() is not available in > statically linked binaries on FreeBSD and many other systems. > > Consider building your binary dynamic by making sure there is a dynamic > version of libc with profiling support (something like /usr/lib/libc_p.so). > > Otherwise, there seems to be no obvious way to do it. >