#23773 [Com]: Compiling Error in latest /ext/mysqli

From: Date: Sun, 25 May 2003 12:09:17 +0000
Subject: #23773 [Com]: Compiling Error in latest /ext/mysqli
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-40376@lists.php.net to get a copy of this message
ID: 23773 Comment by: adam at indexdata dot dk Reported By: ag at inocreation dot com Status: Open Bug Type: Compile Failure Operating System: Debian Linux 2.2 PHP Version: 4CVS-2003-05-23 (stable) New Comment: Do you have Debian package libxml2-dev installed? That or libexpat1-dev is required. Previous Comments: ------------------------------------------------------------------------ [2003-05-25 06:36:40] 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-23 09:52:56] sniper@php.net There is no php4/ HEAD..use php5/ module. ------------------------------------------------------------------------ [2003-05-23 05:52:15] 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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=23773&edit=1

« previous php.bugs (#40376) next »