Bug #11967 Updated: scan_set_error_return MUST NOT be "inline"
ID: 11967
Updated by: sniper
Reported By: emanuele.lombardi@casaccia.enea.it
Old Status: Open
Status: Feedback
Bug Type: Compile Failure
Operating System: Compaq Tru64 Unix 5.1
PHP Version: 4.0.6
New Comment:
Does this happen with latest CVS snapshot from http://snaps.php.net/ ?
--Jani
Previous Comments:
------------------------------------------------------------------------
[2001-07-09 06:06:24] emanuele.lombardi@casaccia.enea.it
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 this bug report at http://bugs.php.net/?id=11967&edit=1
Thread (5 messages)