app-mobilephone/obexftp-0.22 failed to build with 'bluetooth' USE flag Reproducible: Always Steps to Reproduce: 1. try to build app-mobilephone/obexftp-0.22 with 'bluetooth' use flag
Created attachment 174595 [details] build.log
Created attachment 174597 [details] emerge --info
Emerging obexftp works here on amd64 with the stable dev-libs/openobex-1.3, but fails with the unstable 1.4 (I suppose this is the same error message in English?): if x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -O2 -march=athlon64 -fomit-frame-pointer -pipe -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) obexftpd.c:891: error: (Each undeclared identifier is reported only once obexftpd.c:891: error: for each function it appears in.) make[2]: *** [obexftpd.o] Error 1 make[2]: *** Waiting for unfinished jobs.... obexftp.c: In function ‘cli_connect_uuid’: obexftp.c:268: warning: pointer targets in passing argument 5 of ‘obexftp_connect_src’ differ in signedness obexftp.c: In function ‘probe_device’: obexftp.c:410: warning: pointer targets in passing argument 1 of ‘probe_device_uuid’ differ in signedness obexftp.c:413: warning: pointer targets in passing argument 1 of ‘probe_device_uuid’ differ in signedness make[2]: Leaving directory `/var/tmp/portage/app-mobilephone/obexftp-0.22/work/obexftp-0.22/apps' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/app-mobilephone/obexftp-0.22/work/obexftp-0.22' make: *** [all] Error 2 Given that the first error is on line 81, it would hint that bdaddr_t is not properly defined? Comparing the obex.h from openobex 1.3 and 1.4, there has been some odd changes in #define's where bdaddr_t is involved.
I can confirm that obexftp-0.22 will compile against dev-libs/openobex-1.3 but not dev-libs/openobex-1.4 on amd64.
>I suppose this is the same error message in English? Yes, this is the same message
Created attachment 174672 [details, diff] Adds missing include to obexftpd.c
Comment on attachment 174672 [details, diff] Adds missing include to obexftpd.c struct bdaddr_t is defined in bluetooth.h (which obexftpd.c doesn't include)
After applying this patch, obexftp compiled succesfuly with penobex-1.4
(In reply to comment #8) > with penobex-1.4 with openobex-1.4
Fixed in cvs, without revision bump.
(In reply to comment #7) > (From update of attachment 174672 [details, diff] [edit]) > struct bdaddr_t is defined in bluetooth.h (which obexftpd.c doesn't include) > But obexftp_sdp.c does. And obexftp_sdp.h is included in obexftp_sdp.c and obexftpd.c so putting the include line from obexftp_sdp.c to obexftp_sdp.h would be much better I guess to get rid of twice loading.