php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #23173 --with-mysql constantly fails
Submitted: 2003-04-11 14:17 UTC Modified: 2003-04-11 15:58 UTC
From: herps at raqtweak dot com Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4.3.1 OS: RedHat 9.0
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: herps at raqtweak dot com
New email:
PHP Version: OS:

 

 [2003-04-11 14:17 UTC] 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?



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-04-11 15:58 UTC] georg@php.net
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-05-26 13:47 UTC] 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-05-28 03:09 UTC] cdlee at ms16 dot url dot com dot tw
Does there has any suggestion about this problem!
 [2003-07-02 17:55 UTC] lega_t at ngs dot ru
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!
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 09:01:27 2024 UTC