From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Sep 15 18:59:04 2009 Return-Path: Delivered-To: freebsd-ports-bugs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 16973106566B for ; Tue, 15 Sep 2009 18:59:04 +0000 (UTC) (envelope-from lapo@lapo.it) Received: from mail.lapo.it (motoko.lapo.it [88.198.0.105]) by mx1.freebsd.org (Postfix) with ESMTP id 5B1048FC3A for ; Tue, 15 Sep 2009 18:59:03 +0000 (UTC) Received: (qmail 23611 invoked by uid 89); 15 Sep 2009 18:32:21 -0000 Received: from host71-40-static.74-81-b.business.telecomitalia.it (HELO ?10.0.0.1?) (lapo@lapo.it@81.74.40.71) by 0 with ESMTPA; 15 Sep 2009 18:32:21 -0000 Message-ID: <4AAFDDAB.3090204@lapo.it> Date: Tue, 15 Sep 2009 20:32:11 +0200 From: Lapo Luchini User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.5.0 MIME-Version: 1.0 To: Eir Nym References: <200909151718.n8FHILLC036418@freefall.freebsd.org> In-Reply-To: X-Enigmail-Version: 0.96.0 OpenPGP: id=C8F252FB Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: mnag@FreeBSD.org, freebsd-ports-bugs@freebsd.org, linimon@freebsd.org Subject: Re: ports/134743: devel/Monotone and pthreaded dependencies X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Sep 2009 18:59:04 -0000 Monotone is not multithreaded, but (as you told me) it better be linked with -pthread if linked versus sqlite which depends on -pthread; right now SQLite can be compiled both ways (with a negligible overhead, as far as I know; but if I'm wrong please tell me) but monotone's configure can't know that because `pkg-config sqlite3 --libs` doesn't advertise that (it does that only when --static); always using -pthread is what's done on other OSes (e.g. OpenBSD) and it's probably the easiest thing to do in the short period, but (maybe) not the best one in the long period. I'm adding mnag@ in Cc (as sqlite3 port maintainer) to ask him: 1. is it correct that `ldd /usr/local/lib/libsqlite3.so.8` shows libthr? 2. is it correct that `pkg-config sqlite3 --libs` doesn't advertise pthreads? upstream as: http://www.sqlite.org/cvstrac/tktview?tn=3943 3. also, can you tell me how much (if at all) overhead there is using SQLite with -pthreads in a program that's single-threaded? is it worth having an OPTION for that?