#957 Undefined symbols _olympus_setup

closed-fixed
None
5
2014-08-12
2013-06-16
Ryan Schmidt
No

libgphoto2 2.5.2 does not build on OS X 10.8.4. The final error is:

Undefined symbols for architecture x86_64:
  "_olympus_setup", referenced from:
      _camera_init in library.o
1 Attachments

Discussion

    • status: open --> pending-fixed
    • assigned_to: Marcus Meissner
     
  • i forgot to comment this out if libxml2 support is not available... now done for 2.5.3

     
  • Ryan Schmidt
    Ryan Schmidt
    2013-06-18

    libxml2 is installed, but you're looking for its header in the wrong place. From the config.log:

    configure:19081: checking libxml/parser.h usability
    configure:19081: ccache /usr/bin/clang -c -pipe -Os -arch x86_64 -Wall -g -Wmissing-declarations -Wmissing-prototypes -D_DARWIN_C_SOURCE -I/opt/local/include conftest.c >&5
    conftest.c:75:10: fatal error: 'libxml/parser.h' file not found
    #include <libxml/parser.h>
             ^
    1 error generated.
    

    libxml/parser.h is not in /opt/local/include; it's in /opt/local/include/libxml2.

    By adding -I/opt/local/include/libxml2 to CPPFLAGS when running configure, the build succeeds.

    You should use pkg-config libxml-2.0 --cflags to find this value.

     
  • I am actually using the right macros in configure for this and it should call pkg-config.

    Can you attach config.log please?

     
  • Ryan Schmidt
    Ryan Schmidt
    2013-06-25

    Sure, here it is.

     
    Attachments
  • ok ... i added code for this past 2.5.2 already


    r14415 | marcusmeissner | 2013-05-12 12:50:44 +0200 (Sun, 12 May 2013) | 2 lines

    detect libxml2 more generically

    will be in 2.5.3 and work better then I hope.

     
    • status: pending-fixed --> closed-fixed
     
  • 2.5.3 and 2.5.4 should be fixed