Return-Path: MIME-Version: 1.0 In-Reply-To: <9F2B2656C8747B498D56A7B30FF5EB9FF291E9@CNMAIL13.cn.utstarcom.com> References: <6b53b1990902160446s14960c17j32da4f778d623234@mail.gmail.com> <9F2B2656C8747B498D56A7B30FF5EB9FF291E9@CNMAIL13.cn.utstarcom.com> Date: Mon, 16 Feb 2009 23:20:03 -0300 Message-ID: <6b53b1990902161820g596a4fc1wfa3c053b81bb315b@mail.gmail.com> Subject: Re: OBEX profile support From: "Gustavo F. Padovan" To: Yao Ye Cc: linux-bluetooth@vger.kernel.org Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-bluetooth-owner@vger.kernel.org List-ID: On Mon, Feb 16, 2009 at 10:05 PM, Yao Ye 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@las.ic.unicamp.br gtalk: gfpadovan@gmail.com mobile: +55 19 81030803