ID: 27157 User updated by: detoma dot alessandro at sea-aeroportimilano dot it Reported By: detoma dot alessandro at sea-aeroportimilano dot it Status: Assigned Bug Type: Compile Failure Operating System: solaris 8 PHP Version: 4CVS, 5CVS Assigned To: thekid New Comment:
I have tried to compile with version 4.3.0 and with the latest version of php but nothing to do: with version 4.3.0 the error is the seguent: /bin/sh libtool --silent --mode=compile cc -Iext/sybase_ct/ -I/usr/local/src/php-4.3.0/ext/sybase_ct/ -DPHP_ATOM_INC -I/usr/local/src/php-4.3.0/include -I/usr/local/src/php-4.3.0/main -I/usr/local/src/php-4.3.0 -I/appl/apache/include -I/usr/local/src/php-4.3.0/Zend -I/usr/local/ssl/include -I/usr/local/include -I/oracle/product/8.1.7/rdbms/public -I/oracle/product/8.1.7/rdbms/demo -I/database/sybase/OCS-12_0/include -I/usr/local/src/php-4.3.0/ext/xml/expat -D_POSIX_PTHREAD_SEMANTICS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -I/usr/local/src/php-4.3.0/TSRM -DTHREAD=1 -g -mt -DZTS -prefer-pic -c /usr/local/src/php-4.3.0/ext/sybase_ct/php_sybase_ct.c -o ext/sybase_ct/php_sybase_ct.lo "/usr/local/src/php-4.3.0/ext/sybase_ct/php_sybase_ct.c", line 241: non-constant initializer: op "U&" "/usr/local/src/php-4.3.0/ext/sybase_ct/php_sybase_ct.c", line 241: non-constant initializer: op "U&" "/usr/local/src/php-4.3.0/ext/sybase_ct/php_sybase_ct.c", line 241: non-constant initializer: op "U&" "/usr/local/src/php-4.3.0/ext/sybase_ct/php_sybase_ct.c", line 241: non-constant initializer: op "U&" "/usr/local/src/php-4.3.0/ext/sybase_ct/php_sybase_ct.c", line 241: non-constant initializer: op "U&" "/usr/local/src/php-4.3.0/ext/sybase_ct/php_sybase_ct.c", line 242: non-constant initializer: op "U&" "/usr/local/src/php-4.3.0/ext/sybase_ct/php_sybase_ct.c", line 242: non-constant initializer: op "U&" "/usr/local/src/php-4.3.0/ext/sybase_ct/php_sybase_ct.c", line 242: non-constant initializer: op "U&" "/usr/local/src/php-4.3.0/ext/sybase_ct/php_sybase_ct.c", line 242: non-constant initializer: op "U&" "/usr/local/src/php-4.3.0/ext/sybase_ct/php_sybase_ct.c", line 242: non-constant initializer: op "U&" cc: acomp failed for /usr/local/src/php-4.3.0/ext/sybase_ct/php_sybase_ct.c *** Error code 1 make: Fatal error: Command failed for target `ext/sybase_ct/php_sybase_ct.lo' Best regards, Alex Previous Comments: ------------------------------------------------------------------------ [2004-02-08 11:45:35] [EMAIL PROTECTED] See if the following patch fixes it for you: http://sitten-polizei.de/php_sybase_ct.c.diff ------------------------------------------------------------------------ [2004-02-08 11:23:01] [EMAIL PROTECTED] Wait, I just saw the second compile failure shows lines 248 and 249 as where the errors occur. -- snip -- zval severity, msgnumber, state, line, text; zval *ptrs[5]= {&msgnumber, &severity, &state, &line, &text}; zval **args[5]= {&ptrs[0], &ptrs[1], &ptrs[2], &ptrs[3], &ptrs[4]}; -- snip -- OK, then this isn't related to ZTS and not to my recent changes either, as this code has been there (or a couple of lines before that) for quite a while now (revision 1.71 or PHP 4.3.0). ------------------------------------------------------------------------ [2004-02-08 11:07:20] [EMAIL PROTECTED] Compiles fine with --enable-maintainer-zts or without, problem seems to be related to --with-tsrm-pthreads. Line 241 reads the following: static int _call_message_handler(zval *callback_name, CS_SERVERMSG *srvmsg TSRMLS_DC) I can't see anything obviously wrong with this, it fits the scheme of numerous other function declarations in, for example, ext/standard. ------------------------------------------------------------------------ [2004-02-07 23:09:32] [EMAIL PROTECTED] Assigned to the maintainer.. ------------------------------------------------------------------------ [2004-02-05 09:41:18] detoma dot alessandro at sea-aeroportimilano dot it I'm sorry but latest version of php dosn't work properly. The following error occur. Thanks. /bin/sh /usr/local/src/php4-STABLE-200402051230/libtool --silent --preserve-dup-deps --mode=compile /usr/local/src/php4-STABLE-200402051230/meta_ccld -Iext/sybase_ct/ -I/usr/local/src/php4-STABLE-200402051230/ext/sybase_ct/ -DPHP_ATOM_INC -I/usr/local/src/php4-STABLE-200402051230/include -I/usr/local/src/php4-STABLE-200402051230/main -I/usr/local/src/php4-STABLE-200402051230 -I/usr/local/src/php4-STABLE-200402051230/Zend -I/usr/local/ssl/include -I/usr/local/include -I/oracle/product/8.1.7/rdbms/public -I/oracle/product/8.1.7/rdbms/demo -I/database/sybase/OCS-12_0/include -I/usr/local/src/php4-STABLE-200402051230/ext/xml/expat -D_POSIX_PTHREAD_SEMANTICS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -I/usr/local/src/php4-STABLE-200402051230/TSRM -DTHREAD=1 -g -mt -DZTS -prefer-pic -c /usr/local/src/php4-STABLE-200402051230/ext/sybase_ct/php_sybase_ct.c -o ext/sybase_ct/php_sybase_ct.lo "/usr/local/src/php4-STABLE-200402051230/ext/sybase_ct/php_sybase_ct.c", line 248: non-constant initializer: op "U&" "/usr/local/src/php4-STABLE-200402051230/ext/sybase_ct/php_sybase_ct.c", line 248: non-constant initializer: op "U&" "/usr/local/src/php4-STABLE-200402051230/ext/sybase_ct/php_sybase_ct.c", line 248: non-constant initializer: op "U&" "/usr/local/src/php4-STABLE-200402051230/ext/sybase_ct/php_sybase_ct.c", line 248: non-constant initializer: op "U&" "/usr/local/src/php4-STABLE-200402051230/ext/sybase_ct/php_sybase_ct.c", line 248: non-constant initializer: op "U&" "/usr/local/src/php4-STABLE-200402051230/ext/sybase_ct/php_sybase_ct.c", line 249: non-constant initializer: op "U&" "/usr/local/src/php4-STABLE-200402051230/ext/sybase_ct/php_sybase_ct.c", line 249: non-constant initializer: op "U&" "/usr/local/src/php4-STABLE-200402051230/ext/sybase_ct/php_sybase_ct.c", line 249: non-constant initializer: op "U&" "/usr/local/src/php4-STABLE-200402051230/ext/sybase_ct/php_sybase_ct.c", line 249: non-constant initializer: op "U&" "/usr/local/src/php4-STABLE-200402051230/ext/sybase_ct/php_sybase_ct.c", line 249: non-constant initializer: op "U&" cc: acomp failed for /usr/local/src/php4-STABLE-200402051230/ext/sybase_ct/php_sybase_ct.c *** Error code 1 make: Fatal error: Command failed for target `ext/sybase_ct/php_sybase_ct.lo' ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/27157 -- Edit this bug report at http://bugs.php.net/?id=27157&edit=1