Bug 1371 - bluez-hcidump-2.0-r0: do_compile: Failed: redefinition of ntoh64
Summary: bluez-hcidump-2.0-r0: do_compile: Failed: redefinition of ntoh64
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: connectivity (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.1
Assignee: Dexuan Cui
QA Contact:
URL:
Whiteboard:
: 1373 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-08-15 19:01 UTC by Dexuan Cui
Modified: 2011-08-18 21:55 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dexuan Cui 2011-08-15 19:01:49 UTC
The build failed on today's  latest build:

OE Build Configuration:
BB_VERSION        = "1.13.3"
TARGET_ARCH       = "i586"
TARGET_OS         = "linux"
MACHINE           = "qemux86"
DISTRO            = "poky"
DISTRO_VERSION    = "1.0+snapshot-20110815"
TUNE_FEATURES     = "m32 i586"
TARGET_FPU        = ""
meta
meta-yocto        = "master:a21ff559e7c93e9da61104f4a33e42e6004189fd"



|   i586-poky-linux-gcc  -m32   -march=i586 --sysroot=/distro/dcui/0816/p1/build/tmp/sysroots/qemux86 -DHAVE_CONFIG_H -I.     -O2 -pipe -g -feliminate-unused-debug-types -MT parser/sdp.o -MD -MP -MF $depbase.
|   mv -f $depbase.Tpo $depbase.Po
| src/hcidump.c:54:24: error: redefinition of 'ntoh64'
| /distro/dcui/0816/p1/build/tmp/sysroots/qemux86/usr/include/bluetooth/bluetooth.h:185:24: note: previous definition of 'ntoh64' was here
| make[1]: *** [src/hcidump.o] Error 1


Looks the cause is: bluez4 was updated from 4.82 to 4.96 last night.
I suppose the fix is: we should update bluez-hcidump to 2.1, too.
Comment 1 Dexuan Cui 2011-08-15 20:10:14 UTC
(In reply to comment #0)
> The build failed on today's  latest build:
> 
> OE Build Configuration:
> BB_VERSION        = "1.13.3"
> TARGET_ARCH       = "i586"
> TARGET_OS         = "linux"
> MACHINE           = "qemux86"
> DISTRO            = "poky"
> DISTRO_VERSION    = "1.0+snapshot-20110815"
> TUNE_FEATURES     = "m32 i586"
> TARGET_FPU        = ""
> meta
> meta-yocto        = "master:a21ff559e7c93e9da61104f4a33e42e6004189fd"
> 
> 
> 
> |   i586-poky-linux-gcc  -m32   -march=i586
> --sysroot=/distro/dcui/0816/p1/build/tmp/sysroots/qemux86 -DHAVE_CONFIG_H -I.  
>   -O2 -pipe -g -feliminate-unused-debug-types -MT parser/sdp.o -MD -MP -MF
> $depbase.
> |   mv -f $depbase.Tpo $depbase.Po
> | src/hcidump.c:54:24: error: redefinition of 'ntoh64'
> |
> /distro/dcui/0816/p1/build/tmp/sysroots/qemux86/usr/include/bluetooth/bluetooth.h:185:24:
> note: previous definition of 'ntoh64' was here
> | make[1]: *** [src/hcidump.o] Error 1
> 
> 
> Looks the cause is: bluez4 was updated from 4.82 to 4.96 last night.
> I suppose the fix is: we should update bluez-hcidump to 2.1, too.
Upgrading it to 2.1 can fix the issue:
In 2.1 the duplicated definition of ntoh64 was removed.

And looks 2.1 and 2.0 have few differences in other aspects, so it should be ok for us to use 2.1.

I'll send a patch out today.
Comment 2 Dexuan Cui 2011-08-16 02:14:50 UTC
(In reply to comment #1)
> (In reply to comment #0)
> > The build failed on today's  latest build:
> > 
> > OE Build Configuration:
> > BB_VERSION        = "1.13.3"
> > TARGET_ARCH       = "i586"
> > TARGET_OS         = "linux"
> > MACHINE           = "qemux86"
> > DISTRO            = "poky"
> > DISTRO_VERSION    = "1.0+snapshot-20110815"
> > TUNE_FEATURES     = "m32 i586"
> > TARGET_FPU        = ""
> > meta
> > meta-yocto        = "master:a21ff559e7c93e9da61104f4a33e42e6004189fd"
> > 
> > 
> > 
> > |   i586-poky-linux-gcc  -m32   -march=i586
> > --sysroot=/distro/dcui/0816/p1/build/tmp/sysroots/qemux86 -DHAVE_CONFIG_H -I.  
> >   -O2 -pipe -g -feliminate-unused-debug-types -MT parser/sdp.o -MD -MP -MF
> > $depbase.
> > |   mv -f $depbase.Tpo $depbase.Po
> > | src/hcidump.c:54:24: error: redefinition of 'ntoh64'
> > |
> > /distro/dcui/0816/p1/build/tmp/sysroots/qemux86/usr/include/bluetooth/bluetooth.h:185:24:
> > note: previous definition of 'ntoh64' was here
> > | make[1]: *** [src/hcidump.o] Error 1
> > 
> > 
> > Looks the cause is: bluez4 was updated from 4.82 to 4.96 last night.
> > I suppose the fix is: we should update bluez-hcidump to 2.1, too.
> Upgrading it to 2.1 can fix the issue:
> In 2.1 the duplicated definition of ntoh64 was removed.
> 
> And looks 2.1 and 2.0 have few differences in other aspects, so it should be ok
> for us to use 2.1.
> 
> I'll send a patch out today.

This is the patch
http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=dcui/master&id=cd0a5986954a21ae2544b050882ef6c768ae39fa
Comment 3 Dongxiao Xu 2011-08-16 20:08:54 UTC
*** Bug 1373 has been marked as a duplicate of this bug. ***