From: [EMAIL PROTECTED]
Operating system: Compaq Tru64 Unix 5.1
PHP version: 4.0.6
PHP Bug Type: Compile Failure
Bug description: scan_set_error_return MUST NOT be "inline"
compiling PHP under Tru64 Unix 5.1 (using cc) results in a error if in the
file
ext/standard/scanf.h
the function
scan_set_error_return(int numVars,pval **turn_value);
is defined "inline void" instead of simply "void".
/bin/sh /TI_a3/users/lele/php-4.0.6/libtool --silent --mode=compile cc -I.
-I/TI_a3/users/lele/php-4.0.6/ext/standard
-I/TI_a3/users/lele/php-4.0.6/main -I/TI_a3/users/lele/php-4.0.6
-I/usr/local/apache/include -I/TI_a3/users/lele/php-4.0.6/Zend
-I/TI_a3/users/lele/php-4.0.6/ext/mysql/libmysql
-I/TI_a3/users/lele/php-4.0.6/ext/xml/expat/xmltok
-I/TI_a3/users/lele/php-4.0.6/ext/xml/expat/xmlparse
-I/TI_a3/users/lele/php-4.0.6/TSRM -DOSF1 -DUSE_HSREGEX -DUSE_EXPAT
-DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 -g -c file.c
cc: Error: scanf.h, line 48: There is no definition for the inline function
named scan_set_error_return in this compilation unit. (noinlfunc)
inline void scan_set_error_return(int numVars,pval **return_value);
------------^
gmake[3]: *** [file.lo] Error 1
gmake[3]: Leaving directory `/TI_a3/users/lele/php-4.0.6/ext/standard'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/TI_a3/users/lele/php-4.0.6/ext/standard'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/TI_a3/users/lele/php-4.0.6/ext'
gmake: *** [all-recursive] Error 1
defining the function as follows
void scan_set_error_return(int numVars,pval **turn_value);
results in a clean compilation
--
Edit bug report at: http://bugs.php.net/?id=11967&edit=1
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]