Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 250210 - app-mobilephone/obexftp-0.22: failed to build with 'bluetooth' USE flag
Summary: app-mobilephone/obexftp-0.22: failed to build with 'bluetooth' USE flag
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Alin Năstac (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-07 20:59 UTC by Sergey Morozov
Modified: 2009-03-30 19:54 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,41.53 KB, text/plain)
2008-12-07 21:01 UTC, Sergey Morozov
Details
emerge --info (emerge-info,5.50 KB, text/plain)
2008-12-07 21:01 UTC, Sergey Morozov
Details
Adds missing include to obexftpd.c (obexftp-0.22-btooth.patch,331 bytes, patch)
2008-12-08 22:06 UTC, Cosmin Giradu
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Morozov 2008-12-07 20:59:38 UTC
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
Comment 1 Sergey Morozov 2008-12-07 21:01:06 UTC
Created attachment 174595 [details]
build.log
Comment 2 Sergey Morozov 2008-12-07 21:01:58 UTC
Created attachment 174597 [details]
emerge --info
Comment 3 Arttu Valo 2008-12-08 09:48:43 UTC
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.
Comment 4 Piotr Malinski 2008-12-08 10:10:26 UTC
I can confirm that obexftp-0.22 will compile against dev-libs/openobex-1.3 but not dev-libs/openobex-1.4 on amd64.
Comment 5 Sergey Morozov 2008-12-08 10:14:04 UTC
>I suppose this is the same error message in
English?

Yes, this is the same message
Comment 6 Cosmin Giradu 2008-12-08 22:06:40 UTC
Created attachment 174672 [details, diff]
Adds missing include to obexftpd.c
Comment 7 Cosmin Giradu 2008-12-08 22:12:09 UTC
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)
Comment 8 Sergey Morozov 2008-12-09 06:29:02 UTC
After applying this patch, obexftp compiled succesfuly with penobex-1.4
Comment 9 Sergey Morozov 2008-12-09 06:30:10 UTC
(In reply to comment #8)
> with penobex-1.4
with openobex-1.4

Comment 10 Alin Năstac (RETIRED) gentoo-dev 2008-12-11 20:26:18 UTC
Fixed in cvs, without revision bump.
Comment 11 Serdar Dere 2009-03-30 19:54:53 UTC
(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.