php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #23773 Compiling Error in latest /ext/mysqli
Submitted: 2003-05-23 05:52 UTC Modified: 2003-05-25 15:46 UTC
Votes:2
Avg. Score:3.5 ± 0.5
Reproduced:1 of 2 (50.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: ag at inocreation dot com Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4CVS-2003-05-23 (stable) OS: Debian Linux 2.2
Private report: No CVE-ID: None
 [2003-05-23 05:52 UTC] ag at inocreation dot com
hi,

here is the "make" output of the latest PHP4 CVS Build.

In file included from /files/programs/php4/ext/mysqli/mysqli.c:31:
/files/programs/php4/ext/mysqli/php_mysqli.h:100: parse error before `mysqli_objects_new'
/files/programs/php4/ext/mysqli/php_mysqli.h:100: warning: data definition has no type or storage class
/files/programs/php4/ext/mysqli/mysqli.c:37: parse error before `mysqli_object_handlers'
/files/programs/php4/ext/mysqli/mysqli.c:37: warning: data definition has no type or storage class
/files/programs/php4/ext/mysqli/mysqli.c:73: parse error before `zend_object_handle'
/files/programs/php4/ext/mysqli/mysqli.c: In function `mysqli_objects_dtor':
/files/programs/php4/ext/mysqli/mysqli.c:75: `object' undeclared (first use in this function)
/files/programs/php4/ext/mysqli/mysqli.c:75: (Each undeclared identifier is reported only once
/files/programs/php4/ext/mysqli/mysqli.c:75: for each function it appears in.)
/files/programs/php4/ext/mysqli/mysqli.c:93: `handle' undeclared (first use in this function)
/files/programs/php4/ext/mysqli/mysqli.c: At top level:
/files/programs/php4/ext/mysqli/mysqli.c:107: parse error before `mysqli_objects_new'
/files/programs/php4/ext/mysqli/mysqli.c: In function `mysqli_objects_new':
/files/programs/php4/ext/mysqli/mysqli.c:109: `zend_object_value' undeclared (first use in this function)
/files/programs/php4/ext/mysqli/mysqli.c:109: parse error before `retval'
/files/programs/php4/ext/mysqli/mysqli.c:115: structure has no member named `in_get'
/files/programs/php4/ext/mysqli/mysqli.c:116: structure has no member named `in_set'
/files/programs/php4/ext/mysqli/mysqli.c:123: `retval' undeclared (first use in this function)
/files/programs/php4/ext/mysqli/mysqli.c: At top level:
/files/programs/php4/ext/mysqli/mysqli.c:157: `OnUpdateLong' undeclared here (not in a function)
/files/programs/php4/ext/mysqli/mysqli.c:157: initializer element is not constant
/files/programs/php4/ext/mysqli/mysqli.c:157: (near initialization for `ini_entries[0].on_modify')
/files/programs/php4/ext/mysqli/mysqli.c:161: `OnUpdateLong' undeclared here (not in a function)
/files/programs/php4/ext/mysqli/mysqli.c:161: initializer element is not constant
/files/programs/php4/ext/mysqli/mysqli.c:161: (near initialization for `ini_entries[4].on_modify')
/files/programs/php4/ext/mysqli/mysqli.c: In function `zm_startup_mysqli':
/files/programs/php4/ext/mysqli/mysqli.c:190: `zend_object_handlers' undeclared (first use in this function)
/files/programs/php4/ext/mysqli/mysqli.c:190: warning: passing arg 2 of `memcpy' makes pointer from integer without a cast
/files/programs/php4/ext/mysqli/mysqli.c:191: request for member `clone_obj' in something not a structure or union
/files/programs/php4/ext/mysqli/mysqli.c:191: `zend_objects_store_clone_obj' undeclared (first use in this function)
/files/programs/php4/ext/mysqli/mysqli.c:193: structure has no member named `create_object'
/files/programs/php4/ext/mysqli/mysqli.c:194: structure has no member named `create_object'
/files/programs/php4/ext/mysqli/mysqli.c:195: structure has no member named `create_object'
make: *** [ext/mysqli/mysqli.lo] Error 1

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-05-23 09:52 UTC] sniper@php.net
There is no php4/ HEAD..use php5/ module.

 [2003-05-25 06:36 UTC] ag at inocreation dot com
hi,

ok, but with the latest php5 snapshot I got the following error with "./configure --with-config-file-path=/etc --without-mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-apxs=/usr/local/apache/bin/apxs"

ext/xml/xml.lo: In function `zm_info_xml':
/files/programs/php5-200305251130/ext/xml/xml.c:267: undefined reference to `XML_ExpatVersion'
ext/xml/xml.lo: In function `xml_parser_dtor':
/files/programs/php5-200305251130/ext/xml/xml.c:325: undefined reference to `XML_ParserFree'
ext/xml/xml.lo: In function `php_xml_parser_create_impl':
/files/programs/php5-200305251130/ext/xml/xml.c:1063: undefined reference to `XML_ParserCreate_MM'
/files/programs/php5-200305251130/ext/xml/xml.c:1069: undefined reference to `XML_SetUserData'
ext/xml/xml.lo: In function `zif_xml_set_element_handler':
/files/programs/php5-200305251130/ext/xml/xml.c:1144: undefined reference to `XML_SetElementHandler'
ext/xml/xml.lo: In function `zif_xml_set_character_data_handler':
/files/programs/php5-200305251130/ext/xml/xml.c:1163: undefined reference to `XML_SetCharacterDataHandler'
ext/xml/xml.lo: In function `zif_xml_set_processing_instruction_handler':
/files/programs/php5-200305251130/ext/xml/xml.c:1182: undefined reference to `XML_SetProcessingInstructionHandler'
ext/xml/xml.lo: In function `zif_xml_set_default_handler':
/files/programs/php5-200305251130/ext/xml/xml.c:1200: undefined reference to `XML_SetDefaultHandler'
ext/xml/xml.lo: In function `zif_xml_set_unparsed_entity_decl_handler':
/files/programs/php5-200305251130/ext/xml/xml.c:1219: undefined reference to `XML_SetUnparsedEntityDeclHandler'
ext/xml/xml.lo: In function `zif_xml_set_notation_decl_handler':
/files/programs/php5-200305251130/ext/xml/xml.c:1237: undefined reference to `XML_SetNotationDeclHandler'
ext/xml/xml.lo: In function `zif_xml_set_external_entity_ref_handler':
/files/programs/php5-200305251130/ext/xml/xml.c:1255: undefined reference to `XML_SetExternalEntityRefHandler'
ext/xml/xml.lo: In function `zif_xml_set_start_namespace_decl_handler':
/files/programs/php5-200305251130/ext/xml/xml.c:1274: undefined reference to `XML_SetStartNamespaceDeclHandler'
ext/xml/xml.lo: In function `zif_xml_set_end_namespace_decl_handler':
/files/programs/php5-200305251130/ext/xml/xml.c:1293: undefined reference to `XML_SetEndNamespaceDeclHandler'
ext/xml/xml.lo: In function `zif_xml_parse':
/files/programs/php5-200305251130/ext/xml/xml.c:1321: undefined reference to `XML_Parse'
ext/xml/xml.lo: In function `zif_xml_parse_into_struct':
/files/programs/php5-200305251130/ext/xml/xml.c:1356: undefined reference to `XML_SetDefaultHandler'
/files/programs/php5-200305251130/ext/xml/xml.c:1357: undefined reference to `XML_SetElementHandler'
/files/programs/php5-200305251130/ext/xml/xml.c:1358: undefined reference to `XML_SetCharacterDataHandler'
/files/programs/php5-200305251130/ext/xml/xml.c:1360: undefined reference to `XML_Parse'
ext/xml/xml.lo: In function `zif_xml_get_error_code':
/files/programs/php5-200305251130/ext/xml/xml.c:1378: undefined reference to `XML_GetErrorCode'
ext/xml/xml.lo: In function `zif_xml_error_string':
/files/programs/php5-200305251130/ext/xml/xml.c:1393: undefined reference to `XML_ErrorString'
ext/xml/xml.lo: In function `zif_xml_get_current_line_number':
/files/programs/php5-200305251130/ext/xml/xml.c:1412: undefined reference to `XML_GetCurrentLineNumber'
ext/xml/xml.lo: In function `zif_xml_get_current_column_number':
/files/programs/php5-200305251130/ext/xml/xml.c:1428: undefined reference to `XML_GetCurrentColumnNumber'
ext/xml/xml.lo: In function `zif_xml_get_current_byte_index':
/files/programs/php5-200305251130/ext/xml/xml.c:1444: undefined reference to `XML_GetCurrentByteIndex'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
 [2003-05-25 07:09 UTC] adam at indexdata dot dk
Do you have Debian package libxml2-dev installed?
That or libexpat1-dev is required.
 [2003-05-25 09:16 UTC] ag at inocreation dot com
hi,

the following packages are installed....
Version of libxml2 on system is 2.4.12-1.
Source: expat - Version: 1.95.2-6
 [2003-05-25 10:02 UTC] adam at indexdata dot dk
Be sure to have the developers' version of libxml2.
That is package name: libxml2-dev 
Alternatively you can force php5 to use Expat instead
by specifying --lib-expat-dir=/usr
(or whatever the prefix for expat is).
 [2003-05-25 14:56 UTC] ag at inocreation dot com
ok, after a update of libxml2 the php5 build worked fine...
 [2003-05-25 15:46 UTC] magnus@php.net
Not a bug => Bogus 
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Tue Oct 06 20:00:02 2026 UTC