From owner-freebsd-ports@FreeBSD.ORG Sat May 24 21:50:25 2003 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1948C37B401 for ; Sat, 24 May 2003 21:50:25 -0700 (PDT) Received: from cirb503493.alcatel.com.au (c18609.belrs1.nsw.optusnet.com.au [210.49.80.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id DBEF643F3F for ; Sat, 24 May 2003 21:50:23 -0700 (PDT) (envelope-from peterjeremy@optushome.com.au) Received: from cirb503493.alcatel.com.au (localhost.alcatel.com.au [127.0.0.1])h4P4oMp9041390 for ; Sun, 25 May 2003 14:50:22 +1000 (EST) (envelope-from jeremyp@cirb503493.alcatel.com.au) Received: (from jeremyp@localhost) by cirb503493.alcatel.com.au (8.12.8/8.12.8/Submit) id h4P4oLof041389 for freebsd-ports@freebsd.org; Sun, 25 May 2003 14:50:21 +1000 (EST) Date: Sun, 25 May 2003 14:50:21 +1000 From: Peter Jeremy To: freebsd-ports@freebsd.org Message-ID: <20030525045021.GA41260@cirb503493.alcatel.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i Subject: Debugging X11 Server X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 May 2003 04:50:25 -0000 [Please copy me in any followups] I'm trying to locate a performance problem in the X server built via ports on -STABLE. I thought that adding '-pg' would provide a simple way to locate the problematic code but whilst XFree86-4-Server compiles with '-pg', it won't run, dying with lots of unresolved '.mcount' symbols in /usr/X11R6/lib/modules/fonts/libbitmap.a (and I presume that's just the first archive it tries to load). I presume the problem is that the runtime loader in XServer can't resolve the .mcount that is statically loaded in XFree86. Does anyone have any suggestions on how to make this work? Peter