Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:15617 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 52337 invoked by uid 1010); 26 Mar 2005 02:20:22 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 52322 invoked from network); 26 Mar 2005 02:20:22 -0000 Received: from unknown (HELO pb1.pair.com) (127.0.0.1) by localhost with SMTP; 26 Mar 2005 02:20:22 -0000 X-Host-Fingerprint: 195.197.172.115 gw01.mail.saunalahti.fi Linux 2.4/2.6 Received: from ([195.197.172.115:37959] helo=gw01.mail.saunalahti.fi) by pb1.pair.com (ecelerity HEAD r(5268)) with SMTP id CA/B8-08971-5E6C4424 for ; Fri, 25 Mar 2005 21:20:22 -0500 Received: from nest.netphobia.fi (YZCLXVIII.dsl.saunalahti.fi [85.76.34.69]) by gw01.mail.saunalahti.fi (Postfix) with ESMTP id 5831DDE0E9; Sat, 26 Mar 2005 04:20:19 +0200 (EET) Received: from nest.netphobia.fi (nest.netphobia.fi [127.0.0.1]) by nest.netphobia.fi (8.13.1/8.13.1) with ESMTP id j2Q2KIHv030795; Sat, 26 Mar 2005 04:20:18 +0200 Received: from localhost (jani@localhost) by nest.netphobia.fi (8.13.1/8.13.1/Submit) with ESMTP id j2Q2KIZ4030792; Sat, 26 Mar 2005 04:20:18 +0200 X-Authentication-Warning: nest.netphobia.fi: jani owned process doing -bs Date: Sat, 26 Mar 2005 04:20:18 +0200 (EET) Reply-To: Jani Taskinen To: "Croker, Grant" Cc: internals@lists.php.net In-Reply-To: <08237065FA027340B731E57099097854037B9125@ukslms22.ca.com> Message-ID: References: <08237065FA027340B731E57099097854037B9125@ukslms22.ca.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: RE: [PHP-DEV] [PATCH] Bug #32333 - Unable to perform command line build with Ingres extension From: sniper@iki.fi (Jani Taskinen) It should work now, please test. --Jani On Mon, 21 Mar 2005, Croker, Grant wrote: >> Modified patch applied. No need to patch php_ii.h. >> >> --Jani > > the config.w32 in cvs does not work - running 'cscript /nologo > configure.js --with-ingres' (after running buildconf) generates the > following: > > > Checking for iiapi.h ... C:\Ingres[GC]\ingres\files > Checking for library iilibapi.lib ... > ..\..\..\..\Ingres[GC]\ingres\lib\iilibapi > .lib > C:\src\php\main\php-src\configure.js(986, 3) Microsoft JScript runtime > error: 'PHP_INGRES_II_SHARED' is undefined > > > the patch at the bottom corrects this, but building PHP fails with: > > internal_functions.c > main\internal_functions.c(54) : error C2065: 'phpext_ingres_ptr' : > undeclared identifier > main\internal_functions.c(54) : error C2099: initializer is not a > constant > NMAKE : fatal error U1077: '"cl.exe"' : return code '0x2' > Stop. > > the php_ingres.h in my original mail fixes this. At the moment the build > /configure process for windows and UNIX need bringing in to line. Until > then this kludge is needed. > > grant > > > ----start----- > Index: ext/ingres_ii/config.w32 > =================================================================== > RCS file: /repository/php-src/ext/ingres_ii/config.w32,v > retrieving revision 1.1 > diff -u -b -w -B -d -r1.1 config.w32 > --- ext/ingres_ii/config.w32 18 Mar 2005 23:24:14 -0000 1.1 > +++ ext/ingres_ii/config.w32 21 Mar 2005 10:47:18 -0000 > @@ -13,7 +13,7 @@ > if (CHECK_HEADER_ADD_INCLUDE("iiapi.h", > "CFLAGS_INGRES", ii_system + "\\ingres\\files;" + PHP_INGRES) && > CHECK_LIB("iilibapi.lib", "ingres", > ii_system + "\\ingres\\lib;" + PHP_INGRES)) { > AC_DEFINE('HAVE_II', 1); > - EXTENSION("ingres_ii","ii.c"); > + EXTENSION("ingres","ii.c"); > } else { > // ingres is missing files > WARNING("Ingres not enabled; libraries > and headers not found in " + ii_system); > -------end------- > >