From owner-freebsd-questions@FreeBSD.ORG Mon Apr 19 18:53:01 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 C04E01065689 for ; Mon, 19 Apr 2010 18:53:01 +0000 (UTC) (envelope-from prvs=0718cc3a79=johnl@iecc.com) Received: from gal.iecc.com (gal.iecc.com [64.57.183.53]) by mx1.freebsd.org (Postfix) with ESMTP id 6D5DE8FC18 for ; Mon, 19 Apr 2010 18:53:01 +0000 (UTC) Received: (qmail 62576 invoked from network); 19 Apr 2010 18:53:00 -0000 Received: from mail1.iecc.com (64.57.183.56) by mail1.iecc.com with QMQP; 19 Apr 2010 18:53:00 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=iecc.com; h=date:message-id:from:to:subject:in-reply-to:cc:mime-version:content-type:content-transfer-encoding; s=k1004; olt=johnl@user.iecc.com; bh=u1HuHxAZgrpKT5dlJamJuFWNfj9Ww2+tHBm1bMETnXc=; b=VqrKkcV4lNzMjkuQPc3OX4gXu9bcFCj88bEz5y+WDJs9ZOeVNBDd7b82Kfl4t+d0ZQSCgAhqZv/B/nALymV8B/IY22T74UXAINvK+lHSDgjyzyY842bfTQHTwjQNMe/JYIERWfPOG7qKciEyYeyU6s3nxRpkGtoK+3os/Vri364= Date: 19 Apr 2010 18:53:00 -0000 Message-ID: <20100419185300.55218.qmail@joyce.lan> From: John Levine To: freebsd-questions@freebsd.org In-Reply-To: <4BCC9E65.20904@FreeBSD.org> Organization: X-Headerized: yes Mime-Version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7bit Cc: glarkin@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 List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Apr 2010 18:53:01 -0000 I have the same problem, recently upgraded to PHP 5.3.2 and Apache was crashing whenever I tried to use a mediawiki page until I commented out the apc library. (Apache is 2.0, Freebsd is still 7.0, if that matters.) >cd /usr/ports >fetch http://people.freebsd.org/~glarkin/diffs/pecl-APC-3.1.3p1.diff >patch < pecl-APC-3.1.3p1.diff Didn't work, because pecl-APC is www/pecl-APC, not devel/pecl-APC. I edited the patch to be www/ rather than devel/ at which point the patch applied but make failed due to one of the other patches: ===> Patching for pecl-APC-3.1.3.p1 ===> Applying FreeBSD patches for pecl-APC-3.1.3.p1 1 out of 2 hunks failed--saving rejects to apc_sem.c.rej => Patch patch-apc_sem.c failed to apply cleanly. *** Error code 1 Here's what's in apc_sem.c.rej *************** *** 82,93 **** } } - if ((semid = semget(key, 1, IPC_CREAT | IPC_EXCL | perms)) >= 0) { /* sempahore created for the first time, initialize now */ arg.val = initval; if (semctl(semid, 0, SETVAL, arg) < 0) { apc_eprint("apc_sem_create: semctl(%d,...) failed:", semid); } } else if (errno == EEXIST) { /* sempahore already exists, don't initialize */ --- 82,97 ---- } } + if ((semid = semget(key, 2, IPC_CREAT | IPC_EXCL | perms)) >= 0) { /* sempahore created for the first time, initialize now */ arg.val = initval; if (semctl(semid, 0, SETVAL, arg) < 0) { apc_eprint("apc_sem_create: semctl(%d,...) failed:", semid); } + arg.val = getpid(); + if (semctl(semid, 1, SETVAL, arg) < 0) { + apc_eprint("apc_sem_create: semctl(%d,...) failed:", semid); + } } else if (errno == EEXIST) { /* sempahore already exists, don't initialize */ R's, John