Mike Rambo ([EMAIL PROTECTED]):

> 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


-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to