monit-general
[Top][All Lists]
Advanced

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

Re: pthreads and FreeBSD


From: Jan-Henrik Haukeland
Subject: Re: pthreads and FreeBSD
Date: 14 Aug 2002 00:17:37 +0200
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Civil Service)

Rory Toma <address@hidden> writes:

> Either I'm doing something horribly wrong, or monit doesn't work on
> FreeBSD at all. 

You must be doing something "horribly wrong". monit compiles and work
on FreeBSD last I checked. (That is the released 2.5 version)

> Can someone give me a good pointer on getting pthreads to work on
> FreeBSD? I can't even find a package for it.

If I'm not mistaken the pthread support on FreeBSD is provided via the
libc or a threaded version of it. You won't find a libpthread.so on
FreeBSD, instead check out libc_r (the threaded version of libc). To
activate thread support we use the following switch in the Makefile:
-pthread. I compiled and tested on sourceforge's FreeBSD without any
problems (it was not a very extensive test though). 

-- 
Jan-Henrik Haukeland




reply via email to

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