Trouble with install.... tempnam error

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
obz
Forum Newbie
Posts: 2
Joined: Tue Jan 14, 2003 12:30 am

Trouble with install.... tempnam error

Post 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 :
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post 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
obz
Forum Newbie
Posts: 2
Joined: Tue Jan 14, 2003 12:30 am

hmm.

Post 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:
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post 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.
Post Reply