Skip to content

Compile errors [Ubuntu 9.10] #13

Closed

Description

@Bergi
Building hphpi
/home/bergi/hphp/hiphop-php/bin/libhphp_runtime.a(ext_xml.cpp.o): In function `HPHP::XmlParser::cleanupImpl()':\next_xml.cpp:(.text+0xf23): undefined reference to `XML_ParserFree'\n/home/bergi/hphp/hiphop-php/bin/libhphp_runtime.a(ext_xml.cpp.o): In function `HPHP::php_xml_parser_create_impl(HPHP::String const&, HPHP::String const&, int)':\next_xml.cpp:(.text+0x16d4): undefined reference to `XML_ParserCreate_MM'\next_xml.cpp:(.text+0x173e): undefined reference to `XML_SetUserData'\n/home/bergi/hphp/hiphop-php/bin/libhphp_runtime.a(ext_xml.cpp.o): In function `HPHP::f_xml_parse(HPHP::Object const&, HPHP::String const&, bool)':\next_xml.cpp:(.text+0x54ef): undefined reference to `XML_Parse'\n/home/bergi/hphp/hiphop-php/bin/libhphp_runtime.a(ext_xml.cpp.o): In function `HPHP::f_xml_parse_into_struct(HPHP::Object const&, HPHP::String const&, HPHP::Variant, HPHP::Variant)':\next_xml.cpp:(.text+0x563e): undefined reference to `XML_SetDefaultHandler'\next_xml.cpp:(.text+0x565f): undefined reference to `XML_SetElementHandler'\next_xml.cpp:(.text+0x5679): undefined reference to `XML_SetCharacterDataHandler'\next_xml.cpp:(.text+0x56c0): undefined reference to `XML_Parse'\n/home/bergi/hphp/hiphop-php/bin/libhphp_runtime.a(ext_xml.cpp.o): In function `HPHP::f_xml_set_character_data_handler(HPHP::Object const&, HPHP::Variant const&)':\next_xml.cpp:(.text+0x59cd): undefined reference to `XML_SetCharacterDataHandler'\n/home/bergi/hphp/hiphop-php/bin/libhphp_runtime.a(ext_xml.cpp.o): In function `HPHP::f_xml_set_default_handler(HPHP::Object const&, HPHP::Variant const&)':\next_xml.cpp:(.text+0x5a32): undefined reference to `XML_SetDefaultHandler'\n/home/bergi/hphp/hiphop-php/bin/libhphp_runtime.a(ext_xml.cpp.o): In function `HPHP::f_xml_set_element_handler(HPHP::Object const&, HPHP::Variant const&, HPHP::Variant const&)':\next_xml.cpp:(.text+0x5ab6): undefined reference to `XML_SetElementHandler'\n/home/bergi/hphp/hiphop-php/bin/libhphp_runtime.a(ext_xml.cpp.o): In function `HPHP::f_xml_set_processing_instruction_handler(HPHP::Object const&, HPHP::Variant const&)':\next_xml.cpp:(.text+0x5b1b): undefined reference to `XML_SetProcessingInstructionHandler'\n/home/bergi/hphp/hiphop-php/bin/libhphp_runtime.a(ext_xml.cpp.o): In function `HPHP::f_xml_set_start_namespace_decl_handler(HPHP::Object const&, HPHP::Variant const&)':\next_xml.cpp:(.text+0x5b80): undefined reference to `XML_SetStartNamespaceDeclHandler'\n/home/bergi/hphp/hiphop-php/bin/libhphp_runtime.a(ext_xml.cpp.o): In function `HPHP::f_xml_set_end_namespace_decl_handler(HPHP::Object const&, HPHP::Variant const&)':\next_xml.cpp:(.text+0x5be5): undefined reference to `XML_SetEndNamespaceDeclHandler'\n/home/bergi/hphp/hiphop-php/bin/libhphp_runtime.a(ext_xml.cpp.o): In function `HPHP::f_xml_set_unparsed_entity_decl_handler(HPHP::Object const&, HPHP::Variant const&)':\next_xml.cpp:(.text+0x5c4a): undefined reference to `XML_SetUnparsedEntityDeclHandler'\n/home/bergi/hphp/hiphop-php/bin/libhphp_runtime.a(ext_xml.cpp.o): In function `HPHP::f_xml_set_external_entity_ref_handler(HPHP::Object const&, HPHP::Variant const&)':\next_xml.cpp:(.text+0x5caf): undefined reference to `XML_SetExternalEntityRefHandler'\n/home/bergi/hphp/hiphop-php/bin/libhphp_runtime.a(ext_xml.cpp.o): In function `HPHP::f_xml_set_notation_decl_handler(HPHP::Object const&, HPHP::Variant const&)':\next_xml.cpp:(.text+0x5d14): undefined reference to `XML_SetNotationDeclHandler'\n/home/bergi/hphp/hiphop-php/bin/libhphp_runtime.a(ext_xml.cpp.o): In function `HPHP::f_xml_get_current_byte_index(HPHP::Object const&)':\next_xml.cpp:(.text+0x5da4): undefined reference to `XML_GetCurrentByteIndex'\n/home/bergi/hphp/hiphop-php/bin/libhphp_runtime.a(ext_xml.cpp.o): In function `HPHP::f_xml_get_current_column_number(HPHP::Object const&)':\next_xml.cpp:(.text+0x5ddc): undefined reference to `XML_GetCurrentColumnNumber'\n/home/bergi/hphp/hiphop-php/bin/libhphp_runtime.a(ext_xml.cpp.o): In function `HPHP::f_xml_get_current_line_number(HPHP::Object const&)':\next_xml.cpp:(.text+0x5e14): undefined reference to `XML_GetCurrentLineNumber'\n/home/bergi/hphp/hiphop-php/bin/libhphp_runtime.a(ext_xml.cpp.o): In function `HPHP::f_xml_get_error_code(HPHP::Object const&)':\next_xml.cpp:(.text+0x5e4c): undefined reference to `XML_GetErrorCode'\n/home/bergi/hphp/hiphop-php/bin/libhphp_runtime.a(ext_xml.cpp.o): In function `HPHP::f_xml_error_string(int)':\next_xml.cpp:(.text+0x5e67): undefined reference to `XML_ErrorString'\ncollect2: ld returned 1 exit status\nmake[5]: *** [program] Error 1\nmake[4]: *** [CMakeFiles/program.dir/all] Error 2\nmake[3]: *** [all] Error 2\n
mv: cannot stat `gen/program': No such file or directory

Linking CXX executable test
../../bin/libhphp_runtime.a(ext_xml.cpp.o): In function `HPHP::XmlParser::cleanupImpl()':
ext_xml.cpp:(.text+0xf23): undefined reference to `XML_ParserFree'
../../bin/libhphp_runtime.a(ext_xml.cpp.o): In function `HPHP::php_xml_parser_create_impl(HPHP::String const&, HPHP::String const&, int)':
ext_xml.cpp:(.text+0x16d4): undefined reference to `XML_ParserCreate_MM'
ext_xml.cpp:(.text+0x173e): undefined reference to `XML_SetUserData'
../../bin/libhphp_runtime.a(ext_xml.cpp.o): In function `HPHP::f_xml_parse(HPHP::Object const&, HPHP::String const&, bool)':
ext_xml.cpp:(.text+0x54ef): undefined reference to `XML_Parse'
../../bin/libhphp_runtime.a(ext_xml.cpp.o): In function `HPHP::f_xml_parse_into_struct(HPHP::Object const&, HPHP::String const&, HPHP::Variant, HPHP::Variant)':
ext_xml.cpp:(.text+0x563e): undefined reference to `XML_SetDefaultHandler'
ext_xml.cpp:(.text+0x565f): undefined reference to `XML_SetElementHandler'
ext_xml.cpp:(.text+0x5679): undefined reference to `XML_SetCharacterDataHandler'
ext_xml.cpp:(.text+0x56c0): undefined reference to `XML_Parse'
../../bin/libhphp_runtime.a(ext_xml.cpp.o): In function `HPHP::f_xml_set_character_data_handler(HPHP::Object const&, HPHP::Variant const&)':
ext_xml.cpp:(.text+0x59cd): undefined reference to `XML_SetCharacterDataHandler'
../../bin/libhphp_runtime.a(ext_xml.cpp.o): In function `HPHP::f_xml_set_default_handler(HPHP::Object const&, HPHP::Variant const&)':
ext_xml.cpp:(.text+0x5a32): undefined reference to `XML_SetDefaultHandler'
../../bin/libhphp_runtime.a(ext_xml.cpp.o): In function `HPHP::f_xml_set_element_handler(HPHP::Object const&, HPHP::Variant const&, HPHP::Variant const&)':
ext_xml.cpp:(.text+0x5ab6): undefined reference to `XML_SetElementHandler'
../../bin/libhphp_runtime.a(ext_xml.cpp.o): In function `HPHP::f_xml_set_processing_instruction_handler(HPHP::Object const&, HPHP::Variant const&)':
ext_xml.cpp:(.text+0x5b1b): undefined reference to `XML_SetProcessingInstructionHandler'
../../bin/libhphp_runtime.a(ext_xml.cpp.o): In function `HPHP::f_xml_set_start_namespace_decl_handler(HPHP::Object const&, HPHP::Variant const&)':
ext_xml.cpp:(.text+0x5b80): undefined reference to `XML_SetStartNamespaceDeclHandler'
../../bin/libhphp_runtime.a(ext_xml.cpp.o): In function `HPHP::f_xml_set_end_namespace_decl_handler(HPHP::Object const&, HPHP::Variant const&)':
ext_xml.cpp:(.text+0x5be5): undefined reference to `XML_SetEndNamespaceDeclHandler'
../../bin/libhphp_runtime.a(ext_xml.cpp.o): In function `HPHP::f_xml_set_unparsed_entity_decl_handler(HPHP::Object const&, HPHP::Variant const&)':
ext_xml.cpp:(.text+0x5c4a): undefined reference to `XML_SetUnparsedEntityDeclHandler'
../../bin/libhphp_runtime.a(ext_xml.cpp.o): In function `HPHP::f_xml_set_external_entity_ref_handler(HPHP::Object const&, HPHP::Variant const&)':
ext_xml.cpp:(.text+0x5caf): undefined reference to `XML_SetExternalEntityRefHandler'
../../bin/libhphp_runtime.a(ext_xml.cpp.o): In function `HPHP::f_xml_set_notation_decl_handler(HPHP::Object const&, HPHP::Variant const&)':
ext_xml.cpp:(.text+0x5d14): undefined reference to `XML_SetNotationDeclHandler'
../../bin/libhphp_runtime.a(ext_xml.cpp.o): In function `HPHP::f_xml_get_current_byte_index(HPHP::Object const&)':
ext_xml.cpp:(.text+0x5da4): undefined reference to `XML_GetCurrentByteIndex'
../../bin/libhphp_runtime.a(ext_xml.cpp.o): In function `HPHP::f_xml_get_current_column_number(HPHP::Object const&)':
ext_xml.cpp:(.text+0x5ddc): undefined reference to `XML_GetCurrentColumnNumber'
../../bin/libhphp_runtime.a(ext_xml.cpp.o): In function `HPHP::f_xml_get_current_line_number(HPHP::Object const&)':
ext_xml.cpp:(.text+0x5e14): undefined reference to `XML_GetCurrentLineNumber'
../../bin/libhphp_runtime.a(ext_xml.cpp.o): In function `HPHP::f_xml_get_error_code(HPHP::Object const&)':
ext_xml.cpp:(.text+0x5e4c): undefined reference to `XML_GetErrorCode'
../../bin/libhphp_runtime.a(ext_xml.cpp.o): In function `HPHP::f_xml_error_string(int)':
ext_xml.cpp:(.text+0x5e67): undefined reference to `XML_ErrorString'
collect2: ld returned 1 exit status
make[2]: *** [src/test/test] Error 1
make[1]: *** [src/test/CMakeFiles/test.dir/all] Error 2
make: *** [all] Error 2

Used:
cmake 2.8.0
gcc 4.4.1
g++ 4.4.1
boost 1.40.0
flex 2.5.35
bison 2.4.7
re2c 0.13.5
libmysql++3 3.0.9
libxml2 2.7.5
libmcrypt 2.5.8
libicu 4.2.1
openssl 0.9.8
binutils 2.20
libcap 2.16
gd 2.0.36
zlib 1.2.3.3
tbb 2.1r017
oniguruma 5.9.1
libcurl 7.20[patched]
libevent 1.4 [patched]

Activity

  1. scottmac commented on Feb 21, 2010

    @scottmac
    Contributor

    Fixed in 787cbd1 to add expat requirement

  2. added a commit that references this issue on Jun 26, 2019
  3. added a commit that references this issue on Aug 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions