From:             tony dot moutaux at igbmc dot u-strasbg dot fr
Operating system: Solaris 8
PHP version:      5.1.1
PHP Bug Type:     Compile Failure
Bug description:  Sybase CT extension : make failed

Description:
------------
System : Solaris 8

Steps :
-setting environment variable LD_LIBRARY_PATH with the right path
-configure with option :
  --with-mysql=no
  --with-sybase-ct=/sybase/u/sybase/OCS-12_5
  --enable-track-vars
  --with-apxs2=/local/apache2.2.0/bin/apxs
  --prefix=/local/PHP5
  --disable-all

make returns :

/local/PHP5/php-5.1.1/ext/sybase_ct/php_sybase_ct.c: In function
`php_sybase_do_connect_internal':
/local/PHP5/php-5.1.1/ext/sybase_ct/php_sybase_ct.c:471: parse error
before `long'
/local/PHP5/php-5.1.1/ext/sybase_ct/php_sybase_ct.c:520: `packetsize'
undeclared (first use in this function)
/local/PHP5/php-5.1.1/ext/sybase_ct/php_sybase_ct.c:520: (Each undeclared
identifier is reported only once
/local/PHP5/php-5.1.1/ext/sybase_ct/php_sybase_ct.c:520: for each function
it appears in.)
*** Error code 1
make: Fatal error: Command failed for target
`ext/sybase_ct/php_sybase_ct.lo'

Reproduce code:
---------------
file ext/sybase_ct/php_sybase_ct.c

467  static int php_sybase_do_connect_internal(sybase_link *sybase, char
*host, char *user, char *passwd, char *chars
et, char *appname)
468  {
469          CS_LOCALE *tmp_locale;
470          TSRMLS_FETCH();
471          long packetsize;
472
473          /* set a CS_CONNECTION record */


-!!- same in last CVS as in 5.1.1 release source code

Actual result:
--------------
Solved by having packetsize declaration before TSRMLS_FETCH macro. That is
:

469          CS_LOCALE *tmp_locale;
470          long packetsize;
471          TSRMLS_FETCH();
472
473          /* set a CS_CONNECTION record */

Now compilation works.

-- 
Edit bug report at http://bugs.php.net/?id=35760&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=35760&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): 
http://bugs.php.net/fix.php?id=35760&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=35760&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=35760&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=35760&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=35760&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=35760&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=35760&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=35760&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=35760&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=35760&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=35760&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=35760&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=35760&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=35760&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=35760&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=35760&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=35760&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=35760&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=35760&r=mysqlcfg

Reply via email to