compiling with sybase support

From: Date: Thu, 07 Dec 2000 12:16:54 +0000
Subject: compiling with sybase support
Groups: php.install 
Request: Send a blank email to php-install+get-1087@lists.php.net to get a copy of this message
Hi, I am trying to compile php with support for sybase but i am encountering errors which i cannot seem to fix. The platform I am using is Sparc Solaris 7, iPlanet/Netscape Enterprise 4, and Sybase 11.9.2. I am trying to compile as an NSAPI module. I have had success as NSAPI both with and without MySQL support. I am using php 4.0.3pl1. there are a few questions that spring to mind. should i use --with-sybase or --with-sybase-ct (what is the difference?) when i configure with the options:- ./configure --with-nsapi=/usr/local/ns-home --with-sybase=/export/home/sybase --without-mysql i get the error make[3]: Leaving directory `/export/home/arg/sources/php-4.0.3pl1/ext/standard' make[2]: Leaving directory `/export/home/arg/sources/php-4.0.3pl1/ext/standard' Making all in sybase make[2]: Entering directory `/export/home/arg/sources/php-4.0.3pl1/ext/sybase' make[3]: Entering directory `/export/home/arg/sources/php-4.0.3pl1/ext/sybase' /bin/sh /export/home/arg/sources/php-4.0.3pl1/libtool --silent --mode=compile gcc -I. -I/export/home/arg/sources/php-4.0.3pl1/ext/sybase -I/ex port/home/arg/sources/php-4.0.3pl1 -I/export/home/arg/sources/php-4.0.3pl1/main -I/usr/local/ns-home/plugins/include -I/export/home/arg/sources /php-4.0.3pl1/Zend -I/export/home/arg/sources/php-4.0.3pl1 -I/export/home/sybase/include -I/export/home/arg/sources/php-4.0.3pl1/ext/xml/expat/ xmltok -I/export/home/arg/sources/php-4.0.3pl1/ext/xml/expat/xmlparse -I/export/home/arg/sources/php-4.0.3pl1/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 `/export/home/arg/sources/php-4.0.3pl1/ext/sybase' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/export/home/arg/sources/php-4.0.3pl1/ext/sybase' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/export/home/arg/sources/php-4.0.3pl1/ext' make: *** [all-recursive] Error 1 and when i use the --with-sybase-ct=/export/home/sybase instead of --with-sybase i get Making all in main make[1]: Entering directory `/export/home/arg/sources/php-4.0.3pl1/main' make[2]: Entering directory `/export/home/arg/sources/php-4.0.3pl1/main' gcc -I. -I/export/home/arg/sources/php-4.0.3pl1/main -I/export/home/arg/sources/php-4.0.3pl1 -I/export/home/arg/sources/php-4.0.3pl1/main -I/e xport/home/arg/sources/php-4.0.3pl1/Zend -I/export/home/arg/sources/php-4.0.3pl1 -I/export/home/arg/sources/php-4.0.3pl1/ext/mysql/libmysql -I/ export/home/sybase/include -I/export/home/arg/sources/php-4.0.3pl1/ext/xml/expat/xmltok -I/export/home/arg/sources/php-4.0.3pl1/ext/xml/expat/x mlparse -I/export/home/arg/sources/php-4.0.3pl1/TSRM -D_POSIX_PTHREAD_SEMANTICS -DXML_BYTE_ORDER=21 -g -O2 -c main.c && touch main.lo gcc -I. -I/export/home/arg/sources/php-4.0.3pl1/main -I/export/home/arg/sources/php-4.0.3pl1 -I/export/home/arg/sources/php-4.0.3pl1/main -I/e xport/home/arg/sources/php-4.0.3pl1/Zend -I/export/home/arg/sources/php-4.0.3pl1 -I/export/home/arg/sources/php-4.0.3pl1/ext/mysql/libmysql -I/ export/home/sybase/include -I/export/home/arg/sources/php-4.0.3pl1/ext/xml/expat/xmltok -I/export/home/arg/sources/php-4.0.3pl1/ext/xml/expat/x mlparse -I/export/home/arg/sources/php-4.0.3pl1/TSRM -D_POSIX_PTHREAD_SEMANTICS -DXML_BYTE_ORDER=21 -g -O2 -c internal_functions.c && touch i nternal_functions.lo In file included from /export/home/arg/sources/php-4.0.3pl1/ext/sybase_ct/php_sybase_ct.h:58, from internal_functions.c:33: /export/home/sybase/include/ctpublic.h:20: sqlda.h: No such file or directory make[2]: *** [internal_functions.lo] Error 1 make[2]: Leaving directory `/export/home/arg/sources/php-4.0.3pl1/main' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/export/home/arg/sources/php-4.0.3pl1/main' make: *** [all-recursive] Error 1 The missing sqlda.h header is something i have experienced before when compiling DBI/DBD perl modules for sybase which i got around by copying this header file from another sybase installation i have. (not ideal i know) If anyone has any ideas that could help me it would be much apreciated Andy *************************************************************************** CONFIDENTIALITY NOTICE The contents of this e-mail are confidential to the ordinary user of the e-mail address to which it was addressed, and may also be privileged. If you are not the addressee of this e-mail you may not copy, forward, disclose or otherwise use it or any part of it in any form whatsoever. If you have received this e-mail in error, please e-mail the sender by replying to this message. MTV Networks Europe ****************************************************************************

« previous php.install (#1087) next »