php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #23176 the use of `tmpnam' is dangerous, better use `mkstemp'
Submitted: 2003-04-12 07:19 UTC Modified: 2003-04-12 13:17 UTC
From: oli dot brouckaert at i-services dot be Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4.3.1 OS: Linux Red Hat 7.2
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: oli dot brouckaert at i-services dot be
New email:
PHP Version: OS:

 

 [2003-04-12 07:19 UTC] oli dot brouckaert at i-services dot be
Hello,

when I try to compile php 4.3.0 and 4.3.1 I get this message error :

ldl -lnsl -lcrypt -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err  -o sapi/cli/php
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libc-client.a(osdep.o): In function `ssl_onceonlyinit':
/usr/src/build/41512-i386/BUILD/imap-2000c/c-client/auth_ssl.c:153: the use of `tmpnam' is dangerous, better use `mkstemp'

my configuration line is the following :

'./configure' '--with-apache=../apache_1.3.27' '--with-dbase' '--with-filepro' '--with-xml' '--enable-ftp' '--with-db' '--enable-bcmath' '--enable-calendar' '--with-jpeg-dir' '--with-png-dir' '--with-gd' '--enable-gd-native-ttf' '--with-freetype-dir' '--with-gettext' '--with-pgsql=/usr' '--with-mysql=/usr' '--with-zlib-dir' '--enable-trans-sid' '--with-imap' '--with-kerberos' '--with-imap-ssl' '--with-openssl' '--enable-sysvsem' '--enable-sysvshm'

I saw this error has already been reported but the warning stops the compilation, even if I use "make -i" or "make -k".

I tried to do "make install" to see if that works, but that doesn't :( Nothing is installed.

Notice : I don't have this bug with php 4.2.3

so if you can tell me how to install php4.3.1 ...

thanks

Olivier

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-04-12 13:17 UTC] sniper@php.net
Not PHP bug.

 [2003-05-14 16:50 UTC] sam at ims dot net
I don't see why this bus is marked bogus.  This problem is preventing me from compiling PHP with IMP support on Red Hat 7.2, all the latest updates.  This is very far from bogus, even if it's not officially a "PHP bug".  I'd very much appreciate hearing how to get PHP to compile with IMAP support when this fatal compiler "warning" results.  The key flag for me is --with-imap.  Without that flag, I do not get the compiler warning.  I'm compiling 4.3.0 or 4.3.1, same as originally reported by Olivier.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Tue Oct 06 22:00:02 2026 UTC