php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33474 MySQLi Compile Error
Submitted: 2005-06-25 18:07 UTC Modified: 2005-06-26 17:32 UTC
From: artooro at gmail dot com Assigned: georg (profile)
Status: Closed Package: MySQLi related
PHP Version: 5CVS-2005-06-25 (dev) OS: darwin8.1
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: artooro at gmail dot com
New email:
PHP Version: OS:

 

 [2005-06-25 18:07 UTC] artooro at gmail dot com
Description:
------------
When building PHP with mysqli I get this error:

/usr/bin/ld: warning multiple definitions of symbol _regcomp
/usr/sbin/httpd definition of _regcomp
/usr/lib/gcc/powerpc-apple-darwin8/4.0.0/../../../libm.dylib(regcomp.So) definition of _regcomp
/usr/bin/ld: warning multiple definitions of symbol _regexec
/usr/sbin/httpd definition of _regexec
/usr/lib/gcc/powerpc-apple-darwin8/4.0.0/../../../libm.dylib(regexec.So) definition of _regexec
/usr/bin/ld: warning multiple definitions of symbol _regfree
/usr/sbin/httpd definition of _regfree
/usr/lib/gcc/powerpc-apple-darwin8/4.0.0/../../../libm.dylib(regfree.So) definition of _regfree
/usr/bin/ld: Undefined symbols:
_zif_mysqli_get_warnings
_zif_mysqli_stmt_get_warnings
collect2: ld returned 1 exit status
make: *** [libs/libphp5.bundle] Error 1


GCC 4.0
Mac OS X 10.4.1 (darwin8.1)

I'll also note that PHP 5.1.0beta2 builds fine with mysqli.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-06-26 00:26 UTC] tony2001@php.net
Georg, it fails for me (and Ilia) too:

ext/mysqli/.libs/mysqli_fe.o(.data+0x3d8): undefined reference to `zif_mysqli_get_warnings'
ext/mysqli/.libs/mysqli_fe.o(.data+0x6bc): undefined reference to `zif_mysqli_stmt_get_warnings'
ext/mysqli/.libs/mysqli_fe.o(.data+0xa70): undefined reference to `zif_mysqli_get_warnings'
ext/mysqli/.libs/mysqli_fe.o(.data+0xec4): undefined reference to `zif_mysqli_stmt_get_warnings'
collect2: ld returned 1 exit status

It seems you forgot to commit something, because I can't find implementations of those functions at all.
Please check it out. Thanks.
 [2005-06-26 17:32 UTC] derick@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.

(Fixed by Georg)
 
PHP Copyright © 2001-2018 The PHP Group
All rights reserved.
Last updated: Fri Nov 16 11:01:25 2018 UTC