php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21469 mysql module compile problem
Submitted: 2003-01-06 13:21 UTC Modified: 2003-01-06 13:51 UTC
From: stevew at uis dot net Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4.3.0 OS: Linux - Redhat 8
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: stevew at uis dot net
New email:
PHP Version: OS:

 

 [2003-01-06 13:21 UTC] stevew at uis dot net
This has been going on for the last few version updates. I am having to compile with the inhouse mysql client stuff on one server but I am unable to do that because of the following error in the make process. 

ext/mysql/libmysql/my_tempnam.lo: In function `my_tempnam':
/home/blahblah/temp/php-4.3.0/ext/mysql/libmysql/my_tempnam.c:103: the use of `tempnam' is dangerous, better use `mkstemp'

My configure string is:
./configure --enable-force-cgi-redirect --enable-pic --with-bz2 --with-curl --with-freetype-dir=/usr --with-png-dir=/usr --with-gd --enable-gd-native-ttf --with-ttf --with-gdbm --with-gettext --with-png --with-pspell --with-jpeg-dir=/usr --with-kerberos=/usr/kerberos --with-xml --with-expat-dir=/usr --with-zlib --with-layout=GNU --enable-bcmath --enable-exif --with-imap=shared --with-pgsql=shared
--enable-bcmath --with-mysql --with-ftp --with-apxs=/apache/bin/apxs

The last version I was able to compile without this error which I am still running because of this was:
PHP Version 4.2.3

Any help on this would be appreciated.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-01-06 13:25 UTC] nicos@php.net
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. Because of this, we hope you add your comments
to the existing bug instead.

Thank you for your interest in PHP.
 [2003-01-06 13:51 UTC] philip@php.net
BTW, it's a very common warning and the compile ran fine. It's not fatal even though it may appear to be as it's the last line of output during compile.  I'm making a faq entry for this question as it sure comes up a lot :)
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Sep 15 13:00:02 2025 UTC