Re: php3 fails compile on RedHat 7.1
| From: | Jeremy Wadsack | Date: | Fri, 14 Sep 2001 18:30:13 +0000 |
| Subject: | Re: php3 fails compile on RedHat 7.1 | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-4299@lists.php.net to get a copy of this message | ||
Mike Rambo (mrambo@lsd.k12.mi.us):
> I have an application which at this time requires php3
> (http://www.hawkeye.net). I have the tarball for php-3.0.18 and have
> tried to compile it on RedHat 7.1 which fails with this error message.
> functions/file.o: In function 'php3_tempnam':
> /usr/local/src/php-3.0.18/functions/file.c:463 the use of 'tempnam' is
> dangerous, better use 'mkstemp'
> Ftp'ing the same tarball to a RedHat 6.2 box compiles with no problem at
> all. Makes it appear to me something with RedHat breaks php-3.0.18.
> Anyone have any ideas why this might be happening and/or any suggestion
> on how to get around this problem?
RedHat 7.x are known to ship with a broken (beta) version of the gcc
compiler. You might want to get a release version of that and update
it. Alternately you could change the file functions/file.c to use
mkstemp (and hope it's a drop-in replacement).
--
Jeremy Wadsack
Wadsack-Allen Digital Group