Menu

#11 Compile Errors in Bluez.cpp

open
nobody
None
5
2006-12-11
2006-12-11
Anonymous
No

I get compile errors on a Debian Linux
g++ is 4.1.2
java ist j2sdk1.5_04

the error output can be found here:
http://blage.mine.nu/~srohweder/avetanabt_error.txt

s.rohweder@blage.com for more questions

Discussion

  • Stefan Fink

    Stefan Fink - 2006-12-12

    Logged In: YES
    user_id=1666445
    Originator: NO

    I have the same problem with OpenSuse 10.2. It seems to be a problem with the libbluetooth.so.2 library. With the older libbluetooth.so.1 everything was fine.

    Hope it gets fixed soon.

    Thanks to the Avetana developpers for the work done so far.

     
  • Nobody/Anonymous

    Logged In: NO

    I've got the same problem (Ubuntu 6.10).
    After some googling, I've found the "root" of the problem:

    "the sdp_cstate_t was made public by accident and should have never been
    used by any application. It is a fully internal state. So the AvetanaBT
    implementation needs to be fixed."

    http://www.archivesat.com/BlueZ_users/thread1906387.htm

    The avetana implementation should be changed in order to properly use the BlueZ data structures.
    I can't use the precompiled version of AvetanaBt for linux because the .so library has been compiled for 64bit CPUs, so the only way to work with Avetana on linux is to get the new version of Bluez.cpp and to compile it.
    Does anybody know the mail address of one of their programmers so they can be adviced and can fix the bug?

     
  • Nobody/Anonymous

    Logged In: NO

    a short term hack is to add the following lines in front of the function "copy_cstate"
    the function starts at line 1950

    typedef struct {
    uint8_t length;
    unsigned char data[16];
    } __attribute__ ((packed)) sdp_cstate_t;

     
  • Nobody/Anonymous

    Logged In: NO

    Thank you very much, now it works :)

     
  • Nobody/Anonymous

    Logged In: NO

    form http://www.gerdavax.it/
    ...

    To get avetanaBluetooth compiled (and running!), I’ve just copied the source fragment:

    typedef struct {
    uint8_t length;
    unsigned char data[16];
    } __attribute__ ((packed)) sdp_cstate_t;

    in structs declaration of BlueZ.cpp source file (located in the “c” directory of the distribution package) and the Avetana Bluetooth stack compiles without any problem. The system configuration was: Ubuntu Linux 6.10 with kernel 2.6.17, gcc 4.1, g++ 4.1, jdk 1.6.0. Enjoy JSR-82 on your newest Linux box!

     

Log in to post a comment.

MongoDB Logo MongoDB