Page 1 of 1

Trouble with install.... tempnam error

Posted: Tue Jan 14, 2003 12:30 am
by obz
Hello...

I'm trying to install PHP4.3.0 on Redhat8 I386.... Nothing too strange.... When I try and Make the installation files i get:
ext/mysql/libmysql/my_tempnam.lo: In function `my_tempnam':

/php-4.3.0/php-4.3.0/ext/mysql/libmysql/my_tempnam.c:103: the use of `tempnam' is dangerous, better use `mkstemp'

I read it may have something to do with mysql??

my config is ./configure --with-mysql --with-apxs2

Any help would be greatly appreciated... I'm trying to get my website back up and it needs PHP..

all the installs are the most current from apache, mysql and php....:roll:

thanks
-obz :

Posted: Tue Jan 14, 2003 5:02 am
by volka
sounds like a compiler warning not an error.
Maybe in later releases this will be replaced. Even if not until now it's seems to work ;)

Just compile a linux-kernel and glibc from the scratch with a recent gcc and you will see how many warnings there are :D

hmm.

Posted: Tue Jan 14, 2003 7:26 am
by obz
I don't know if it is a warning or an error... regardless...

is there a way to make the compiler ignore warnings and keep compiling? :roll:

Posted: Tue Jan 14, 2003 8:34 am
by volka
oops, if it really stops compiling it's not a warning.
Since it occurs in the mysql-extension you might try using the library already installed by mysql (if installed ;) ) e.g. with ./configure --with-mysql=/usr/local/mysql --with-apxs2 where /usr/local/mysql is only the dafault path and may vary on your system.