Web Hosting Talk







View Full Version : Php !!!


ljncb
12-17-2003, 01:20 AM
Hallo guys,

I m tried to installed a PHP 4.3.1 to my Red Hat 9.0 machine. But when I make the php, an error occurred. But when I installed n compiled on other version of RH, its success.

So, does anyone know this version of PHP is suitable for RH 9.0???

Hope anyone can help me....tq !!!

radv
12-17-2003, 01:41 AM
Can you post the error?

Jay H
12-17-2003, 02:44 AM
Any particular reason for going with PHP 4.3.1? Also, the compilation error may be because you tried to compile php with a module(s) that isnt compatible. Like radv said, post the error, only way we can help.

ljncb
12-17-2003, 03:13 AM
tq for all the reply. Below is the error msg came out :

ext/mysql/libmysql/my_tempnam.o(.text+0x40): In function `my_tempnam':
/home/php-4.3.1/ext/mysql/libmysql/my_tempnam.c:103: the use of `tempnam' is dangerous, better use `mkstemp'
ext/mysql/libmysql/my_lib.o(.text+0x37a): In function `my_dir':
/home/php-4.3.1/ext/mysql/libmysql/my_lib.c:169: undefined reference to `errno'
ext/mysql/libmysql/my_lib.o(.text+0x546): In function `my_stat':
/home/php-4.3.1/ext/mysql/libmysql/my_lib.c:588: undefined reference to `errno'
ext/mysql/libmysql/my_malloc.o(.text+0xbd): In function `my_malloc':
/home/php-4.3.1/ext/mysql/libmysql/my_malloc.c:24: undefined reference to `errno'
ext/mysql/libmysql/my_realloc.o(.text+0xb4): In function `my_realloc':
/home/php-4.3.1/ext/mysql/libmysql/my_realloc.c:44: undefined reference to `errno'
ext/mysql/libmysql/my_delete.o(.text+0x6d): In function `my_delete':
/home/php-4.3.1/ext/mysql/libmysql/my_delete.c:16: undefined reference to `errno'
ext/mysql/libmysql/my_tempnam.o(.text+0x79):/home/php-4.3.1/ext/mysql/libmysql/my_tempnam.c:108: more undefined references to `errno' follow
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1

Hope can get the answer from u all....tq

mno
12-17-2003, 11:35 PM
I had similar when trying to compile PHP with SAPI and Pear and CLI. To get it to install, I disabled cli and disabled pear (you have to do both). Try that, it should work. Honestly, both are pretty much useless, although Pear is getting some good stuff in...