Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Sep 2009 18:59:06 +0000
From:      Eir Nym <eirnym@gmail.com>
To:        Lapo Luchini <lapo@lapo.it>
Cc:        freebsd-ports-bugs@freebsd.org, linimon@freebsd.org
Subject:   Re: ports/134743: devel/Monotone and pthreaded dependencies
Message-ID:  <ac29a5e50909151159r63e0bdc3v78eeb05cb6712b18@mail.gmail.com>
In-Reply-To: <4AAFDDAB.3090204@lapo.it>
References:  <200909151718.n8FHILLC036418@freefall.freebsd.org> <ac29a5e50909151021q280eef79rc70f82d7eda3cc96@mail.gmail.com> <4AAFDDAB.3090204@lapo.it>

next in thread | previous in thread | raw e-mail | index | archive | help
1) you can build SQLite3 with or without pthreads. yes, if phtreaded version
2) yes, if pthreaded version.
3) You use SQLite3 only with monotone? I use it also with other
applications. and there can be conflicts.

On 15/09/2009, Lapo Luchini <lapo@lapo.it> wrote:
> 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?
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ac29a5e50909151159r63e0bdc3v78eeb05cb6712b18>