From owner-freebsd-questions@FreeBSD.ORG Mon Apr 19 18:18:10 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A58B31065676 for ; Mon, 19 Apr 2010 18:18:10 +0000 (UTC) (envelope-from glarkin@FreeBSD.org) Received: from mail1.sourcehosting.net (113901-app1.sourcehosting.net [72.32.213.11]) by mx1.freebsd.org (Postfix) with ESMTP id 80FDE8FC17 for ; Mon, 19 Apr 2010 18:18:10 +0000 (UTC) Received: from 68-189-245-235.dhcp.oxfr.ma.charter.com ([68.189.245.235] helo=cube.entropy.prv) by mail1.sourcehosting.net with esmtp (Exim 4.69 (FreeBSD)) (envelope-from ) id 1O3vXs-0003Om-6C; Mon, 19 Apr 2010 14:18:09 -0400 Received: from [127.0.0.1] (fireball.entropy.prv [192.168.1.12]) by cube.entropy.prv (Postfix) with ESMTP id DAF923EA3D46; Mon, 19 Apr 2010 14:18:07 -0400 (EDT) Message-ID: <4BCC9E65.20904@FreeBSD.org> Date: Mon, 19 Apr 2010 14:18:13 -0400 From: Greg Larkin Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: Joe Auty References: <4BCC8E8C.80406@netmusician.org> <4BCC9364.2000404@FreeBSD.org> <4BCC968C.4000003@netmusician.org> In-Reply-To: <4BCC968C.4000003@netmusician.org> X-Enigmail-Version: 0.96.0 OpenPGP: id=1C940290 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Score: 0.1 (/) Cc: freebsd-questions@freebsd.org Subject: Re: Questions about port revision numbers, portsnap, csup X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: glarkin@FreeBSD.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Apr 2010 18:18:10 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Joe Auty wrote: > Greg Larkin wrote: >> Does pecl-APC not compile, or is it functionally broken after compiling >> succesfully? > It compiles, but once loaded it causes either Apache child processes to > segfault or abort traps depending on where the extension is listed in my > extensions.ini file. Apache itself is running fine, I don't have these > problems on non-PHP pages. Commenting out the apc.so in extensions.ini > makes Apache work again. I haven't done an extensive job of looking for > PHP extension conflicts just yet, but I've slowly been testing my PHP > extensions one by one on a test machine. I got as far as this: > >> extension=session.so >> extension=mysql.so >> extension=json.so >> extension=curl.so >> extension=openssl.so >> ;extension=apc.so > > apc.so is commented out because this was the point where I realized that > it was the culprit after this upgrade. So, I'd imagine that APC has some > sort of problem with PHP 5.3, or possibly one of these extensions? > >>> 2) Is there a way to look at the commit history of the ports I have >>> installed in /usr/ports so that I can verify whether or not I have the >>> revision with this particular fix? Thus far I've been relying on >>> freshports.org and trusting that doing a portsnap will always fetch the >>> latest stuff visible on freshports.org, but now I'm not so sure... >> Is /usr/ports/www/pecl-APC/files/patch-php_apc.c present on your >> machine? If so, then you have the latest commit. >> > Yeah, I have that file... I didn't know that the patch fixed compiling > problems, that was never my problem. > > Perhaps PHP 5.3 needs different APC related php.ini options or > something? I'm generally pretty lazy about doing a diff between the > stock config files and my own... > > I've been trying to no avail to get a good backtrace of my problem, > would that be useful to anybody? Should I keep at this? > > > Thanks for your help Greg! Hi Joe, I believe this is a compatibility problem with the 3.0.x version of the APC extension and PHP 5.3.2. I committed the compiler fix to CVS on 4/12 to get APC building again. I did this at the request of portmgr after the PHP 5.3.2 upgrade, but I didn't go far enough testing the changes. There is a beta version of APC available (3.1.3p1) that is PHP 5.3.2-compatible, and I have prepared a diff for you to try. Can you apply this file to your ports tree and rebuild like so: cd /usr/ports fetch http://people.freebsd.org/~glarkin/diffs/pecl-APC-3.1.3p1.diff patch < pecl-APC-3.1.3p1.diff mkdir /usr/ports/devel/pecl-APC/files/save-patches mv /usr/ports/devel/pecl-APC/files/patch-* \ /usr/ports/devel/pecl-APC/files/save-patches cd devel/pecl-APC make deinstall make clean make install Let me know how that goes, Greg - -- Greg Larkin http://www.FreeBSD.org/ - The Power To Serve http://www.sourcehosting.net/ - Ready. Set. Code. http://twitter.com/sourcehosting/ - Follow me, follow you -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iD8DBQFLzJ5k0sRouByUApARAihmAKCvwVT6DVUR7kNpI/HDc/rfJm197wCfYnYT FRNXpElWFPeLdsDrc9CAA5M= =/0Yu -----END PGP SIGNATURE-----