From owner-freebsd-current@FreeBSD.ORG Fri Mar 26 07:41:40 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A451816A4CE for ; Fri, 26 Mar 2004 07:41:40 -0800 (PST) Received: from smtp-gw-cl-d.dmv.com (smtp-gw-cl-d.dmv.com [216.240.97.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3CAA343D3F for ; Fri, 26 Mar 2004 07:41:40 -0800 (PST) (envelope-from sven@dmv.com) Received: from lanshark.dmv.com (lanshark.dmv.com [216.240.97.46]) i2QFgHRv012475; Fri, 26 Mar 2004 10:42:18 -0500 (EST) (envelope-from sven@dmv.com) From: Sven Willenberger To: Clement Laforet In-Reply-To: <20040323185804.3bb159ce.sheepkiller@cultdeadsheep.org> References: <20040323185804.3bb159ce.sheepkiller@cultdeadsheep.org> Content-Type: text/plain Message-Id: <1080315634.13878.109.camel@lanshark.dmv.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Fri, 26 Mar 2004 10:40:34 -0500 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.39 cc: current@freebsd.org Subject: Re: Using libkse instead of libc_r in Apache X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Mar 2004 15:41:40 -0000 On Tue, 2004-03-23 at 12:58, Clement Laforet wrote: > On Mon, 22 Mar 2004 20:06:48 -0800 > "Dave Fetterman" wrote: > > > I'm running a (gasp!) Apache 2 server on a lab machine on which I do > > not have full access privileges. I'd like to use the worker MPM, > > which, from what I gather, requires using libkse instead of libc_r. > > Is there a good way to map use of libc_r to libkse or do something > > similar without modifying /etc/libmap.conf, just within my directory? > > Or, for any Apache gurus in the house, to configure Apache to use > > libkse instead of libc/libc_r? > > If you use the port, you can set WITH_PTHREAD_LIBS and > WITH_PTHREAD_CFLAGS which override default ones. > I use it to test apache2 with libthr. > > clem Will this work on a 5.2.1-Release system as well? running make WITH_PTHREAD_LIBS="libkse" WITH_PTHREAD_CFLAGS="-libkse" WITH_MPM=worker still results in apache linking libc_r: Checking for Threads... checking for CFLAGS needed for pthreads... -pthread adding "-pthread" to CFLAGS checking for LIBS needed for pthreads... -lc_r adding "-lc_r" to LIBS checking pthread.h usability... yes checking pthread.h presence... yes checking for pthread.h... yes checking whether pthread_getspecific takes two arguments... no checking whether pthread_attr_getdetachstate takes one argument... no checking for pthread_key_delete... yes checking for pthread_rwlock_init... yes checking for pthread_rwlock_t... yes APR will use threads using env PTHREAD_LIBS="libkse" etc doesn't work either .... #> ldd /usr/local/sbin/httpd /usr/local/sbin/httpd: libz.so.2 => /lib/libz.so.2 (0x280c9000) libssl.so.3 => /usr/lib/libssl.so.3 (0x280d7000) libcrypto.so.3 => /lib/libcrypto.so.3 (0x28109000) libaprutil-0.so.9 => /usr/local/lib/apache2/libaprutil-0.so.9 (0x28217000) libexpat.so.5 => /usr/local/lib/libexpat.so.5 (0x2822b000) libapr-0.so.9 => /usr/local/lib/apache2/libapr-0.so.9 (0x2824b000) libm.so.2 => /lib/libm.so.2 (0x2826a000) libcrypt.so.2 => /lib/libcrypt.so.2 (0x28283000) libc_r.so.5 => /usr/lib/libc_r.so.5 (0x2829c000) libc.so.5 => /lib/libc.so.5 (0x282c0000)