php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11967 scan_set_error_return MUST NOT be "inline"
Submitted: 2001-07-09 06:06 UTC Modified: 2001-10-26 10:16 UTC
From: emanuele dot lombardi at casaccia dot enea dot it Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0.6 OS: Compaq Tru64 Unix 5.1
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: emanuele dot lombardi at casaccia dot enea dot it
New email:
PHP Version: OS:

 

 [2001-07-09 06:06 UTC] emanuele dot lombardi at casaccia dot enea dot 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-10-23 09:08 UTC] sniper@php.net
Does this happen with latest CVS snapshot from http://snaps.php.net/ ?

--Jani

 [2001-10-26 10:15 UTC] emanuele dot lombardi at casaccia dot enea dot it
Dear Jani,

The snap of 200110260300 now compiles properly under Compaq Tru64
Unix  5.1A. 

I upgraded my O.S. from 5.1 to 5.1A,  but the reason why the compilation
now works is for sure the elimination you have done of the line 
	inline void scan_set_error_return(int numVars,pval **return_value);
from ext/standard/scanf.h


Thank you very much for your attention,
greetings from Italy,

Emanuele

 [2001-10-26 10:16 UTC] derick@php.net
Fixed -> closed
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue May 06 00:01:29 2025 UTC