Emergency case: Sybase
| From: | benjamin dot klein-fignier at ota dot fr dot socgen dot com | Date: | Wed, 30 Aug 2000 13:40:58 +0000 |
| Subject: | Emergency case: Sybase | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-14392@lists.php.net to get a copy of this message | ||
I red in the PHP 4.0.2 release notes that you fixed the sybase module. I still
don't manage to compile it with the NSAPI support.
my configuration cmd: ./configure --with-nsapi=/export/netscape/server4
--with-sybase=/home/sybase
I got an compilation error:
Making all in sybase
make[2]: Entering directory `/root/php-4.0.2/ext/sybase'
make[3]: Entering directory `/root/php-4.0.2/ext/sybase'
/bin/sh /root/php-4.0.2/libtool --silent --mode=compile gcc -I.
-I/root/php-4.0.2/ext/sybase -I/root/php-4.0.2 -I/root/php-4.0.2/main
-I/export/netscape/server4//plugins/include -I/root/php-4.0.2/Zend
-I/root/php-4.0.2 -I/usr/local/include/freetype -I/home/sybase/include
-I/root/php-4.0.2/ext/xml/expat/xmltok -I/root/php-4.0.2/ext/xml/expat/xmlparse
-I/root/php-4.0.2/TSRM -D_POSIX_PTHREAD_SEMANTICS -D_POSIX_PTHREAD_SEMANTICS
-D_REENTRANT -DXML_BYTE_ORDER=21 -I../TSRM -g -O2 -c php_sybase_db.c
php_sybase_db.c: In function `php_if_sybase_query':
php_sybase_db.c:781: `core_globals' undeclared (first use in this function)
php_sybase_db.c:781: (Each undeclared identifier is reported only once
php_sybase_db.c:781: for each function it appears in.)
make[3]: *** [php_sybase_db.lo] Error 1
make[3]: Leaving directory `/root/php-4.0.2/ext/sybase'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/php-4.0.2/ext/sybase'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/php-4.0.2/ext'
make: *** [all-recursive] Error 1
I think it's because the ZTS symbol is defined (actually it's needed by nsapi
module). I noticed that the sybase module works well when you compile php 4 as a
apxs module and when you do it, the ZTS symbol is not defined.
Do you have some idea or patch to correct this bug ? It's really important for
my company...
Thanks a lot,
Benjamin Klein-Fignier