From owner-freebsd-questions Fri Feb 28 2:43:32 2003 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 652DA37B401 for ; Fri, 28 Feb 2003 02:43:30 -0800 (PST) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1B53443FE3 for ; Fri, 28 Feb 2003 02:43:29 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [127.0.0.1]) by smtp.infracaninophile.co.uk (8.12.7/8.12.7) with ESMTP id h1SAhRAA023946 for ; Fri, 28 Feb 2003 10:43:27 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost) by happy-idiot-talk.infracaninophile.co.uk (8.12.7/8.12.7/Submit) id h1SAhROI023941 for questions@FreeBSD.ORG; Fri, 28 Feb 2003 10:43:27 GMT Date: Fri, 28 Feb 2003 10:43:27 +0000 From: Matthew Seaman To: questions@FreeBSD.ORG Subject: Re: mod_php4.3.1 + curl causing apache core Message-ID: <20030228104327.GC23502@happy-idiot-talk.infracaninophi> Mail-Followup-To: Matthew Seaman , questions@FreeBSD.ORG References: <20030227172800.M72175@www.gotbrains.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030227172800.M72175@www.gotbrains.org> User-Agent: Mutt/1.5.3i X-Spam-Status: No, hits=-32.5 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT_MUTT version=2.50 X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Feb 27, 2003 at 05:52:05PM -0600, Stephen Cravey wrote: > I just upgraded to php4.3.1 and i'm getting core dumps with > apache13-modssl when the php4 module and ssl modules load. I can recompile > without CURL support and everything is happy. The logs show no error > messages other than: > > Feb 27 17:00:20 www /kernel: pid 12468 (httpd), uid 0: exited on signal 11 (core dumped) > > php4 make shows: > > /usr/libexec/elf/ld: warning: libssl.so.2, needed by > /usr/local/lib/libcurl.so, may conflict with libssl.so.3 > > /usr/libexec/elf/ld: warning: libcrypto.so.2, needed by > /usr/local/lib/libcurl.so, may conflict with libcrypto.so.3 > > Anybody have any suggestions? > > I've also noticed that the apache13-modssl port installs the openssl port > instead of using the default openssl code. Could this be causing part of > the problem? The problem you're seeing is that some loadable modules in your apache have been linked against different versions of the openssl libraries. Part of the problem is the recent update to OpenSSL 0.9.7a in -STABLE due to some security bugs in the previous version: ftp://ftp.freebsd.org/pub/FreeBSD/CERT/advisories/FreeBSD-SA-03%3A02.openssl.asc which has resulted in a version bump to libssl.so.3 for the shlib in the core system. If you've updated recently you've probably got something like the following in /usr/lib: % ls -la /usr/lib/libssl.so* lrwxr-xr-x 1 root wheel 11 Feb 27 15:34 /usr/lib/libssl.so@ -> libssl.so.3 -r--r--r-- 1 root wheel 182856 Nov 22 18:44 /usr/lib/libssl.so.2 -r--r--r-- 1 root wheel 189544 Feb 27 15:34 /usr/lib/libssl.so.3 The apache13-modssl port will compile perfectly well against the libssl.so.3 version in the base system, as will the curl library (presumably as part of php) --- I have precisely that combination working here just fine myself. Unless you have a specific need for the ports version of OpenSSL, I'd recommend de-installing it, and recompiling all the ports that depend on it, so that they end up using the system version. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message