From owner-freebsd-current@FreeBSD.ORG Tue Mar 23 08:10:06 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 ECE8C16A4CE for ; Tue, 23 Mar 2004 08:10:06 -0800 (PST) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id A5E6A43D48 for ; Tue, 23 Mar 2004 08:10:06 -0800 (PST) (envelope-from eischen@vigrid.com) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mail.pcnet.com (8.12.10/8.12.1) with ESMTP id i2NGA6tf005474; Tue, 23 Mar 2004 11:10:06 -0500 (EST) Date: Tue, 23 Mar 2004 11:10:06 -0500 (EST) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: Dave Fetterman In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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: Tue, 23 Mar 2004 16:10:07 -0000 On Mon, 22 Mar 2004, Dave Fetterman wrote: > Hey all, > > > > 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? Actually, in -current libkse is now libpthread, so that is probably what you want. You might be able to do this by playing with LD_LIBRARY_PATH. Create a directory with the following: $ mkdir ~/lib/i386 $ cp /usr/lib/libpthread.so.1 ~/lib/i386 $ ln -s ~/lib/i386/libpthread.so.1 ~/lib/i386/libpthread.so $ ln -s ~/lib/i386/libpthread.so.1 ~/lib/i386/libc_r.so.5 $ ln -s ~/lib/i386/libpthread.so.1 ~/lib/i386/libc_r.so The actual shared object name is built into the library, so I'm not sure if making links like this would work. You may have to rebuild libpthread with LIB=c_r (line 13 of src/lib/libpthread/Makefile). You can set LD_LIBRARY_PATH=/home/you/lib/i386 and then invoke apache. Do an 'ldd' on the apache executable to make sure that it is picking up the libraries in LD_LIBRARY_PATH. -- Dan Eischen