#23176 [NEW]: the use of `tmpnam' is dangerous, better use `mkstemp'

From: Date: Sat, 12 Apr 2003 12:19:25 +0000
Subject: #23176 [NEW]: the use of `tmpnam' is dangerous, better use `mkstemp'
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-37595@lists.php.net to get a copy of this message
From:             oli dot brouckaert at i-services dot be
Operating system: Linux Red Hat 7.2
PHP version:      4.3.1
PHP Bug Type:     Compile Failure
Bug description:  the use of tmpnam' is dangerous, better use mkstemp'

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
-- 
Edit bug report at http://bugs.php.net/?id=23176&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=23176&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=23176&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=23176&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=23176&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=23176&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=23176&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=23176&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=23176&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=23176&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=23176&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23176&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=23176&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=23176&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=23176&r=gnused



Thread (3 messages)

« previous php.bugs (#37595) next »