Thunderbird 64-bit libraries issue

2009-01-25
2013-04-22
  • Joseph Borg
    Joseph Borg
    2009-01-25

    Hi There,
    I'm trying to get blueZync to work with my Thunderbird on 64-bit Opensuse. I simply installed BlueZync from the add-on available for download...i.e. I did not build from source. I'm aware this is intended for i386 boxes but I thought I'd give it a go anyway.

    The plugin installs just fine, the problem is that it does not find some libraries:

    ===============
    joseph@apollo:~/.thunderbird/gyjwrlnh.default/extensions/blueZync@KaarPoSoft.dk/components> ldd libBlueZync.so
    ldd: warning: you do not have execution permission for `./libBlueZync.so'
        linux-gate.so.1 =>  (0xffffe000)
        libbluetooth.so.2 => not found
        libopensync.so.1 => not found
        libxpcom.so => not found
    ===============

    Now (I think) equivalent libraries to the above are already installed...it's just that blueZync isn't finding them. I've also in fact tryied to create softlinks from /usr/lib/ to these files but with no luck:

    joseph@apollo:/usr/lib> ll libbluetooth.so.2
    lrwxrwxrwx 1 root root 28 2009-01-25 17:05 libbluetooth.so.2 -> /usr/lib64/libbluetooth.so.3
    joseph@apollo:/usr/lib> ll libopensync.so.1
    lrwxrwxrwx 1 root root 27 2009-01-25 17:05 libopensync.so.1 -> /usr/lib64/libopensync.so.0
    joseph@apollo:/usr/lib> ll libxpcom.so
    lrwxrwxrwx 1 root root 34 2009-01-25 17:05 libxpcom.so -> /usr/lib64/thunderbird/libxpcom.so

    I was therefore wonder whether anyone knew the exactly locations in which BlueZync is looking for the above files and whether softlinks could do the trick or whether there's something else I can try?

    Thanks!!

    Joe

     
    • KaarPoSoft
      KaarPoSoft
      2009-01-25

      Try
      export LD_LIBRARY_PATH=/usr/lib64:anotherdir:yetanotherone

       
    • Joseph Borg
      Joseph Borg
      2009-01-26

      Still no luck I'm afraid :-(

      ====================
      joseph@apollo:~/.thunderbird/gyjwrlnh.default/extensions/blueZync@KaarPoSoft.dk/components> env | grep LIB
      LD_LIBRARY_PATH=/usr/lib64/mpi/gcc/openmpi/lib64
      joseph@apollo:~/.thunderbird/gyjwrlnh.default/extensions/blueZync@KaarPoSoft.dk/components> export LD_LIBRARY_PATH=/usr/lib64/mpi/gcc/openmpi/lib64:/usr/lib64:/usr/lib/
      joseph@apollo:~/.thunderbird/gyjwrlnh.default/extensions/blueZync@KaarPoSoft.dk/components> env | grep LIB
      LD_LIBRARY_PATH=/usr/lib64/mpi/gcc/openmpi/lib64:/usr/lib64:/usr/lib/
      ====================

      After uninstalling and re-installing BlueZync:

      ====================
      joseph@apollo:~/.thunderbird/gyjwrlnh.default/extensions/blueZync@KaarPoSoft.dk/components> ldd libBlueZync.so
      ldd: warning: you do not have execution permission for `./libBlueZync.so'
          linux-gate.so.1 =>  (0xffffe000)
          libbluetooth.so.2 => not found
          libopensync.so.1 => not found
          libxpcom.so => not found
      ====================

      Maybe it's because the filenames are different? E.g. it's looking for libbluetooth.so.2 wheres I have /usr/lib64/libbluetooth.so.3? That said I did create softlinks in /usr/lib with the exact filenames it's looking for so I'm not sure why it's not picking up on those...

      Joe

       
      • KaarPoSoft
        KaarPoSoft
        2009-01-26

        Hi Joe,

        I have no experience with 32 vs 64 bit, but I doubt that you can link a 32 bit lib to a 64 bit lib.

        I would have suggested that you try to compile out of SVN,
        but there seems to be some problems with compiling OpenSync on 64 bit.
        See
        http://www.nabble.com/FindCheck-and-libcheck_pic-\(Re%3A--Opensync-commits--r5217---branches-timeout)-td21613220.html

        I just tried to compile on a 64bit Kubuntu 8.10, and it did not work.

        I hope to get an answer on the above thread, and will investigate further.
        Hopefully I can come back with some news ASAP...

        /henrik

         
    • KaarPoSoft
      KaarPoSoft
      2009-01-27

      If you update from SVN, it should work now!
      (Just tried on a 64bit Kubuntu 8.10 and it worked)

      /Henrik

       
    • Joseph Borg
      Joseph Borg
      2009-01-28

      Hey Henrik,
      Thanks for following up on this!

      I've downloaded the relevant files as per the BlueZync download page via SVN. Since I've never installed via SVN, I'm trying to do this via the install script but I get the following:

      ./build-install-bluezync.sh

      ======================================
      ===== build and install blueZync =====
      ======================================

      Environment:
          DISTRO=[SUSE_LINUX_11.1]
          ARCH=[amd64]
          HOSTNAME=[linux-a9ou]
      Directory settings:
          PREFIX=/usr/local
          DESTDIR=
          PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig
          LD_LIBRARY_PATH=/usr/lib64/mpi/gcc/openmpi/lib64
          BUILD_DIR=/home/joseph/build_SUSE_LINUX_11.1_linux-a9ou
          SRC_DIR=/home/joseph/BlueZync
      If you are not happy with the directory settings, export the relevant variables and run again
          /home/joseph/build_SUSE_LINUX_11.1_linux-a9ou will be created

      Do you want to continue ./build-install-bluezync.sh with those settings (y/n)? y

      Erasing and creating build directories
          /home/joseph/build_SUSE_LINUX_11.1_linux-a9ou/mozilla-sync
          /home/joseph/build_SUSE_LINUX_11.1_linux-a9ou/blueZync4thunderbird

      ========================================
      =====  CMAKE mozilla-sync

      pwd=/home/joseph/build_SUSE_LINUX_11.1_linux-a9ou/mozilla-sync
      cmake -G Unix Makefiles -DCMAKE_C_FLAGS=-I/usr/local/include -I/usr/include -DCMAKE_INSTALL_PREFIX=/usr/local -DENABLE_TESTING='yes' -DCMAKE_PREFIX_PATH=/usr/local -DCMAKE_LIBRARY_PATH=/usr/local/lib /home/joseph/BlueZync/mozilla-sync -DDESTDIR=
      CMake Error: The source directory "/home/joseph/BlueZync/mozilla-sync" does not exist.
      Specify --help for usage, or press the help button on the CMake GUI.

      I have no directory called 'mozilla-sync' but I'm not sure why it's expecting this in the first place...the install page has no mention of such a directory.

      ta,

      Joe

       
    • KaarPoSoft
      KaarPoSoft
      2009-01-29

      Well,

      If your followed the instructions on
      http://kaarposoft.dk/bluezync/building.html
      you should have a mozilla-sync directory, as you should have executed
      svn co http://svn.opensync.org/plugins/mozilla-sync/trunk mozilla-sync

      I admit that it might be a bit difficult to see why you need mozilla-sync.
      I just added an "overview" section on
      http://kaarposoft.dk/bluezync/manual.html
      I hope this explains it...

      /Henrik

       
    • Joseph Borg
      Joseph Borg
      2009-01-29

      Hey,
      So first of all thanks for your continued assistance on this! I'm now trying to follow the instructions here to the letter: http://kaarposoft.dk/bluezync/building.html. I've gotten as far as './build-install-bluezync.sh' but I get the following error:

      -- checking for one of the modules 'bluez'
      CMake Error at CMakeLists.txt:54 (MESSAGE):
        *** bluez not found

      -- Configuring incomplete, errors occurred!

      I'm on Opensuse 11.1 x86_64. As per the instructions, I downloaded sunbird-devel from ubuntu and now have the following:

      apollo:/home/joseph/BlueZync # ls
      blueZync4thunderbird  file-sync                   libsyncml  mozilla-sync  osynctool                                           syncml  vformat
      data.tar.gz           libopensync-plugin-mozilla  libwbxml2  opensync      sunbird-dev_0.8+nobinonly-0ubuntu1~hardy1_i386.deb  utils   xmlformat

      Any ideas what could be wrong?

      Thanks,

      Joe

       
    • KaarPoSoft
      KaarPoSoft
      2009-01-29

      Hmmm...

      bluez is a "low-level" library for communicating over blutetooth...

      I have build on 32bit OpenSUSE 11.0 with no probs, this distro has bluez-libs and bluez-utils installed, and things work like a charm.

      Pls check in YaST if you have bluez-* installed.
      If no, pls install.

      In /usr/lib/pkgconfig you should have a file called bluez.pc.

      if you do NOT have this file, it is some YaST package missing.
      If you DO have it, pls post it here...

      /H

       
    • Joseph Borg
      Joseph Borg
      2009-01-30

      hmm,
      I've now installed bluez-* and the installation progressed. The file you mention is located in /usr/lib64/pkgconfig/bluez.pc. Unfortunately, the unit-test now seem to fail:

      Running tests...
      Start processing tests
      Test project /home/joseph/build_SUSE_LINUX_11.1_apollo/mozilla-sync/tests
        1/ 18 Testing unit_test_xpcom               ***Failed
        2/ 18 Testing unit_test_abook               ***Failed
        3/ 18 Testing blackbox_test_init_thunderbird   Passed
        4/ 18 Testing blackbox_test_init_osynctool     Passed
        5/ 18 Testing blackbox_test_abook_vcard_comp   Passed
        6/ 18 Testing blackbox_test_abook_slow_slow ***Failed
        7/ 18 Testing blackbox_test_abook_slow3     ***Failed
        8/ 18 Testing blackbox_test_abook_slow_fast ***Failed
        9/ 18 Testing blackbox_test_abook_add       ***Failed
      10/ 18 Testing blackbox_test_abook_delete    ***Failed
      11/ 18 Testing blackbox_test_abook_fmod      ***Failed
      12/ 18 Testing blackbox_test_init_sunbird       Passed
      13/ 18 Testing blackbox_test_cal_slow_slow   ***Failed
      14/ 18 Testing blackbox_test_cal_slow3       ***Failed
      15/ 18 Testing blackbox_test_cal_slow_fast   ***Failed
      16/ 18 Testing blackbox_test_cal_add         ***Failed
      17/ 18 Testing blackbox_test_cal_delete      ***Failed
      18/ 18 Testing blackbox_test_cal_fmod        ***Failed

      22% tests passed, 14 tests failed out of 18

      The following tests FAILED:
            1 - unit_test_xpcom (Failed)
            2 - unit_test_abook (Failed)
            6 - blackbox_test_abook_slow_slow (Failed)
            7 - blackbox_test_abook_slow3 (Failed)
            8 - blackbox_test_abook_slow_fast (Failed)
            9 - blackbox_test_abook_add (Failed)
           10 - blackbox_test_abook_delete (Failed)
           11 - blackbox_test_abook_fmod (Failed)
           13 - blackbox_test_cal_slow_slow (Failed)
           14 - blackbox_test_cal_slow3 (Failed)
           15 - blackbox_test_cal_slow_fast (Failed)
           16 - blackbox_test_cal_add (Failed)
           17 - blackbox_test_cal_delete (Failed)
           18 - blackbox_test_cal_fmod (Failed)
      Errors while running CTest
      make: *** [test] Error 8

      I can post the entire install log if you want (maybe as an email attachment?).

      Thanks,

      Joe
      P.S. I figured out what I was doing wrong originally. I was following this guide to building: http://www.kaarposoft.dk/bluezync/0.1.6/building.html and not the one you sent (http://kaarposoft.dk/bluezync/building.html). Note quite sure why there are two so I thought I'd point it out :-)

       
    • KaarPoSoft
      KaarPoSoft
      2009-01-30

      Hi Joe,
      Good to see that there is some progress!
      Could you please let me know exactly what bluez packages you installed, so I can update the build page.
      It would be very useful to have the full testlog, located under your build-dir in mozilla-sync/tests/Testing.
      Unfortunately you cannot attach here in the forum, but you can create a bug report and attach it there.
      /Henrik
      PS: I kept the old build instructions (and manual etc) around, but put a notice at the top of both the old and new page. But I guess I need to make it more clear somehow...

       
    • Joseph Borg
      Joseph Borg
      2009-01-30

      Hi,
      Bug ID: 2549852.

      As for bluez, I pretty much installed everything:

      bluez
      bluez-alsa
      bluez-compat
      bluez-devel
      bluez-firmware
      bluez-gnome
      bluez-gstreamer
      bluez-test
      bluez-hcidump.

      Let me know if you require further info :-)

      Joe