From owner-freebsd-questions@FreeBSD.ORG Thu Mar 18 02:44:52 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A073E16A4CE for ; Thu, 18 Mar 2004 02:44:52 -0800 (PST) Received: from antsrv1.ant.uni-bremen.de (antsrv1.ant.uni-bremen.de [134.102.176.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id D60CB43D2F for ; Thu, 18 Mar 2004 02:44:51 -0800 (PST) (envelope-from rebehn@ant.uni-bremen.de) Received: from bremerhaven.ant.uni-bremen.de ([134.102.176.10] helo=ant.uni-bremen.de) by antsrv1.ant.uni-bremen.de with esmtp (Exim 4.30; FreeBSD) id 1B3v18-000MIE-GP; Thu, 18 Mar 2004 11:44:50 +0100 Message-ID: <40597DA4.3060507@ant.uni-bremen.de> Date: Thu, 18 Mar 2004 11:44:52 +0100 From: Heinrich Rebehn User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040212 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Matthew Seaman References: <40582439.7060403@ant.uni-bremen.de> <20040317124000.GD26606@happy-idiot-talk.infracaninophile.co.uk> <405850A2.3060509@ant.uni-bremen.de> <20040317145808.GA29859@happy-idiot-talk.infracaninophile.co.uk> In-Reply-To: <20040317145808.GA29859@happy-idiot-talk.infracaninophile.co.uk> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: apache+mod_ssl + php4 crashes X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Mar 2004 10:44:52 -0000 Matthew Seaman wrote: > On Wed, Mar 17, 2004 at 02:20:34PM +0100, Heinrich Rebehn wrote: > > >>this is the ldd output: >> >>root@antsrv1 [/usr/local/libexec/apache] # ldd ./libphp4.so >>./libphp4.so: > > [...] > >> libc_r.so.5 => /usr/lib/libc_r.so.5 (0x287fd000) > > > Hmmmm... Which OS version are you building this on? If it's > 5.2.1-RELEASE, I think that libc_r.so.5 should be replaced by > libpthread.so.N -- and one exceedingly annoying problem is that in a > dynamically linked program like Apache, parts of it can end up being > linked against libpthread, and other parts can be linked against > libc_r, which will cause the whole thing to crash. > > One solution is to use /etc/libmap.conf to substiture libpthread for > libc_r during the dynamic link stage of program startup. See > libmap.conf(5). /etc/libmap.conf should contain something like: > > libpthread.so.1 libpthread.so.1 # Everything uses 'libpthread' > libpthread.so libpthread.so > > libc_r.so.5 libpthread.so.1 # Everything that uses 'libc_r' > libc_r.so libpthread.so # now uses 'libpthread' > > Of course, the ultimate solution is to fix all of the ports and > recompile them so that they automatically link against the correct > threading library. > > Cheers, > > Matthew > Hi Matthew, for some reason i do not have libpthread on my system: root@antsrv1 [~] # find /usr -name 'libpthread*' /usr/src/lib/libpthread /usr/compat/linux/lib/libpthread-0.9.so /usr/compat/linux/lib/libpthread.so.0 root@antsrv1 [~] # find /lib -name 'libpthread*' root@antsrv1 [~] # This is strange, because /usr/src/lib/libpthread exists. Should i simply go there and do 'make install' ? And yes, i use 5.2.1-RELEASE-p1. Your other suggestion about editing /etc/make.conf unfortunately did not help. Cheers, Heinrich