Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:60833 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 22560 invoked from network); 14 Jun 2012 16:27:17 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Jun 2012 16:27:17 -0000 Authentication-Results: pb1.pair.com smtp.mail=keisial@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=keisial@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.170 as permitted sender) X-PHP-List-Original-Sender: keisial@gmail.com X-Host-Fingerprint: 209.85.215.170 mail-ey0-f170.google.com Received: from [209.85.215.170] ([209.85.215.170:44480] helo=mail-ey0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 91/3E-39100-4E01ADF4 for ; Thu, 14 Jun 2012 12:27:17 -0400 Received: by eaal12 with SMTP id l12so659580eaa.29 for ; Thu, 14 Jun 2012 09:27:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=T3slYbIWuKgdk6BWHlxyWofgJhiP/9DycUGdqSGF0w4=; b=ojmRRSJc09oEJw4yd8ewn0ALEMJ4hXlxtShJh3X0/Xm4ZglDtBvV8mpOj9xj9ZtP+I yAEyHXJ5/bvUB1hZpHlwUX89IuIF+sFQuauJub3tDNjjosZMjQL/2SKt7ghFBgRFBmuW o6TqWl/AkHzDZ4aPdSmGxYnMMqbg2jBcaSH1l1K7sYWTKYk+8sQ4zqPs5+aRP5q9OBpS QP1Mkt2tXT5fCbhQHS1PkHfgzgLK369+pLJloUZlgZ37M070zPouCdZJINv6BrTwBtd7 P2Dw4FocbvO2iwt6sFsawWO8tLMCMp7/p9l7q87HZkSwtsAxflhTNNkWBPHj/t/esAE3 6mBg== Received: by 10.14.27.136 with SMTP id e8mr692657eea.156.1339691234401; Thu, 14 Jun 2012 09:27:14 -0700 (PDT) Received: from [192.168.1.26] (155.Red-88-13-201.dynamicIP.rima-tde.net. [88.13.201.155]) by mx.google.com with ESMTPS id p41sm21101647eef.5.2012.06.14.09.27.12 (version=SSLv3 cipher=OTHER); Thu, 14 Jun 2012 09:27:13 -0700 (PDT) Message-ID: <4FDA10CA.5060301@gmail.com> Date: Thu, 14 Jun 2012 18:26:50 +0200 User-Agent: Thunderbird MIME-Version: 1.0 To: Michael Felt CC: internals@lists.php.net References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Confusion on how to exclude embedded sqlite3 during make/build From: keisial@gmail.com (=?ISO-8859-1?Q?=C1ngel_Gonz=E1lez?=) On 14/06/12 00:58, Michael Felt wrote: > Hi. > > I am trying to compile php against httpd 2.4.2 - but before it gets > interesting I think I am having a different problem. > > The sqlite3 embedded in ./ext/sqlite3 returns a syntax error against vac.C > v11 compiler. > > data/prj/php-5.3.13/ext/sqlite3/sqlite3.c -o ext/sqlite3/sqlite3.lo > "/data/prj/php-5.3.13/ext/sqlite3/sqlite3.c", line 893.9: 1506-046 (S) > Syntax error. > "/data/prj/php-5.3.13/ext/sqlite3/sqlite3.c", line 894.41: 1506-045 (S) > Undeclared identifier i. > "/data/prj/php-5.3.13/ext/sqlite3/sqlite3.c", line 894.51: 1506-277 (S) > Syntax error: possible missing ';' or ','? > "/data/prj/php-5.3.13/ext/sqlite3/sqlite3.c", line 894.65: 1506-045 (S) > Undeclared identifier or. > make: 1254-004 The error code from the last command is 1. ext/sqlite3/sqlite3.c in php-5.3.13 only has comments at lines 893-894. (That's a big comment from 846 to 906). What do you have at those lines? As it mentions "Undeclared identifier or.", perhaps it's (wrongly) taking the slash at "and/or " as a "*/" ?? That would be very broken of a compiler... > Rather than try and solve that I compiled a separate sqlite3 version > root@x104:[/]sqlite3 -version > 3.6.22 > > However, even after make distclean and a new run of configure with the > following arguments - make still continues to try to compile the embedded > sqlite3. > > root@x104:[/data/prj/php-5.3.13]cat php_configure.ksh > #!/usr/bin/ksh > > set -x > > ./configure \ > --prefix=/opt \ > --sysconfdir=/etc \ > --mandir=/usr/share/man \ > --with-libdir=/opt/lib \ > --with-sqlite3=/opt \ > > build/aix/configure.out > > What am I doing wrong? Many thanks! Seems a problem in the sqlite3 extension config.m4, in that it has a depends rule on the libsqlite/sqlite3.c copy. A simple fix would be to copy the sqlite amalgamation that works for you over the php copy.