Skip to content

build failing - netfilterqueue.c:268:10: fatal error: libnfnetlink/linux_nfnetlink.h: No such file or directory #1

Open
@adrelanos

Description

@adrelanos
./build.sh 
[Build] Downloading archive, verifying sha256, and extracting...
--2019-10-06 15:32:31--  https://pypi.python.org/packages/7b/c3/204d47c1c47a7fd6ac1e4e341bdc6021f8142e6c7b6e488436592a6d2488/NetfilterQueue-0.7.tar.gz
Resolving pypi.python.org (pypi.python.org)... 151.101.8.223, 2a04:4e42:2::223
Connecting to pypi.python.org (pypi.python.org)|151.101.8.223|:443... connected.
HTTP request sent, awaiting response... 301 Redirect to Primary Domain
Location: https://pypi.org/packages/7b/c3/204d47c1c47a7fd6ac1e4e341bdc6021f8142e6c7b6e488436592a6d2488/NetfilterQueue-0.7.tar.gz [following]
--2019-10-06 15:32:31--  https://pypi.org/packages/7b/c3/204d47c1c47a7fd6ac1e4e341bdc6021f8142e6c7b6e488436592a6d2488/NetfilterQueue-0.7.tar.gz
Resolving pypi.org (pypi.org)... 151.101.192.223, 151.101.128.223, 151.101.64.223, ...
Connecting to pypi.org (pypi.org)|151.101.192.223|:443... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://files.pythonhosted.org/packages/7b/c3/204d47c1c47a7fd6ac1e4e341bdc6021f8142e6c7b6e488436592a6d2488/NetfilterQueue-0.7.tar.gz [following]
--2019-10-06 15:32:32--  https://files.pythonhosted.org/packages/7b/c3/204d47c1c47a7fd6ac1e4e341bdc6021f8142e6c7b6e488436592a6d2488/NetfilterQueue-0.7.tar.gz
Resolving files.pythonhosted.org (files.pythonhosted.org)... 151.101.9.63, 2a04:4e42:2::319
Connecting to files.pythonhosted.org (files.pythonhosted.org)|151.101.9.63|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 55215 (54K) [application/octet-stream]
Saving to: ‘NetfilterQueue-0.7.tar.gz’

NetfilterQueue-0.7.tar.gz                       100%[=====================================================================================================>]  53.92K  --.-KB/s    in 0.1s    

2019-10-06 15:32:38 (503 KB/s) - ‘NetfilterQueue-0.7.tar.gz’ saved [55215/55215]

[Build] SHA256 matches. (= f24c592a0d2e8b2233ee365528fc1f90f7e3d80cb35c09195e3aafe3d451eac5)
[Build] Creating virtualenv...
Already using interpreter /usr/bin/python3
Using base prefix '/usr'
New python executable in /home/user/python3-netfilterqueue-packager/src/bin/python3
Also creating executable in /home/user/python3-netfilterqueue-packager/src/bin/python
Installing setuptools, pkg_resources, pip, wheel...done.
[Build] Installing netfilterqueue in virtualenv...
running install
running build
running build_ext
building 'netfilterqueue' extension
creating build
creating build/temp.linux-x86_64-3.7
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.7m -I/home/user/python3-netfilterqueue-packager/src/include/python3.7m -c netfilterqueue.c -o build/temp.linux-x86_64-3.7/netfilterqueue.o
netfilterqueue.c:268:10: fatal error: libnfnetlink/linux_nfnetlink.h: No such file or directory
 #include "libnfnetlink/linux_nfnetlink.h"
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
[Build] Copying binaries to package directory...
cp: cannot stat 'NetfilterQueue*.egg-info': No such file or directory
cp: cannot stat 'netfilterqueue*.so': No such file or directory
du: cannot access 'package/usr/lib/python3/dist-packages/NetfilterQueue-0.7.egg-info': No such file or directory
du: cannot access 'package/usr/lib/python3/dist-packages/netfilterqueue.cpython*': No such file or directory
./build.sh: line 39: +  : syntax error: operand expected (error token is "+  ")
Package installed size:  kilobytes
Python 3 version: 3.7, next version: 3.8
dpkg-deb: building package 'python3-netfilterqueue' in 'python3-netfilterqueue_0.7_amd64.deb'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions