[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bluetooth-dev] compile the stack with arm-linux-gcc



 

Dear all,

 

             I have the problem of compiling the Openbt stack with arm-linux-gcc compiler.

 

             I have installed the arm-linux-gcc compiler from www.handhelds.org. I have also download the arm-linux (2.95.2) kernel. Here is my adjustment of Makefiles of the Openbt stack:

 

             1. modify "/openbt/linux/drivers/char/bluetooth/Makefile"

                 line 40~43

                 INCLUDEDIR=/usr/arm/linux-2.4.9/include

                 #CC = $(CROSSCOMPILE)gcc

                 #LD=$(CROSSCOMPILE)ld

 

             2. modify "/openbt/apps/bluetooth/btd/Makefile"

                 line 14

                 #HAVE_READLINE_READLINE = 1

                 line 36

                 #CFLAGS += -MD

 

             3. modify "/openbt/apps/bluetooth/sdp_server"

                 line 25

                 CFLAGS += I$(INCDIR)

                 #--MD

 

             4. modify "/openbt/apps/bluetooth/userstack"

                 line 14

                 #HAVE_READLINE_READLINE =1

 

             After Making adjustments of the Makefiles of the stack. I type the following comand for installation:

            

             export PATH=$PATH:/skiff/local/bin

             1.  cd openbt

             2. export CC=arm-linux-gcc

            3.  expoer LD=arm-linux-ld

            4.  export NM=arm-linux-nm

               5.  export RANLIB=arm-linux-ranlib

            6.  source init_env

            7. make

 

            However, there are a lots of errors after compiling with gcc. Which steps i am wrong??? Could any one point out the correct step???

            

            I also try to not modify all the Makefiles. However, it is also not success.

 

            Here is one of the error (with modify the Makefiles):

           

Regards and Thanks,

Tim.

 

 

In file included from
/skiff/local/lib/gcc-lib/arm-linux/2.95.2/../../../../arm-linux/include/sys/types.h:121,
                 from
/skiff/local/lib/gcc-lib/arm-linux/2.95.2/../../../../arm-linux/include/stdlib.h:339,
                 from xmldef.h:47,
                 from xmltok.c:31:
/skiff/local/lib/gcc-lib/arm-linux/2.95.2/../../../../arm-linux/include/time.h: At
top level:
/skiff/local/lib/gcc-lib/arm-linux/2.95.2/../../../../arm-linux/include/time.h:10: parse
error before `time_t'
/skiff/local/lib/gcc-lib/arm-linux/2.95.2/../../../../arm-linux/include/time.h:10: warning: no
semicolon at end of struct or union
/skiff/local/lib/gcc-lib/arm-linux/2.95.2/../../../../arm-linux/include/time.h:12: parse
error before `}'
/skiff/local/lib/gcc-lib/arm-linux/2.95.2/../../../../arm-linux/include/time.h: In
function `timespec_to_jiffies':
/skiff/local/lib/gcc-lib/arm-linux/2.95.2/../../../../arm-linux/include/time.h:32: dereferencing
pointer to incomplete type
/skiff/local/lib/gcc-lib/arm-linux/2.95.2/../../../../arm-linux/include/time.h:33: dereferencing
pointer to incomplete type
/skiff/local/lib/gcc-lib/arm-linux/2.95.2/../../../../arm-linux/include/time.h: In
function `jiffies_to_timespec':
/skiff/local/lib/gcc-lib/arm-linux/2.95.2/../../../../arm-linux/include/time.h:45: dereferencing
pointer to incomplete type
/skiff/local/lib/gcc-lib/arm-linux/2.95.2/../../../../arm-linux/include/time.h:46: dereferencing
pointer to incomplete type
/skiff/local/lib/gcc-lib/arm-linux/2.95.2/../../../../arm-linux/include/time.h: At
top level:
/skiff/local/lib/gcc-lib/arm-linux/2.95.2/../../../../arm-linux/include/time.h:50: parse
error before `time_t'
/skiff/local/lib/gcc-lib/arm-linux/2.95.2/../../../../arm-linux/include/time.h:50: warning: no
semicolon at end of struct or union
/skiff/local/lib/gcc-lib/arm-linux/2.95.2/../../../../arm-linux/include/time.h:51: warning: data
definition has no type or storage class
/skiff/local/lib/gcc-lib/arm-linux/2.95.2/../../../../arm-linux/include/time.h:83: field
`it_interval' has incomplete type
/skiff/local/lib/gcc-lib/arm-linux/2.95.2/../../../../arm-linux/include/time.h:84: field
`it_value' has incomplete type
/skiff/local/lib/gcc-lib/arm-linux/2.95.2/../../../../arm-linux/include/time.h:88: field
`it_interval' has incomplete type
/skiff/local/lib/gcc-lib/arm-linux/2.95.2/../../../../arm-linux/include/time.h:89: field
`it_value' has incomplete type
xmltok.c: In function `initScan':
xmltok.c:1494: warning: subscript has type `char'
make[3]: *** [xmltok.o] Error 1
make[3]: Leaving directory
`/skiff/local/arm-linux/openbt/libs/expat/xmltok'
make[2]: *** [install-recurse] Error 1
make[2]: Leaving directory `/skiff/local/arm-linux/openbt/libs/expat'
make[1]: *** [install-recurse] Error 1
make[1]: Leaving directory `/skiff/local/arm-linux/openbt/libs'
make: *** [all] Error 2