Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Mar 2004 11:10:06 -0500 (EST)
From:      Daniel Eischen <eischen@vigrid.com>
To:        Dave Fetterman <davefet@microsoft.com>
Cc:        current@freebsd.org
Subject:   Re: Using libkse instead of libc_r in Apache
Message-ID:  <Pine.GSO.4.10.10403231100280.768-100000@pcnet5.pcnet.com>
In-Reply-To: <F017832B7371BB478368637D342F85060185B4BD@RED-MSG-33.redmond.corp.microsoft.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.10.10403231100280.768-100000>