I am the maintainer of the FreeBSD port of apr.
Here is a patch that updates the configury checks for pthread flags in FreeBSD.
Have the threading/cond-var/socket race conditions been fixed in FreeBSD?
That is, does worker MPM from httpd-2.x function properly with multiple clients and multiple processes? We've seen that the pthread condition variables did not function properly when threading was enabled - this is why we had APR_SETIFNULL(enable_threads, [no]) as we were not confident in FreeBSD's reliability with threads. Please see STATUS entries in httpd-2.x regarding this.
Until that is confirmed, I'd highly recommend *not* enabling threads in FreeBSD - last we heard was that FreeBSD 4.x and 5.x were still broken. -- justin
