From owner-freebsd-ports@FreeBSD.ORG Wed Apr 6 16:23:09 2005 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 21F5216A4CE; Wed, 6 Apr 2005 16:23:09 +0000 (GMT) Received: from strongbad.retrix.com (strongbad.retrix.com [64.69.86.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 98C7943D3F; Wed, 6 Apr 2005 16:23:08 +0000 (GMT) (envelope-from patrick@patrickg.com) Received: from [10.0.1.69] (S010600105a216efd.vc.shawcable.net [24.85.72.229]) (authenticated bits=0)j36GN4uU060640; Wed, 6 Apr 2005 09:23:05 -0700 (PDT) (envelope-from patrick@patrickg.com) Mime-Version: 1.0 (Apple Message framework v619.2) To: ale@FreeBSD.org Message-Id: <30150296671b14d09d7b96274903d805@patrickg.com> Content-Type: multipart/mixed; boundary=Apple-Mail-26--794091306 From: Patrick Gibson Date: Wed, 6 Apr 2005 09:22:58 -0700 X-Mailer: Apple Mail (2.619.2) cc: ports@FreeBSD.org Subject: FreeBSD Port: eaccelerator-0.9.2a X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Apr 2005 16:23:09 -0000 --Apple-Mail-26--794091306 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed Hi there, eaccelerator-0.92a causes httpd processes to segfault after every request. Although it does not affect serving the pages, it does cause for extra overhead for Apache to respawn new processes, and adds a lot of clutter to the logs. This happens because the fix by the eaccelerator team is only applied if GCC is 2.96+. FreeBSD 4.x uses 2.95, though their fix works fine if you tell it to use it. I applied the attached patch file into my eaccelerator port and have been using it successfully for over a month now. And it looks like it's working fine for someone else now, too: Patrick --- patrick gibson http://patrickgibson.com/ --Apple-Mail-26--794091306 Content-Transfer-Encoding: 7bit Content-Type: text/plain; x-unix-mode=0644; name="patch-eaccelerator.h" Content-Disposition: attachment; filename=patch-eaccelerator.h --- eaccelerator.h Mon Dec 27 15:15:15 2004 +++ eaccelerator.h-new Sun Mar 20 10:07:10 2005 @@ -37,7 +37,7 @@ #include "zend_extensions.h" /* Handle __attribute__ for nongcc compilers */ -#if (__GNUC__ >= 3) || ((__GNUC__ == 2) && (__GNUC_MINOR__ >= 96)) +#if (__GNUC__ >= 3) || ((__GNUC__ == 2) && (__GNUC_MINOR__ >= 95)) # define HAS_ATTRIBUTE #else # define __attribute__(x) --Apple-Mail-26--794091306--