Bug#856711: "netlink/genl/genl.h: No such file or directory" although libnl-3-dev is installed

2017-03-04 Thread Romain Francoise
On Sat, Mar 04, 2017 at 06:10:28PM +0100, jean-christophe manciot wrote:
> However, it seems that a .dsc file is necessary to build libpcap from
> source with *sudo pbuilder build *.dsc*, and no such file exist with git
> sources.
> What am I missing?

You need to build a source package first, please refer to the pbuilder
user's manual.

-- 
Romain Francoise 
https://people.debian.org/~rfrancoise/



Bug#856711: "netlink/genl/genl.h: No such file or directory" although libnl-3-dev is installed

2017-03-04 Thread jean-christophe manciot
Package: libpcap
Version: 1.8.1-3

Building deb package from git sources
*https://anonscm.debian.org/git/users/rfrancoise/libpcap.git
 on master
branch at debian/1.8.1-3 tag* with:

echo 
echo Cleaning
echo 
cd git-libpcap
sudo -u actionmystique -H git-reset-clean-pull-checkout.sh $branch
$tag

echo ---
echo Checking Build Dependencies
echo ---
check-build-dependencies.sh

echo 
echo Building
echo 
sudo -u actionmystique -H git checkout -b pristine-tar
origin/pristine-tar
sudo -u actionmystique -H git checkout $branch
sudo -u actionmystique -H gbp buildpackage --git-verbose
--git-debian-branch=$branch --git-upstream-branch=upstream

leads to:

...
config.status: executing default-1 commands
configure: WARNING: *unrecognized options: --disable-silent-rules,
--disable-maintainer-mode, --disable-dependency-tracking*
   dh_auto_build
make -j1
make[1]: Entering directory
'/home/actionmystique/Program-Files/Ubuntu/Libpcap/git-libpcap'
gcc -fvisibility=hidden -g -O2
-fdebug-prefix-map=/home/actionmystique/Program-Files/Ubuntu/Libpcap/git-libpcap=.
-fstack-protector-strong -Wformat -Werror=format-security -I.
 -Ilinux/include -I/usr/include/dbus-1.0
-I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -DBUILDING_PCAP
-DHAVE_CONFIG_H  -D_U_="__attribute__((unused))" -g -O2
-fdebug-prefix-map=/home/actionmystique/Program-Files/Ubuntu/Libpcap/git-libpcap=.
-fstack-protector-strong -Wformat -Werror=format-security-Wdate-time
-D_FORTIFY_SOURCE=2 -c -o pcap-linux.o ./pcap-linux.c
*./pcap-linux.c:248:31: fatal error: netlink/genl/genl.h: No such file or
directory*
 #include 
   ^
compilation terminated.
Makefile:88: recipe for target 'pcap-linux.o' failed
make[1]: *** [pcap-linux.o] Error 1

Although:
# apt-file search netlink/genl/genl.h
libnl-3-dev: /usr/include/libnl3/netlink/genl/genl.h
# apt-cache policy libnl-3-dev
libnl-3-dev:
  Installed: 3.2.27-1

-- 
Jean-Christophe Manciot