Menu

#16 Cannot build in macOS 10.13: symbols not found for arch x86_64

untriaged
closed
nobody
None
2018-06-12
2018-06-11
No

Apologies if this is the wrong place to post this. I've been trying to build libwpd in macOS 10.13 High Sierra, but make exits with these errors:

CXXLD libwpd-0.10.la
Undefined symbols for architecture x86_64:
"_WP1_FUNCTION_GROUP_SIZE", referenced from:
WP1FixedLengthGroup::_read(librevenge::RVNGInputStream, WPXEncryption) in WP1FixedLengthGroup.o
WP1Heuristics::isWP1FileFormat(librevenge::RVNGInputStream, char const) in WP1Heuristics.o
WP1Part::constructPart(librevenge::RVNGInputStream, WPXEncryption, unsigned char) in WP1Part.o
"_WP3_FIXED_LENGTH_FUNCTION_GROUP_SIZE", referenced from:
WP3FixedLengthGroup::isGroupConsistent(librevenge::RVNGInputStream, WPXEncryption, unsigned char) in WP3FixedLengthGroup.o
WP3FixedLengthGroup::_read(librevenge::RVNGInputStream, WPXEncryption) in WP3FixedLengthGroup.o
"_WP42_FUNCTION_GROUP_SIZE", referenced from:
WP42Heuristics::isWP42FileFormat(librevenge::RVNGInputStream, char const) in WP42Heuristics.o
"_WP5_FIXED_LENGTH_FUNCTION_GROUP_SIZE", referenced from:
WP5FixedLengthGroup::isGroupConsistent(librevenge::RVNGInputStream, WPXEncryption, unsigned char) in WP5FixedLengthGroup.o
WP5FixedLengthGroup::_read(librevenge::RVNGInputStream, WPXEncryption) in WP5FixedLengthGroup.o
"WP42Listener::WP42Listener()", referenced from:
WP42ContentListener::WP42ContentListener(std::__1::list<wpxpagespan, std::__1::allocator\<wpxpagespan=""> >&, std::__1::vector<wp42subdocument*, std::__1::allocator\<wp42subdocument*=""> >&, librevenge::RVNGTextInterface*) in WP42ContentListener.o
WP42StylesListener::WP42StylesListener(std::__1::list<wpxpagespan, std::__1::allocator\<wpxpagespan=""> >&, std::__1::vector<wp42subdocument*, std::__1::allocator\<wp42subdocument*=""> >&) in WP42StylesListener.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)</wp42subdocument*,></wpxpagespan,></wp42subdocument*,></wpxpagespan,>

Is this just because I'm incompetent, or is there any solution?

Related

Tickets: #16

Discussion

  • alonso laurent

    alonso laurent - 2018-06-11

    Hello,
    do you do a make clean all (or better ./autogen.sh ; ./configure; make clean all ) ? Ie. I just check and the build ends succefully on my mac ( which is also in OSX 10.13) ....

     
    • Edward Mendelson

      Hello,

      Thank you for this. I tried ./autogen.sh ; ./configure; make clean all - and the errors disappeared. Thank you again!

      But now, oddly enough I cannot seem to create a static build. I used ./configure —enable-static and ./configure —enable-static=YES, but the resulting executables in in the src/conv/ folder were all 6KB, and make install created builds that are 300-600KB, not the 1.9MB that seem to be needed for standalone executables. Am I missing something obvious?

      Apologies for my incompetence!

      Edward

      On Jun 11, 2018, at 10:42 AM, alonso laurent osnola@users.sourceforge.net wrote:

      Hello,
      do you do a make clean all (or better ./autogen.sh ; ./configure; make clean all ) ? Ie. I just check and the build ends succefully on my mac ( which is also in OSX 10.13) ....


      ** [tickets:#16] Cannot build in macOS 10.13: symbols not found for arch x86_64**

      Status: open
      Milestone: untriaged
      Created: Mon Jun 11, 2018 12:37 AM UTC by Edward Mendelson
      Last Updated: Mon Jun 11, 2018 12:37 AM UTC
      Owner: nobody

      Apologies if this is the wrong place to post this. I've been trying to build libwpd in macOS 10.13 High Sierra, but make exits with these errors:

      CXXLD libwpd-0.10.la
      Undefined symbols for architecture x86_64:
      "_WP1_FUNCTION_GROUP_SIZE", referenced from:
      WP1FixedLengthGroup::_read(librevenge::RVNGInputStream, WPXEncryption) in WP1FixedLengthGroup.o
      WP1Heuristics::isWP1FileFormat(librevenge::RVNGInputStream, char const) in WP1Heuristics.o
      WP1Part::constructPart(librevenge::RVNGInputStream, WPXEncryption, unsigned char) in WP1Part.o
      "_WP3_FIXED_LENGTH_FUNCTION_GROUP_SIZE", referenced from:
      WP3FixedLengthGroup::isGroupConsistent(librevenge::RVNGInputStream, WPXEncryption, unsigned char) in WP3FixedLengthGroup.o
      WP3FixedLengthGroup::_read(librevenge::RVNGInputStream, WPXEncryption) in WP3FixedLengthGroup.o
      "_WP42_FUNCTION_GROUP_SIZE", referenced from:
      WP42Heuristics::isWP42FileFormat(librevenge::RVNGInputStream, char const) in WP42Heuristics.o
      "_WP5_FIXED_LENGTH_FUNCTION_GROUP_SIZE", referenced from:
      WP5FixedLengthGroup::isGroupConsistent(librevenge::RVNGInputStream, WPXEncryption, unsigned char) in WP5FixedLengthGroup.o
      WP5FixedLengthGroup::_read(librevenge::RVNGInputStream, WPXEncryption) in WP5FixedLengthGroup.o
      "WP42Listener::WP42Listener()", referenced from:
      WP42ContentListener::WP42ContentListener(std::__1::list<wpxpagespan, std::__1::allocator\<wpxpagespan=""> >&, std::__1::vector<wp42subdocument*, std::__1::allocator\<wp42subdocument*=""> >&, librevenge::RVNGTextInterface*) in WP42ContentListener.o
      WP42StylesListener::WP42StylesListener(std::__1::list<wpxpagespan, std::__1::allocator\<wpxpagespan=""> >&, std::__1::vector<wp42subdocument*, std::__1::allocator\<wp42subdocument*=""> >&) in WP42StylesListener.o
      ld: symbol(s) not found for architecture x86_64
      clang: error: linker command failed with exit code 1 (use -v to see invocation)</wp42subdocument*,></wpxpagespan,></wp42subdocument*,></wpxpagespan,>

      Is this just because I'm incompetent, or is there any solution?


      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/libwpd/tickets/16/

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

       

      Related

      Tickets: #16

    • Edward Mendelson

      And ignore my last question: I forgot that I also needed to use —enable-shared=NO

       

      Last edit: Edward Mendelson 2018-06-11
      • alonso laurent

        alonso laurent - 2018-06-12

        No problem. Happy to see this problem solved...

        note :

        • I suppose that I can close this bug.
         
  • alonso laurent

    alonso laurent - 2018-06-12
    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB