On Mon, Feb 16, 2009 at 10:05 PM, Yao Ye <yeyao@xxxxxxxxxx> wrote: > >> I have openobex compiled, but obexftp fail to compile due to its > bluetooth code. > >> if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -g -O2 -W >> -Wundef -Wmissing-declarations -Wmissing-prototypes -Wall -MT > obexftpd.o -MD -MP -MF ".deps/obexftpd.Tpo" -c -o obexftpd.o obexftpd.c; > \ >> then mv -f ".deps/obexftpd.Tpo" ".deps/obexftpd.Po"; else rm > -f ".deps/obexftpd.Tpo"; exit 1; fi >> obexftpd.c:81: error: expected '=', ',', ';', 'asm' or '__attribute__' >> before '*' token >> obexftpd.c: In function 'start_server': >> obexftpd.c:891: warning: implicit declaration of function > 'BtOBEX_ServerRegister' >> obexftpd.c:891: error: 'bt_src' undeclared (first use in this > function) > > in obexftp-0.22-arm\apps\obexftpd.c, > del static bdaddr_t *bt_src = NULL; > and add as below, > then compile again. > > > #ifdef HAVE_BLUETOOTH > > //static bdaddr_t *bt_src = NULL; //del by yaoye > > //add by yaoye > struct { > uint8_t b[6]; > } __attribute__((packed)) *bt_src = NULL; > > #endif Thank's. It works now. :-) > -- Gustavo F. Padovan Computer Engineering Student Institute of Computing - IC University of Campinas - UNICAMP email: gustavo@xxxxxxxxxxxxxxxxx gtalk: gfpadovan@xxxxxxxxx mobile: +55 19 81030803 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html