Re: 4.0.1pl2 Compile Errors: LONG_MAX undeclared
| From: | (Richard Lynch) | Date: | Thu, 06 Jul 2000 00:07:39 +0000 |
| Subject: | Re: 4.0.1pl2 Compile Errors: LONG_MAX undeclared | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-5109@lists.php.net to get a copy of this message | ||
In article <B5878EB8.9C74%waldo@waldo.net>, waldo@waldo.net ("Waldo L.
Jaquith") wrote:
> Folks,
>
> I'm compiling 4.0.1pl2 on Yellowdog Linux, Champion Server 1.2. (Well, I'm
> trying to.) I run a plain configure (no switches) and then a make. Make
> fails with:
>
> zend_hash.c: In function `zend_hash_add_or_update':
> zend_hash.c: 237: `LONG_MAX' undeclared (first use in this function)
> [...]
> make[1]: *** zend_hash.log] Error 1
> make: *** [all-recursive] Error 1
>
> Several lines of zend-hash.c fail with the same error, but that's just the
> first one. Normally, I'd try to change the source to get it to work. In
> this case, I'm not sure of what to change. Does anybody have any
> suggestions?
Wild Guess:
LONG_MAX is probably just another name for MAXINT, at least on most systems...
Maybe you could add something not unlike this:
#ifdef __YellowDog__
#define LONG_MAX MAXINT
#endif
Disclaimer: I'm assuming you know what belongs there for __YellowDog__,
since it probably ain't that...
--
Richard Lynch | If this was worth $$$ to you, buy a CD
US Customer Support Director | from one of the artists listed here:
Zend Technologies USA | http://www.L-I-E.com/artists.htm
http://www.zend.com | (this has nothing to do with Zend,
duh!)