PHP 4.0 Bug #8418 Updated: ii.c (Ingres) fails to compile with gcc
| From: | mrodal99 at grm dot hia dot no | Date: | Thu, 28 Dec 2000 16:51:30 +0000 |
| Subject: | PHP 4.0 Bug #8418 Updated: ii.c (Ingres) fails to compile with gcc | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-42438@lists.php.net to get a copy of this message | ||
ID: 8418
User Update by: mrodal99@grm.hia.no
Old-Status: Feedback
Status: Open
Bug Type: Compile Failure
Description: ii.c (Ingres) fails to compile with gcc
My entire configuration line was "./configure --without-mysql --with-ingres
--with-apache=../apache_1.3.14", and if I don't have the "--with-ingres" in my
configuration line everything works (but I really, really need the ingres database access). As you
can see from my configure locates the ingres database (/opt/nmc/ingres/files) by it self so I dont
think that is the problem.
I also did some research and I think that the ingres header file (iiapi.h?) which ii.h (from php)
depends on havn't got the declaration of "IIAPI_AUTOPARM" (maybe a old version of
ingres). At the moment I havn't got access to the computer (it's at work and I'm home
for christmas), but I'll see if I can get hold of that "iiapi.h" file
Previous Comments:
---------------------------------------------------------------------------
[2000-12-28 09:07:15] sniper@php.net
What is the whole configure line you have used?
Is there anything unusual in config.log when
--with-ii is used? Does it work when it is not used?
--Jani
---------------------------------------------------------------------------
[2000-12-25 18:08:17] mrodal99@grm.hia.no
I just noticed that the configure program gives me an 'error':
Generating files
checking for working mkdir -p... yes
creating config_vars.mk
updating cache ./config.cache
creating ./config.status
creating php4.spec
creating Zend/Makefile
creating main/build-defs.h
creating pear/pear
creating pear/phpize
creating pear/php-config
creating pear/PEAR.php
creating TSRM/Makefile
creating sapi/apache/libphp4.module
creating main/php_config.h
creating sapi/Makefile
creating ext/Makefile
creating Makefile
mkdir: "": No such file or directory
creating pear/Makefile
creating main/Makefile
creating ext/ingres_ii/Makefile
creating ext/pcre/Makefile
creating ext/pcre/pcrelib/Makefile
creating ext/posix/Makefile
creating ext/session/Makefile
creating ext/standard/Makefile
creating ext/xml/Makefile
creating ext/xml/expat/Makefile
creating ext/xml/expat/xmlparse/Makefile
creating ext/xml/expat/xmltok/Makefile
creating sapi/apache/Makefile
creating regex/Makefile
creating main/internal_functions.c
Notice that "mkdir: "": No such file or directory" in there
---------------------------------------------------------------------------
[2000-12-25 17:10:45] mrodal99@grm.hia.no
I get the following error when I try to compile php 4.0.4 with the "--with-ingres"
support.
gcc -I. -I/opt/nmc/users/nmcadm/morten/php-4.0.4/ext/ingres_ii
-I/opt/nmc/users/nmcadm/morten/php-4.0.4/main -I/opt/nmc/users/nmcadm/morten/php-4.0.4
-I/opt/nmc/users/nmcadm/morten/apache_1.3.14/src/include
-I/opt/nmc/users/nmcadm/morten/apache_1.3.14/src/os/unix
-I/opt/nmc/users/nmcadm/morten/php-4.0.4/Zend -I/opt/nmc/ingres/files
-I/opt/nmc/users/nmcadm/morten/php-4.0.4/ext/xml/expat/xmltok
-I/opt/nmc/users/nmcadm/morten/php-4.0.4/ext/xml/expat/xmlparse
-I/opt/nmc/users/nmcadm/morten/php-4.0.4/TSRM -D_POSIX_PTHREAD_SEMANTICS -DXML_BYTE_ORDER=21 -g -O2
-c ii.c && touch ii.lo
ii.c: In function `_clean_ii_plink':
ii.c:191: `IIAPI_AUTOPARM' undeclared (first use in this function)
ii.c:191: (Each undeclared identifier is reported only once
ii.c:191: for each function it appears in.)
ii.c:191: parse error before `autoParm'
ii.c:200: `autoParm' undeclared (first use in this function)
ii.c: In function `php_if_ingres_autocommit':
ii.c:1350: `IIAPI_AUTOPARM' undeclared (first use in this function)
ii.c:1350: parse error before `autoParm'
ii.c:1363: `autoParm' undeclared (first use in this function)
*** Error code 1
make: Fatal error: Command failed for target `ii.lo'
Current working directory /opt/nmc/users/nmcadm/morten/php-4.0.4/ext/ingres_ii
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
As you can see there seems to be a problem in the "ii.c" file.
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=8418