Source: bluez-hcidump Version: 2.0-2 Severity: serious Tags: patch Hi,
bluez-hcidump FTBFS on current unstable. ----- # source='src/hcidump.c' object='src/hcidump.o' libtool=no gcc -DHAVE_CONFIG_H -I. -g -O2 -g -O2 -Wall -c -o src/hcidump.o src/hcidump.c src/hcidump.c:54:24: error: redefinition of 'ntoh64' /usr/include/bluetooth/bluetooth.h:185:24: note: previous definition of 'ntoh64' was here make[2]: *** [src/hcidump.o] Error 1 ----- This problem already revised in git repository. http://git.kernel.org/?p=bluetooth/bluez-hcidump.git;a=commit;h=95ea4ff5c9c7dbda2f3faaef4e5cd46d542a48c8 Please check your package. Best regards, Nobuhiro -- Nobuhiro Iwamatsu iwamatsu at {nigauri.org / debian.org} GPG ID: 40AD1FA6
From 95ea4ff5c9c7dbda2f3faaef4e5cd46d542a48c8 Mon Sep 17 00:00:00 2001 From: Anderson Lizardo <anderson.liza...@openbossa.org> Date: Fri, 18 Mar 2011 15:10:19 -0400 Subject: [PATCH] Fix compilation against latest BlueZ BlueZ now has ntoh64()/hton64() functions in bluetooth.h, therefore the hcidump local copy is not necessary. --- src/hcidump.c | 16 ---------------- 1 files changed, 0 insertions(+), 16 deletions(-) diff --git a/src/hcidump.c b/src/hcidump.c index af086c7..2023130 100644 --- a/src/hcidump.c +++ b/src/hcidump.c @@ -50,22 +50,6 @@ #include "parser/parser.h" #include "parser/sdp.h" -#if __BYTE_ORDER == __LITTLE_ENDIAN -static inline uint64_t ntoh64(uint64_t n) -{ - uint64_t h; - uint64_t tmp = ntohl(n & 0x00000000ffffffff); - h = ntohl(n >> 32); - h |= tmp << 32; - return h; -} -#elif __BYTE_ORDER == __BIG_ENDIAN -#define ntoh64(x) (x) -#else -#error "Unknown byte order" -#endif -#define hton64(x) ntoh64(x) - #define SNAP_LEN HCI_MAX_FRAME_SIZE #define DEFAULT_PORT "10839"; -- 1.7.4.1