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 #51

Closed
pcmerc opened this issue Jun 11, 2015 · 16 comments
Closed

Compiling from source Debian 7 #51

pcmerc opened this issue Jun 11, 2015 · 16 comments

Comments

@pcmerc
Copy link

pcmerc commented Jun 11, 2015

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

@ariava ariava added the Bug label Jun 11, 2015
@ariava ariava added this to the ntopng 2.1 milestone Jun 11, 2015
@ariava ariava self-assigned this Jun 11, 2015
@ariava
Copy link
Contributor

ariava commented Jun 11, 2015

@pcmerc seems that different versons of libnetfilter_queue have different prototypes for the nfq_get_payload() function. We'll discuss about this issue shortly.

@lucaderi
Copy link
Member

@pcmerc I have just compiled on Debian 7.7 and it compiles flawlessly.

@zekicker
Copy link

I've the same issue there !

src/NetfilterInterface.cpp: In function 'int netfilter_callback(nfq_q_handle_, nfgenmsg_, nfq_data_, void_)':
src/NetfilterInterface.cpp:86: error: invalid conversion from 'unsigned char**' to 'char**'
src/NetfilterInterface.cpp:86: error: initializing argument 2 of 'int nfq_get_payload(nfq_data_, char__)'
make: *_* [src/NetfilterInterface.o] Error 1

@lucaderi
Copy link
Member

Same as above: no problem on debian 7.7

@pcmerc
Copy link
Author

pcmerc commented Jun 30, 2015

I've removed nDPI & updated to the latest GIT version.
I've also updated to the latest version of ntopng through git.
Previous versions built no problem.

I am still receiving the same error & I'm running the latest deb 7 release.
Do I need to setup a new vm instance & prove otherwise?

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

@pcmerc
Copy link
Author

pcmerc commented Jun 30, 2015

Loading up a fresh instance to verify the build failure.

@pcmerc
Copy link
Author

pcmerc commented Jun 30, 2015

New compile on fresh build of debian 7.8 running now
nDPI compiled & installed prior

@pcmerc
Copy link
Author

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

@gav-
Copy link

gav- commented Aug 8, 2015

Same issue, have to remove libnetfilter-queue-dev package to compile on Debian 7.8

@gav- gav- unassigned ariava Aug 8, 2015
@lucaderi
Copy link
Member

lucaderi commented Aug 8, 2015

Please send us a patch for inclusion. I do not use Debian,

@MartinAparicio
Copy link

is there any solution? I have the same problem

@lucaderi
Copy link
Member

Said that we are working at packaging Debian .deb I see the the latest version is 8.2, so in no case we will support v7. Please start moving to 8x.

@MartinAparicio
Copy link

Thanks for the answer but I do not use Debian, I use Gentoo.

But this error is because of what? It is missing some plug upgrade? Or the version of the kernel?

regards

@lucaderi
Copy link
Member

Your netfilter library is too old as the API has changed. We cannot support all Linux distro and multiple versions of them. You need to help yourself and send us a patch, or move to a distribution we use and support.

@pcmerc
Copy link
Author

pcmerc commented Oct 2, 2015

I was able to get it working on 7 by building an updated deb for a dependency.

Works for me on both 7 & 8 :D

John~

On Sep 30, 2015, at 2:09 PM, Luca Deri <notifications@github.com mailto:notifications@github.com> wrote:

Your netfilter library is too old as the API has changed. We cannot support all Linux distro and multiple versions of them. You need to help yourself and send us a patch, or move to a distribution we use and support.


Reply to this email directly or view it on GitHub #51 (comment).

!DSPAM:255,560c4f7912361333364254!

@lucaderi
Copy link
Member

lucaderi commented Oct 2, 2015

Note that we release Debian 8 binaries: http://packages.ntop.org/apt/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants