#20768 [Com]: MySql temp file error
ID: 20768
Comment by: madmikey@unrealplayground.com
Reported By: jphp@netjunky.com
Status: Wont fix
Bug Type: Compile Failure
Operating System: Debian 3.0 Stable / Sparc
PHP Version: 4.3.0RC2
New Comment:
I had this same problem on RH 7.2. I know it's supposed to be a
warning, but the build stops right there everytime I used the
--with-mysql configure option.
After looking hard for a fix, I finally changed line 103 of
my_tempnam.c to read:
res=mkstemp((char*) dir); /* Use stand. dir with prefix */
Now I'm not a C programmer by any stretch, but I was able to compile
successfully and install. Everything appears to be working correctly.
Previous Comments:
------------------------------------------------------------------------
[2002-12-13 11:59:40] msopacua@php.net
does it stop the build or is it the last warning IN the build?
If it says "warning", there is no problem. Gcc 3.0x used to signal it
as an error and was quickly corrected. I hope you're not saying it's
status is back to "error" again, cause that would "not be very nice".
It's not a PHP problem either, when the gcc people decide to classify a
"MAY be used unsafe" statement, as an error.
------------------------------------------------------------------------
[2002-12-13 10:39:23] ben@thelocust.org
it may be a warning, and not an error, but it sure brings my build to a
halt every time -- i'm not gcc genius, but how should we get around
this? I'm using gcc 3.2.1, libtool 1.4.3, btw.
------------------------------------------------------------------------
[2002-12-02 13:26:55] derick@php.net
It's a warning, not an error.
------------------------------------------------------------------------
[2002-12-02 13:25:30] jphp@netjunky.com
It may be safe, but it stops the compile. I can't build with the code
as is.
------------------------------------------------------------------------
[2002-12-02 13:23:31] derick@php.net
It's harmless; just ignore it. The MySQL library uses it in a safe way
anyway.
Derick
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/20768
--
Edit this bug report at http://bugs.php.net/?id=20768&edit=1
Thread (8 messages)