php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11575 Compile failure with Adabas v12
Submitted: 2001-06-20 07:09 UTC Modified: 2001-06-20 10:25 UTC
From: john_w_lloyd at yahoo dot co dot uk Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0.6-RC4 and 4.0.5 OS: Redhat V7.1
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: john_w_lloyd at yahoo dot co dot uk
New email:
PHP Version: OS:

 

 [2001-06-20 07:09 UTC] john_w_lloyd at yahoo dot co dot uk
# ./configure  --prefix=/usr/local --with-apache=/var/tmp/Apachetoolbox-1.5.30/apache_1.3.20 --enable-exif --enable-track-vars --with-calendar=shared --enable-safe-mode --enable-magic-quotes --enable-trans-sid --enable-wddx --enable-ftp --with-adabas=/usr/SAG/aad/v1200 --with-gd=/usr --with-openssl --with-pgsql


Check in "/var/tmp/Apachetoolbox-1.5.30/logs/php-compile.log" for errors.

[root@heimdall Apachetoolbox-1.5.30]# more logs/php-compile.log
Making all in Zend
make[1]: Entering directory `/var/tmp/Apachetoolbox-1.5.30/src/php-4.0.6RC4/Zend'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/var/tmp/Apachetoolbox-1.5.30/src/php-4.0.6RC4/Zend'
Making all in main
make[1]: Entering directory `/var/tmp/Apachetoolbox-1.5.30/src/php-4.0.6RC4/main'
make[2]: Entering directory `/var/tmp/Apachetoolbox-1.5.30/src/php-4.0.6RC4/main'
gcc  -I. -I/var/tmp/Apachetoolbox-1.5.30/src/php-4.0.6RC4/main -I/var/tmp/Apachetoolbox-1.5.30/src/php-4.0.6RC4/main -I/var/tm
p/Apachetoolbox-1.5.30/src/php-4.0.6RC4 -I/var/tmp/Apachetoolbox-1.5.30/apache_1.3.20/src/include -I/var/tmp/Apachetoolbox-1.5
.30/apache_1.3.20/src/os/unix -I/var/tmp/Apachetoolbox-1.5.30/src/php-4.0.6RC4/Zend -I/var/tmp/Apachetoolbox-1.5.30/src/php-4.
0.6RC4/ext/mysql/libmysql -I/usr/SAG/aad/v1200/incl -I/var/tmp/Apachetoolbox-1.5.30/src/php-4.0.6RC4/ext/xml/expat/xmltok -I/v
ar/tmp/Apachetoolbox-1.5.30/src/php-4.0.6RC4/ext/xml/expat/xmlparse -I/var/tmp/Apachetoolbox-1.5.30/src/php-4.0.6RC4/TSRM  -DS
UPPORT_UTF8 -DXML_BYTE_ORDER=12 -g -O2  -c internal_functions.c && touch internal_functions.lo
In file included from /var/tmp/Apachetoolbox-1.5.30/src/php-4.0.6RC4/ext/odbc/php_odbc.h:78,
                 from internal_functions.c:36:
/usr/SAG/aad/v1200/incl/sqlext.h:1951: parse error before `SQLHANDLE'
make[2]: *** [internal_functions.lo] Error 1
make[2]: Leaving directory `/var/tmp/Apachetoolbox-1.5.30/src/php-4.0.6RC4/main'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/Apachetoolbox-1.5.30/src/php-4.0.6RC4/main'
make: *** [all-recursive] Error 1

Then obviously make!


Thanks for your help.

John

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-20 10:25 UTC] kalowsky@php.net
fix your Adabas!

/usr/SAG/aad/v1200/incl/sqlext.h:1951: parse error before `SQLHANDLE'
make[2]: *** [internal_functions.lo] Error 1

the file sqlext.h is NOT provided by PHP, and this seems to be where your parse error is.  
 [2003-05-07 13:46 UTC] curtis dot nelson at acsalaska dot net
I belive the fix for this is to edit your sqlext.h file.  There was a missing if statement for this version.  The offending stanza (around 1951) should read:

#if (ODBCVER >= 0x0300)
#ifndef RC_INVOKED
SQLRETURN SQL_API SQLAllocHandleStd(
        SQLSMALLINT             fHandleType,
        SQLHANDLE               hInput,
        SQLHANDLE          *phOutput);
#endif /* RC_INVOKED */
#endif
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue May 06 06:01:29 2025 UTC