Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 517772

Summary: net-libs/libpcap-1.6.1 USE=bluetooth with net-wireless/bluez-5 - ./pcap-bt-monitor-linux.c:42:28: fatal error: bluetooth/mgmt.h: No such file or directory
Product: Gentoo Linux Reporter: Jeroen Roovers (RETIRED) <jer>
Component: [OLD] LibraryAssignee: Gentoo Netmon project <netmon>
Status: RESOLVED FIXED    
Severity: normal CC: cornicx, email, eras, pacho, pageexec, polynomial-c
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://git.kernel.org/cgit/bluetooth/bluez.git/commit/Makefile.am?id=1b7226cb33dfd03522862d6dda7a0f9afc4c5878
See Also: https://github.com/the-tcpdump-group/libpcap/issues/345
https://github.com/the-tcpdump-group/libpcap/issues/343
https://bugs.gentoo.org/show_bug.cgi?id=517806
Whiteboard:
Package list:
Runtime testing required: ---

Description Jeroen Roovers (RETIRED) gentoo-dev 2014-07-22 10:27:38 UTC
Apparently, net-wireless/bluez-5 no longer installs /usr/include/bluetooth/mgmt.h, and just now that the libpcap developers found a way of using it.

I've set a very bad and very temporary dependency on bluetooth? ( <net-wireless/bluez-5 ) in the libpcap-1.6.1 ebuild because of this.

Pacho: What headers did bluez upstream replace bluetooth/mgmt.h with?
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-07-22 11:12:48 UTC
I have patched configure to check for that header, but somehow I think more is needed.
Comment 2 Pacho Ramos gentoo-dev 2014-07-22 11:24:14 UTC
On my system looks like the header is in the kernel:
/usr/src/linux-3.15.5-gentoo/include/net/bluetooth/mgmt.h

I am looking at google to try to know if we should provide it by bluez too :/
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2014-07-22 20:23:29 UTC
*** Bug 517806 has been marked as a duplicate of this bug. ***
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2014-07-22 20:44:39 UTC
Lars: are you still seeing this with the latest changes?

  22 Jul 2014; Jeroen Roovers <jer@gentoo.org> libpcap-1.6.1.ebuild,
  +files/libpcap-1.6.1-configure.patch,
  +files/libpcap-1.6.1-prefix-solaris.patch:
  Check for bluetooth/mgmt.h (net-wireless/bluez-4) before use (bug #517772).
  Convert sed scripts to patches.
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2014-07-23 01:21:39 UTC
*** Bug 517828 has been marked as a duplicate of this bug. ***
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2014-07-23 01:25:55 UTC
*** Bug 517834 has been marked as a duplicate of this bug. ***
Comment 7 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2014-07-23 06:39:50 UTC
(In reply to Jeroen Roovers from comment #4)
> Lars: are you still seeing this with the latest changes?
> 
>   22 Jul 2014; Jeroen Roovers <jer@gentoo.org> libpcap-1.6.1.ebuild,
>   +files/libpcap-1.6.1-configure.patch,
>   +files/libpcap-1.6.1-prefix-solaris.patch:
>   Check for bluetooth/mgmt.h (net-wireless/bluez-4) before use (bug #517772).
>   Convert sed scripts to patches.

Still not fixed.
Comment 8 Jeroen Roovers (RETIRED) gentoo-dev 2014-07-23 08:11:45 UTC
(In reply to Lars Wendler (Polynomial-C) from comment #7)
> Still not fixed.

I can't reproduce that. Can I get the usual info, please?
Comment 9 Jeroen Roovers (RETIRED) gentoo-dev 2014-08-16 15:30:30 UTC
I added bluetooth/mgmt.h from bluez-4 to the build system. Seems to work.