Menu

#1293 support build on illumos

Last release
pending
None
1
2015-06-25
2015-03-10
No

libmtp needs two patches to build correctly on Solaris/illumos systems. First one is related to the fact that on illumos there's no bswap_16, but there is BSWAP_16. The second is configure problem - when it checks for libusb with AC_CHECK_LIB([usb], [usb_open]..) statement, it doesn't set LIBUSB_LIBS.

2 Attachments

Discussion

  • Reverend Homer

    Reverend Homer - 2015-03-30
    • status: open --> pending
    • assigned_to: Reverend Homer
     
  • Reverend Homer

    Reverend Homer - 2015-06-24

    I'm afraid that we cannot apply the first patch now, because gphoto2-endian.h is the generated file that is not added to git.
    Look at byteorder.m4, please, and patch it, if you can. Or I can try to do it

     
  • Alexander Pyhalov

    I've tried the following patch. When it's applied, I can remove gphoto2-endian.h, and it's regenerated correctly. I'm not fluent in m4, so please recheck that I haven't broken something. The following code is generated:
    / Define generic byte swapping functions /
    #include <sys byteorder.h="">
    #define swap16(x) BSWAP_16(x)
    #define swap32(x) BSWAP_32(x)
    #define swap64(x) BSWAP_64(x)

     

    Last edit: Alexander Pyhalov 2015-06-25

Anonymous
Anonymous

Add attachments
Cancel