ID: 23173 Comment by: lega_t at ngs dot ru Reported By: herps at raqtweak dot com Status: Bogus Bug Type: Compile Failure Operating System: RedHat 9.0 PHP Version: 4.3.1 New Comment:
I've added '#include <errno.h>' in the head of each ./php-4.3.1/ext/mysql/libmysql/*.c. I suppose it's a wrong way... But the source have been compiled! Previous Comments: ------------------------------------------------------------------------ [2003-05-28 03:09:19] cdlee at ms16 dot url dot com dot tw Does there has any suggestion about this problem! ------------------------------------------------------------------------ [2003-05-26 13:47:56] billjackson3 at msn dot com I'm currently having the same problem and am looking for a solution, I need mysql embedded with PHP... Thanks Bill ------------------------------------------------------------------------ [2003-04-11 15:58:00] [EMAIL PROTECTED] Please do not submit the same bug more than once. An existing bug report already describes this very problem. Even if you feel that your issue is somewhat different, the resolution is likely to be the same. Because of this, we hope you add your comments to the existing bug instead. Thank you for your interest in PHP. . ------------------------------------------------------------------------ [2003-04-11 14:17:22] herps at raqtweak dot com When I compile PHP 4.3.1 on RedHat 9.0 with Apache 2.0.45 with the following config: -- ./configure --prefix=/usr --with-apxs2=/etc/httpd/bin/apxs --enable-safe-mode --with-config-path=/etc/httpd --with-exec-dir=/usr/bin --with-zlib --enable-magic-quotes --enable-xml --enable-ftp --with-libdir=/usr/lib --with-ldap --with-mysql -- I constantly get the following when I run "make": ==== end_constants.lo Zend/zend_dynamic_array.lo Zend/zend_execute_API.lo Zend/zend_highlight.lo Zend/zend_llist.lo Zend/zend_opcode.lo Zend/zend_operators.lo Zend/zend_ptr_stack.lo Zend/zend_stack.lo Zend/zend_variables.lo Zend/zend.lo Zend/zend_API.lo Zend/zend_extensions.lo Zend/zend_hash.lo Zend/zend_list.lo Zend/zend_indent.lo Zend/zend_builtin_functions.lo Zend/zend_sprintf.lo Zend/zend_ini.lo Zend/zend_qsort.lo Zend/zend_multibyte.lo Zend/zend_execute.lo sapi/cli/php_cli.lo sapi/cli/getopt.lo main/internal_functions_cli.lo -lldap -llber -lz -lcrypt -lresolv -lm -ldl -lnsl -lcrypt -o sapi/cli/php ext/mysql/libmysql/my_tempnam.lo(.text+0x4c): In function `my_tempnam': /home/software/httpd/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.lo(.text+0x3d1): In function `my_dir': /home/software/httpd/php-4.3.1/ext/mysql/libmysql/my_lib.c:169: undefined reference to `errno' ext/mysql/libmysql/my_lib.lo(.text+0x5ef): In function `my_stat': /home/software/httpd/php-4.3.1/ext/mysql/libmysql/my_lib.c:588: undefined reference to `errno' ext/mysql/libmysql/my_malloc.lo(.text+0xde): In function `my_malloc': /home/software/httpd/php-4.3.1/ext/mysql/libmysql/my_malloc.c:24: undefined reference to `errno' ext/mysql/libmysql/my_realloc.lo(.text+0xd5): In function `my_realloc': /home/software/httpd/php-4.3.1/ext/mysql/libmysql/my_realloc.c:44: undefined reference to `errno' ext/mysql/libmysql/my_delete.lo(.text+0x86): In function `my_delete': /home/software/httpd/php-4.3.1/ext/mysql/libmysql/my_delete.c:16: undefined reference to `errno' ext/mysql/libmysql/my_tempnam.lo(.text+0x89):/home/software/httpd/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] Fout 1 ==== When I set it to --without-mysql everything works fine. I tried mySQL 3.53.54a and 4.0 Keeps failing right there... Any clues what so ever? ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=23173&edit=1