GithubHelp home page GithubHelp logo

Compiling from source Debian 7 about ntopng HOT 16 CLOSED

ntop avatar ntop commented on May 12, 2024
Compiling from source Debian 7

from ntopng.

Comments (16)

ariava avatar ariava commented on May 12, 2024

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

from ntopng.

lucaderi avatar lucaderi commented on May 12, 2024

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

from ntopng.

zekicker avatar zekicker commented on May 12, 2024

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

from ntopng.

lucaderi avatar lucaderi commented on May 12, 2024

Same as above: no problem on debian 7.7

from ntopng.

pcmerc avatar pcmerc commented on May 12, 2024

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

from ntopng.

pcmerc avatar pcmerc commented on May 12, 2024

Loading up a fresh instance to verify the build failure.

from ntopng.

pcmerc avatar pcmerc commented on May 12, 2024

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

from ntopng.

pcmerc avatar pcmerc commented on May 12, 2024

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

from ntopng.

gav- avatar gav- commented on May 12, 2024

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

from ntopng.

lucaderi avatar lucaderi commented on May 12, 2024

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

from ntopng.

MartinAparicio avatar MartinAparicio commented on May 12, 2024

is there any solution? I have the same problem

from ntopng.

lucaderi avatar lucaderi commented on May 12, 2024

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.

from ntopng.

MartinAparicio avatar MartinAparicio commented on May 12, 2024

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

from ntopng.

lucaderi avatar lucaderi commented on May 12, 2024

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.

from ntopng.

pcmerc avatar pcmerc commented on May 12, 2024

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 <[email protected] mailto:[email protected]> 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!

from ntopng.

lucaderi avatar lucaderi commented on May 12, 2024

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

from ntopng.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.