Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling from source Debian 7 #68

Closed
pcmerc opened this issue Jun 30, 2015 · 3 comments
Closed

Compiling from source Debian 7 #68

pcmerc opened this issue Jun 30, 2015 · 3 comments

Comments

@pcmerc
Copy link

pcmerc commented Jun 30, 2015

echo "deb http://ftp.de.debian.org/debian wheezy-backports main" > /etc/apt/sources.list.d/backports.list
apt-get update && apt-get dist-upgrade
apt-get install git screen vim build-essential devscripts libnetfilter-queue-dev autoconf libtool libpcap-dev libjson0-dev autogen automake autoconf libtool libjsoncpp-dev
libjson-glib-dev libjson-c-dev libcurl4-openssl-dev libsqlite3-dev libgeoip-dev libxml2-dev

mkdir /usr/xxx
cd /usr/xxx
git clone https://github.com/ntop/ntopng.git
git clone https://github.com/ntop/nDPI.git

cd nDPI
./autogen.sh
./configure
make
make install

cd ../ntopng
./autogen.sh
./configure
make

Same exact error on a fresh build vm instance of Debian 7.8 w/latest updates applied

src/NetfilterInterface.cpp: In function ‘int netfilter_callback(nfq_q_handle_, nfgenmsg_, nfq_data_, void_)’:
src/NetfilterInterface.cpp:86:64: error: invalid conversion from ‘unsigned char**’ to ‘char**’ [-fpermissive]
In file included from /usr/xxx/ntopng/include/ntop_includes.h:107:0,
from src/NetfilterInterface.cpp:22:
/usr/include/libnetfilter_queue/libnetfilter_queue.h:99:12: error: initializing argument 2 of ‘int nfq_get_payload(nfq_data_, char__)’ [-fpermissive]
make: *_* [src/NetfilterInterface.o] Error 1

Please explain your build environment

@ariava
Copy link
Contributor

ariava commented Jun 30, 2015

@pcmerc it seems you are using an old version of libnetfilter-queue. Recently the prototype of the nfq_get_payload() function has been changed (http://netfilter.vger.kernel.narkive.com/mebh6OoE/patch-libnetfilter-queue-1-3-non-modified-payload-arguments-are-pointer-to-const) and it seems the version you are using does not include such change. We cannot drop support for the current libnetfilter-queue in favour of an old version. Could you please try updating libnetfilter-queue?

@pcmerc
Copy link
Author

pcmerc commented Jun 30, 2015

But as Luca stated, he built it on a debian 7.7 environment. So he must not be using the default packages. Did update his base using source or someones newer version in deb format? I have no issues compiling a newer version just trying to understand.

@pcmerc
Copy link
Author

pcmerc commented Jun 30, 2015

Ok, built some updated debs for libnetfilter-queue1 - 1.0.2
libnetfilter-queue1_1.0.2-1_amd64.deb
libnetfilter-queue-dev_1.0.2-1_amd64.deb
Compiled with no errors now. Thanks Ariava :D

@pcmerc pcmerc closed this as completed Jun 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants