<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>1371</bug_id>
          
          <creation_ts>2011-08-15 19:01:49 +0000</creation_ts>
          <short_desc>bluez-hcidump-2.0-r0: do_compile: Failed:  redefinition of ntoh64</short_desc>
          <delta_ts>2011-08-18 21:55:19 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>connectivity</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Dexuan Cui">dexuan.cui</reporter>
          <assigned_to name="Dexuan Cui">dexuan.cui</assigned_to>
          <cc>dongxiao.xu</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>sgw</cc>
    
    <cc>tong.lin</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>15475</commentid>
    <comment_count>0</comment_count>
    <who name="Dexuan Cui">dexuan.cui</who>
    <bug_when>2011-08-15 19:01:49 +0000</bug_when>
    <thetext>The build failed on today&apos;s  latest build:

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



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

This is the patch
http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=dcui/master&amp;id=cd0a5986954a21ae2544b050882ef6c768ae39fa</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15496</commentid>
    <comment_count>3</comment_count>
    <who name="Dongxiao Xu">dongxiao.xu</who>
    <bug_when>2011-08-16 20:08:54 +0000</bug_when>
    <thetext>*** Bug 1373 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15523</commentid>
    <comment_count>4</comment_count>
    <who name="Dexuan Cui">dexuan.cui</who>
    <bug_when>2011-08-17 09:24:04 +0000</bug_when>
    <thetext>Fixed by http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=ad96bb7f006409601631b7c8043164ec320f13a5</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>