Menu

Compilation problems with RH7.3 and BlueZ

Help
Anonymous
2003-03-19
2003-04-07
  • Anonymous

    Anonymous - 2003-03-19

    Hi,

    I've tried to compile the toolkit with Linux and done the include addition mentioned in bug section that fixes problems with bare RH7.3. With the include, compilation process for the xpt part proceeds further, but ends at the following error message:

    gcc -g -fPIC -DTRACE   -I../../xpt/bindings/obex/smlobex   -c -o irTransport.o ../../xpt/bindings/obex/smlobex/irTransport.c

    In file included from /usr/include/linux/types.h:4,
                     from ../../xpt/bindings/obex/smlobex/irTransport.h:58,
                     from ../../xpt/bindings/obex/smlobex/irTransport.c:43:
    /usr/include/linux/posix_types.h:36: syntax error before `typedef'

    Anyone tried compiling this with custom kernel and BlueZ? BlueZ is required, because my intention is to use OBEX and Bluetooth, and it is more recent than the version coming with RH7.3. BlueZ package versions are the following:

    bluez-kernel-2.3-pre2
    bluez-libs-2.1.1
    bluez-sdp-0.8
    bluez-utils-2.0

    More recent versions of BlueZ stuff are available, but I've not yet upgraded, because of the API changes which would require me to change some existing Bluetooth stuff I've done so far.

    Kernel version is 2.4.20 with some patches (preemptive, low latency, O(1) scheduler), similar problems with 2.4.19 though.

    Any ideas and suggestions are welcome.

    (I did not report this as a bug, because it might well be that the headers from BlueZ or something similar are the problem, not the toolkit code/makefile itself.)

     
    • Anonymous

      Anonymous - 2003-04-04

      Forget this problem; the solution was rather simple and somewhat embarrassing. During the process of adding the extra include neccessary for RH7.3, an additional garbage character had also been inserted to the file at some point and it caused the compilation to die. Now all is well.

       
      • Peter Thompson

        Peter Thompson - 2003-04-07

        Glad to hear that problem is solved.  Also don't worry about the "embarassing" part - we've all done that sorta thing, or at least will do so sometime.  :)

        Cheers,  
            Peter

         

Log in to post a comment.