monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Monotone-devel] Re: issues when linking to a threaded sqlite library (?


From: Lapo Luchini
Subject: [Monotone-devel] Re: issues when linking to a threaded sqlite library (?)
Date: Tue, 22 Sep 2009 14:26:12 +0200
User-agent: Thunderbird 2.0.0.23 (X11/20090831)

Tero Koskinen wrote:
> 
> On OpenBSD, Botan brings the -pthread dependency to Monotone.
> It might be a similar issue on FreeBSD.
> 
> I think it is possible to build Botan without threads, but
> I haven't had time to figure out how to do it. (Simply
> adding -pthread to the Monotone linking flags was easier.)

Update: I have tested locally (with full success) a version of monotone
linked WITHOUT -pthread against a sqlite3 and a botan that are both
linked WITH -pthread.

It "simply works" because libc contains weak symbol stubs for most of
pthread functions which are used when the "real ones" are not found (as
is the case when the main executable is linked without -pthread).

This really needed a couple fixes (e.g. FreeBSD 6.x didn't have the stub
for pthread_equal and libsqlite3.so previously had a dependency on
libpthread) but seem to be working great.

I guess similar approach would work also on OpenBSD (and NetBSD, whose
monotone port is a bit old AFAICT... Dan, where are thou? ^_^).

-- 
Lapo Luchini - http://lapo.it/

“We could tell you what it's about. But then, of course, we'd have to
kill you.” (tagline of movie "Sneakers", 1992)

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]