php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #44371 Extension compile failed
Submitted: 2008-03-08 12:34 UTC Modified: 2008-03-10 09:22 UTC
From: petr at hroch dot info Assigned: andrey (profile)
Status: Closed Package: MySQLi related
PHP Version: 5.3CVS-2008-03-08 (snap) OS: Linux Debian Etch 4.0
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: petr at hroch dot info
New email:
PHP Version: OS:

 

 [2008-03-08 12:34 UTC] petr at hroch dot info
Description:
------------
Extension compile failed using latest snaphshot

Actual result:
--------------
sit:/usr/install/src/php5.3-dev/ext/mysqli# make
/bin/sh /usr/install/src/php5.3-dev/ext/mysqli/libtool --mode=compile gcc  -I. -I/usr/install/src/php5.3-dev/ext/mysqli -DPHP_ATOM_INC -I/usr/install/src/php5.3-dev/ext/mysqli/include -I/usr/install/src/php5.3-dev/ext/mysqli/main -I/usr/install/src/php5.3-dev/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/include/mysql  -DHAVE_CONFIG_H  -g -O2   -c /usr/install/src/php5.3-dev/ext/mysqli/mysqli.c -o mysqli.lo
mkdir .libs
 gcc -I. -I/usr/install/src/php5.3-dev/ext/mysqli -DPHP_ATOM_INC -I/usr/install/src/php5.3-dev/ext/mysqli/include -I/usr/install/src/php5.3-dev/ext/mysqli/main -I/usr/install/src/php5.3-dev/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/include/mysql -DHAVE_CONFIG_H -g -O2 -c /usr/install/src/php5.3-dev/ext/mysqli/mysqli.c  -fPIC -DPIC -o .libs/mysqli.o
In file included from /usr/install/src/php5.3-dev/ext/mysqli/mysqli.c:31:
/usr/install/src/php5.3-dev/ext/mysqli/php_mysqli_structs.h:45:40: error: ext/mysqli/mysqli_libmysql.h: No such file or directory
/usr/install/src/php5.3-dev/ext/mysqli/mysqli.c: In function 'php_mysqli_dtor_p_elements':
/usr/install/src/php5.3-dev/ext/mysqli/mysqli.c:80: error: 'MYSQLI_CLOSE_IMPLICIT' undeclared (first use in this function)
/usr/install/src/php5.3-dev/ext/mysqli/mysqli.c:80: error: (Each undeclared identifier is reported only once
/usr/install/src/php5.3-dev/ext/mysqli/mysqli.c:80: error: for each function it appears in.)
/usr/install/src/php5.3-dev/ext/mysqli/mysqli.c: In function 'mysqli_link_free_storage':
/usr/install/src/php5.3-dev/ext/mysqli/mysqli.c:212: error: 'MYSQLI_CLOSE_IMPLICIT' undeclared (first use in this function)
make: *** [mysqli.lo] Error 1


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-03-08 14:17 UTC] petr at hroch dot info
Temporary workaround:

Open file ext/mysqli/mysqli_structs.h
change line 45: #include "ext/mysqli/mysqli_libmysql.h"
            to: #include "mysqli/mysqli_libmysql.h"

After that extension compiled successfully.

Regards
Petr
 [2008-03-08 14:19 UTC] petr at hroch dot info
Fix for my previous comment
---------------------------

Temporary workaround:

Open file ext/mysqli/mysqli_structs.h
change line 45: #include "ext/mysqli/mysqli_libmysql.h"
            to: #include "mysqli_libmysql.h"

After that extension compiled successfully.

Regards
Petr
 [2008-03-08 22:19 UTC] johannes@php.net
Assigning to primary maintainer
 [2008-03-10 09:22 UTC] andrey@php.net
Should be fixed in the next snapshot. If not, please reopen.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Dec 15 18:00:01 2025 UTC