php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #46207 Compile Mysqli Failed
Submitted: 2008-10-01 04:04 UTC Modified: 2008-10-09 01:00 UTC
Votes:9
Avg. Score:4.2 ± 0.9
Reproduced:9 of 9 (100.0%)
Same Version:5 (55.6%)
Same OS:0 (0.0%)
From: freed1985 at 126 dot com Assigned:
Status: No Feedback Package: MySQLi related
PHP Version: 5.2.6 OS: Ubuntu 8.04
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: freed1985 at 126 dot com
New email:
PHP Version: OS:

 

 [2008-10-01 04:04 UTC] freed1985 at 126 dot com
Description:
------------
Extension compile failed

Reproduce code:
---------------
root@otaku-desktop:/home/otaku/php-5.2.6/ext/mysqli# sudo make


Actual result:
--------------
/bin/bash /home/otaku/php-5.2.6/ext/mysqli/libtool --mode=compile gcc  -I. -I/home/otaku/php-5.2.6/ext/mysqli -DPHP_ATOM_INC -I/home/otaku/php-5.2.6/ext/mysqli/include -I/home/otaku/php-5.2.6/ext/mysqli/main -I/home/otaku/php-5.2.6/ext/mysqli -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -I/usr/local/mysql/include/mysql  -DHAVE_CONFIG_H  -g -O2   -c /home/otaku/php-5.2.6/ext/mysqli/mysqli.c -o mysqli.lo 
mkdir .libs
 gcc -I. -I/home/otaku/php-5.2.6/ext/mysqli -DPHP_ATOM_INC -I/home/otaku/php-5.2.6/ext/mysqli/include -I/home/otaku/php-5.2.6/ext/mysqli/main -I/home/otaku/php-5.2.6/ext/mysqli -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -I/usr/local/mysql/include/mysql -DHAVE_CONFIG_H -g -O2 -c /home/otaku/php-5.2.6/ext/mysqli/mysqli.c  -fPIC -DPIC -o .libs/mysqli.o
/home/otaku/php-5.2.6/ext/mysqli/mysqli.c: In function 'zm_startup_mysqli':
/home/otaku/php-5.2.6/ext/mysqli/mysqli.c:643: error: 'MYSQL_RPL_MASTER' undeclared (first use in this function)
/home/otaku/php-5.2.6/ext/mysqli/mysqli.c:643: error: (Each undeclared identifier is reported only once
/home/otaku/php-5.2.6/ext/mysqli/mysqli.c:643: error: for each function it appears in.)
/home/otaku/php-5.2.6/ext/mysqli/mysqli.c:644: error: 'MYSQL_RPL_SLAVE' undeclared (first use in this function)
/home/otaku/php-5.2.6/ext/mysqli/mysqli.c:645: error: 'MYSQL_RPL_ADMIN' undeclared (first use in this function)
make: *** [mysqli.lo] ???? 1


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-10-01 20:13 UTC] johannes@php.net
What's your configure line and which version of libmysql do you have installed?
 [2008-10-09 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2008-11-25 03:54 UTC] jwhitman at jwnetsource dot com
/usr/ports/databases/php5-mysqli/work/php-5.2.6/ext/mysqli/mysqli.c:643: error: (Each undeclared identifier is reported only once
/usr/ports/databases/php5-mysqli/work/php-5.2.6/ext/mysqli/mysqli.c:643: error: for each function it appears in.)
/usr/ports/databases/php5-mysqli/work/php-5.2.6/ext/mysqli/mysqli.c:644: error: 'MYSQL_RPL_SLAVE' undeclared (first use in this function)
/usr/ports/databases/php5-mysqli/work/php-5.2.6/ext/mysqli/mysqli.c:645: error: 'MYSQL_RPL_ADMIN' undeclared (first use in this function)
*** Error code 1

Stop in /usr/ports/databases/php5-mysqli/work/php-5.2.6/ext/mysqli.
*** Error code 1

Stop in /usr/ports/databases/php5-mysqli.
*** Error code 1

Stop in /usr/ports/databases/phpmyadmin.
*** Error code 1

Stop in /usr/ports/databases/phpmyadmin.
 [2010-01-27 22:34 UTC] leftfoot at siu dot edu
libmyql: libmysqlclient.so.16 (mysql-5.5;php-5.2.12; Jan 26, 2010)
 [2010-01-27 22:46 UTC] leftfoot at siu dot edu
http://forums.freebsd.org/showthread.php?p=63484     January 20th, 2010

Offers a modification to mysql.h that adds a definition for the missing tags. Subsequent compilation is then successful.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 10:01:28 2024 UTC