From owner-freebsd-ports@FreeBSD.ORG Tue Mar 21 18:12:54 2006 Return-Path: X-Original-To: freebsd-ports@freebsd.org 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 0C5CE16A424; Tue, 21 Mar 2006 18:12:54 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from mail26.syd.optusnet.com.au (mail26.syd.optusnet.com.au [211.29.133.167]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6537943D49; Tue, 21 Mar 2006 18:12:53 +0000 (GMT) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (c220-239-19-236.belrs4.nsw.optusnet.com.au [220.239.19.236]) by mail26.syd.optusnet.com.au (8.12.11/8.12.11) with ESMTP id k2LICp0N028418 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Wed, 22 Mar 2006 05:12:52 +1100 Received: from turion.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by turion.vk2pj.dyndns.org (8.13.4/8.13.4) with ESMTP id k2LICpSn019737; Wed, 22 Mar 2006 05:12:51 +1100 (EST) (envelope-from peter@turion.vk2pj.dyndns.org) Received: (from peter@localhost) by turion.vk2pj.dyndns.org (8.13.4/8.13.4/Submit) id k2LICpuU019736; Wed, 22 Mar 2006 05:12:51 +1100 (EST) (envelope-from peter) Date: Wed, 22 Mar 2006 05:12:51 +1100 From: Peter Jeremy To: freebsd-ports@freebsd.org Message-ID: <20060321181250.GA19701@turion.vk2pj.dyndns.org> References: <20060310094514.GA688@turion.vk2pj.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060310094514.GA688@turion.vk2pj.dyndns.org> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.11 Cc: ade@freebsd.org Subject: Re: Excessive startup times following libtool upgrade X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Mar 2006 18:12:54 -0000 On Fri, 2006-Mar-10 20:45:14 +1100, Peter Jeremy wrote: >I have rebuilt gnucash following the libtool upgrade (admittedly, I >had to downgrade guile to avoid an slib problem). After which gnucash >takes 15 minutes of system time to start (it used to take about a >minute), issuing a ridiculous number of syscalls (30K/sec). I've done >some poking around with ktrace and gdb and believe that the problem is >libtool trying to load shared libraries. Following a suggestion in -hackers by , I can confirm that the problem is a bug (lack of FreeBSD support) in libltdl. The fix is to set libltdl_cv_sys_dlopen_deplibs=yes in both guile and libltdl. After replacing libltdl and libguile-ltdl, gnucash startup has dropped from 15 minutes to 10 seconds. I'll file a PR this evening (if no-one has fixed it by then). -- Peter Jeremy