Entry
php installation problem - my_tempnam tempnam is dangerous
Feb 21st, 2007 04:26
Articles Hosting, web developers and php programmers, http://www.chrisranjana.com http://php.net/tempnam
I downloaded the latest snapshot i.e php4-STABLE-200211220430 today and
compliled using the options
./configure --with-mysql --with-gd=/usr/local
--with-png-dir=/downloads/libpng-1.2.5
--with-zlib-dir=/downloads/zlib-1.1.4
--with-apxs=/usr/local/apache/bin/apxs
--with-jpeg-dir=/downloads/jpeg-6b --with-mail --enable-track-vars
but still was getting the errors
ext/mysql/libmysql/my_tempnam.lo: In function `my_tempnam':
/downloads/php4-STABLE-
200211220430/ext/mysql/libmysql/my_tempnam.c:103:
the use of `tempnam' is dangerous, better use `mkstemp'
then I went to www.mysql.com and downloaded their latest binary
mysql-3.23.53a-pc-linux-gnu-i686.tar.gz and installed it into
/usr/local/mysql
and changed the configure options to
./configure --with-mysql=/usr/local/mysql --with-gd=/usr/local
--with-png-dir=/downloads/libpng-1.2.5
--with-zlib-dir=/downloads/zlib-1.1.4
--with-apxs=/usr/local/apache/bin/apxs
--with-jpeg-dir=/downloads/jpeg-6b --with-mail --enable-track-vars
note:- --with-mysql=/usr/local/mysql
and it compiled perfect
chris
http://www.chrisranjana.com
=====
http://php.net/tempnam
i hope that helps:
http://americanahost.com
http://www.qwesz.com