From owner-freebsd-questions@FreeBSD.ORG Fri Nov 20 12:25:34 2009 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 87B86106566B for ; Fri, 20 Nov 2009 12:25:34 +0000 (UTC) (envelope-from freebsdlists@bsdunix.ch) Received: from conversation.bsdunix.ch (ns1.bsdunix.ch [82.220.1.90]) by mx1.freebsd.org (Postfix) with ESMTP id 415628FC1D for ; Fri, 20 Nov 2009 12:25:33 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by conversation.bsdunix.ch (Postfix) with ESMTP id CA1D85DD9; Fri, 20 Nov 2009 13:25:32 +0100 (CET) X-Virus-Scanned: by amavisd-new at mail.bsdunix.ch Received: from conversation.bsdunix.ch ([127.0.0.1]) by localhost (conversation.bsdunix.ch [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 7VfAvpCnPOXH; Fri, 20 Nov 2009 13:25:30 +0100 (CET) Received: from 192.168.1.2.local.home (dmhd.bsdunix.ch [82.220.17.25]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by conversation.bsdunix.ch (Postfix) with ESMTP id EB3755D9B; Fri, 20 Nov 2009 13:25:29 +0100 (CET) Mime-Version: 1.0 (Apple Message framework v1077) Content-Type: text/plain; charset=us-ascii From: Thomas Vogt In-Reply-To: Date: Fri, 20 Nov 2009 13:25:30 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <1AF62DFF-2D37-4FBA-B412-F1A33E7EF5ED@bsdunix.ch> References: <06CA3C3C-636B-4DC7-9B99-751B610B6263@bsdunix.ch> To: Mel Flynn X-Mailer: Apple Mail (2.1077) Cc: freebsd-questions@freebsd.org Subject: Re: Problem compiling php5 fro ports 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: Fri, 20 Nov 2009 12:25:34 -0000 Hi Am 20.11.2009 um 13:07 schrieb Mel Flynn: > On Fri, 20 Nov 2009 12:13:39 +0100, Thomas Vogt = > wrote: >> Hello >>=20 >> Maybe someone can help me. I try to compile several php5 extensions = from >> the ports. php5 compiles fine but every extension fails with the same >> error. >>=20 >> Example: php5-mcrypt >>=20 >> In file included from >> /usr/local/include/php/main/../main/php_config.h:2827, >> from /usr/local/include/php/Zend/zend_config.h:1, >> from /usr/local/include/php/Zend/zend.h:53, >> from /usr/local/include/php/main/php.h:34, >> from >>=20 > = /usr/ports/security/php5-mcrypt/work/php-5.2.11/ext/mcrypt/mcrypt.c:25: >> /usr/local/include/php/ext/php_config.h:1: error: expected '=3D', = ',', ';', >> 'asm' or '__attribute__' before 'file' >=20 > There shouldn't be anything declared there. What is line 1 of that = file? I didn't see it the first time. There was a comment on line 1. Maybe = from the last freebsd-update procedure. First line: Binary file /usr/local/include/php/ext/php_config.h.orig matches I removed it and now it works. Thanks Tom