RE: OBEX profile support

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

 



> 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
--
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

[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux