php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1748 Compiling with sybase-ct
Submitted: 1999-07-20 05:54 UTC Modified: 1999-07-21 04:55 UTC
From: simon at airdmhor dot gen dot nz Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0 Beta 1 OS: Linux RH6, 2.2.5-22 kernel
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: simon at airdmhor dot gen dot nz
New email:
PHP Version: OS:

 

 [1999-07-20 05:54 UTC] simon at airdmhor dot gen dot nz
Everything seems to configure fine (from my existing script), and PHP builds with no errors until sybase-ct.c, which shows:

make[2]: Entering directory `/usr/src/php-4.0b1/ext/sybase'
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../libzend -I../../TSRM -I/usr/src/apache_1.3.6/src/include -I/usr/src/apache_1.3.6/src/o
s/unix      -I/opt/sybase/include -I../.. -I../../libzend    -g -O2 -g -c sybase-ct.c
In file included from ../../libzend/zend.h:45,
                 from ../../php.h:36,
                 from sybase-ct.c:26:
../../libzend/zend_config.h:281: warning: `PACKAGE' redefined
../../php_config.h:518: warning: this is the location of the previous definition
../../libzend/zend_config.h:284: warning: `VERSION' redefined
../../php_config.h:521: warning: this is the location of the previous definition
sybase-ct.c:1318: macro `zend_hash_update' used with only 5 args
make[2]: *** [sybase-ct.o] Error 1
make[2]: Leaving directory `/usr/src/php-4.0b1/ext/sybase'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/php-4.0b1/ext'
make: *** [all-recursive] Error 1

The sybase is from the package available from their site : 11.0.3.3-2. If I build without sybase, everything seems okay.



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-07-20 06:50 UTC] simon at airdmhor dot gen dot nz
To fix these errors:

- remove the #include "php_config.h" from the start of ext/sybase/sybase.c and ext/sybase/sybase-ct.c
- add the comma missing before the NULL last parameter of sybase.c at line ~1318 (_php3_hash_update)
- remove the hashtable stuff from php3_sybct_get_default_link() and change the first parameter on php3_sybct_do_connect() to 0

Disclaimer: I'm not on the zend team, I just want to use it :)
 [1999-07-21 04:55 UTC] sas at cvs dot php dot net
Thanks for paying attention! Fixed in CVS. It'd be great, if all bug reports would include fixes.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Mon Oct 12 04:00:01 2026 UTC