Re: Compile error with 3.0.11 snmp.c on SGI IRIX 6.5
| From: | Steven Lawrance | Date: | Sun, 11 Jul 1999 14:00:03 +0000 |
| Subject: | Re: Compile error with 3.0.11 snmp.c on SGI IRIX 6.5 | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-8360@lists.php.net to get a copy of this message | ||
> > When compiling PHP 3.0.11 with SNMP support, the compiler (SGI's
proprietary
> > 64-bit compiler, presumably compiling 32-bit code with PHP due to the
year
> > 2039 bug) stops compiling when it comes across seven "return" statements
> > inside of void functions. This, I think, would probably cause any
compiler
> > to complain unless if that option is disabled. Removing the "return"
from
> > the statements fixed the problem and it compiled.
>
> The RETURN_* statements are necessary to control program flow. I
> don't see any reason why the compiler should complain, if he sees
> a macro such as RETURN_FALSE:
Yup, and the compiler accepted those. It complained about the lowercase
"return" statements, however, which technically are invalid when inside of a
void function. The latest version in the CVS tree had it fixed already, and
this was already reported in bug #1636. So it's already fixed, though the
3.0.11 distribution still has the snmp.c with the compile bugs in it :-(. I
guess the fixed one can be put into 3.0.12 ;-).
Thanks, and have a good day today :-)
--Steven Lawrance--
Personal Web Site and E-Mail:
slawrance@technologist.com
http://www.bryant.edu/~ssl2 (SSL2)