1 message in net.sourceforge.lists.courier-users[courier-users] FreeBSD and pthreads
FromSent OnAttachments
Brian CandlerDec 14, 2000 4:35 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[courier-users] FreeBSD and pthreadsActions...
From:Brian Candler (B.Ca@pobox.com)
Date:Dec 14, 2000 4:35:44 am
List:net.sourceforge.lists.courier-users

I have just noticed that Courier's autoconf has decided that pthreads are not available under FreeBSD.

Actually they are, but you have to use '-pthread' rather than '-lpthread'. Note from pthread(3):

INSTALLATION The current FreeBSD POSIX thread implementation is built in the library libc_r which contains both thread-safe libc functions and the thread functions. This library replaces libc for threaded applications.

By default, libc_r is built as part of a 'make world'. To disable the build of libc_r you must supply the '-DNOLIBC_R' option to make(1).

A FreeBSD specific option has been added to gcc to make linking threaded processes simple. gcc -pthread links a threaded process against libc_r instead of libc.

This is something you might want to add (although I don't think it actually affects me, as I'm only using imapd, pop3d, webmail and deliverquota)

Regards,

Brian.