Page 1 of 1

Problem with PHP 4.3.1 and Mandrake 9.1 Beta Rc2

Posted: Tue Mar 11, 2003 10:58 am
by ManDraK
I have just installed the Mandrake 9.1 beta Rc2.
But I have a problem while compiling PHP 4.3.1.
The make script returns :
ext/mysql/libmysql/my_tempnam.o(.text+0x40): In function `my_tempnam':
/Compilation/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+0x3c4): In function `my_dir':
/Compilation/php-4.3.1/ext/mysql/libmysql/my_lib.c:169: undefined reference to `errno'
ext/mysql/libmysql/my_lib.o(.text+0x5ab): In function `my_stat':
/Compilation/php-4.3.1/ext/mysql/libmysql/my_lib.c:588: undefined reference to `errno'
ext/mysql/libmysql/my_malloc.o(.text+0xb7): In function `my_malloc':
/Compilation/php-4.3.1/ext/mysql/libmysql/my_malloc.c:24: undefined reference to `errno'
ext/mysql/libmysql/my_realloc.o(.text+0xb0): In function `my_realloc':
/Compilation/php-4.3.1/ext/mysql/libmysql/my_realloc.c:44: undefined reference to `errno'
ext/mysql/libmysql/my_delete.o(.text+0x71): In function `my_delete':
/Compilation/php-4.3.1/ext/mysql/libmysql/my_delete.c:16: undefined reference to `errno'
ext/mysql/libmysql/my_tempnam.o(.text+0x78):/Compilation/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] Erreur 1
I have Mysql 3.23.55-1 installed and it works fine .
I don't know how to solve this , so if somebody could help me :D

Thanks

Posted: Wed May 14, 2003 1:12 pm
by docemmet
i had the exact same error,

did you find the solution? if yes, could you give the solution to me please?

Thank you

Emmet