From: ludovic dot noel at sgcib dot com Operating system: Linux RH AS PHP version: 4.3.3RC2 PHP Bug Type: Compile Failure Bug description: Compilation error when enabling sybase
Description: ------------ The same system with the same build line with PHP4.3.2 work with no errors. configure line : ./configure --prefix=/usr/local/sas/php-4.3.3RC2 --enable-dbx --enable-dio --enable-exif --enable-ftp --enable-gd-native-tt --enable-magic-quotes --enable-safe-mode --enable-sockets --enable-tokenizer --enable-track-vars --enable-trans-sid --enable-wddx --enable-xml --enable-yp --enable-calendar --enable-sockets --with-gd="/usr/local" --with-zlib --with-t1lib="/usr/local" --with-jpeg-dir="/usr/local" --with-png-dir="/usr/local" --with-zlib-dir="/usr/local" --with-ttf --with-freetype-dir="/usr/local" --with-sybase="/usr/local/sybase" --with-oracle="/usr/local/oracle/8.1.7" --with-apxs2=/usr/local/apache/bin/apxs >./resultat_compilation.txt Compilation Error : /usr/local/src/php-4.3.3RC2/ext/sybase/php_sybase_db.c: In function `php_sybase_do_connect': /usr/local/src/php-4.3.3RC2/ext/sybase/php_sybase_db.c:395: request for member `value' in something not a structure or union /usr/local/src/php-4.3.3RC2/ext/sybase/php_sybase_db.c: In function `zif_sybase_select_db': /usr/local/src/php-4.3.3RC2/ext/sybase/php_sybase_db.c:657: invalid type argument of `unary *' /usr/local/src/php-4.3.3RC2/ext/sybase/php_sybase_db.c: In function `zif_sybase_free_result': /usr/local/src/php-4.3.3RC2/ext/sybase/php_sybase_db.c:954: parse error before `if' /usr/local/src/php-4.3.3RC2/ext/sybase/php_sybase_db.c: At top level: /usr/local/src/php-4.3.3RC2/ext/sybase/php_sybase_db.c:955: parse error before `return' /usr/local/src/php-4.3.3RC2/ext/sybase/php_sybase_db.c:957: `sybase_result_index' undeclared here (not in a function) /usr/local/src/php-4.3.3RC2/ext/sybase/php_sybase_db.c:957: `type' undeclared here (not in a function) /usr/local/src/php-4.3.3RC2/ext/sybase/php_sybase_db.c:957: warning: initialization makes integer from pointer without a cast /usr/local/src/php-4.3.3RC2/ext/sybase/php_sybase_db.c:957: initializer element is not constant /usr/local/src/php-4.3.3RC2/ext/sybase/php_sybase_db.c:957: warning: data definition has no type or storage class /usr/local/src/php-4.3.3RC2/ext/sybase/php_sybase_db.c:959: parse error before `if' /usr/local/src/php-4.3.3RC2/ext/sybase/php_sybase_db.c:961: parse error before `->' /usr/local/src/php-4.3.3RC2/ext/sybase/php_sybase_db.c:963: parse error before `(' /usr/local/src/php-4.3.3RC2/ext/sybase/php_sybase_db.c:964: parse error before `->' /usr/local/src/php-4.3.3RC2/ext/sybase/php_sybase_db.c: In function `zif_sybase_result': /usr/local/src/php-4.3.3RC2/ext/sybase/php_sybase_db.c:1326: request for member `value' in something not a structure or union /usr/local/src/php-4.3.3RC2/ext/sybase/php_sybase_db.c: In function `zif_sybase_affected_rows': /usr/local/src/php-4.3.3RC2/ext/sybase/php_sybase_db.c:1370: invalid type argument of `->' /usr/local/src/php-4.3.3RC2/ext/sybase/php_sybase_db.c:1370: invalid type argument of `->' /usr/local/src/php-4.3.3RC2/ext/sybase/php_sybase_db.c:1370: incompatible types in initialization /usr/local/src/php-4.3.3RC2/ext/sybase/php_sybase_db.c:1370: incompatible types in assignment /usr/local/src/php-4.3.3RC2/ext/sybase/php_sybase_db.c:1370: invalid type argument of `unary *' /usr/local/src/php-4.3.3RC2/ext/sybase/php_sybase_db.c:1370: incompatible type for argument 1 of `_zval_copy_ctor' /usr/local/src/php-4.3.3RC2/ext/sybase/php_sybase_db.c:1370: invalid type argument of `->' /usr/local/src/php-4.3.3RC2/ext/sybase/php_sybase_db.c:1370: invalid type argument of `->' /usr/local/src/php-4.3.3RC2/ext/sybase/php_sybase_db.c:1370: incompatible type for argument 1 of `convert_to_long' /usr/local/src/php-4.3.3RC2/ext/sybase/php_sybase_db.c:1371: invalid type argument of `unary *' make: *** [ext/sybase/php_sybase_db.lo] Error 1 -- Edit bug report at http://bugs.php.net/?id=24965&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=24965&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=24965&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=24965&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=24965&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=24965&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=24965&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=24965&r=support Expected behavior: http://bugs.php.net/fix.php?id=24965&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=24965&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=24965&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=24965&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24965&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=24965&r=dst IIS Stability: http://bugs.php.net/fix.php?id=24965&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=24965&r=gnused