Coder Social home page Coder Social logo

Make errors about ansible_role_iptv_analyzer HOT 2 OPEN

tubby1981 avatar tubby1981 commented on September 24, 2024
Make errors

from ansible_role_iptv_analyzer.

Comments (2)

bsmeding avatar bsmeding commented on September 24, 2024

Hi @tubby1981 ,

Just tried it with Ubuntu clean install, only with other kernel and works. Only i had to run ./configure as root and give argument for xtables.

bsmeding@iptvubuntu:~/IPTV-Analyzer$ make
make  all-recursive
make[1]: Entering directory '/home/bsmeding/IPTV-Analyzer'
Making all in iptables-module
make[2]: Entering directory '/home/bsmeding/IPTV-Analyzer/iptables-module'

  -=-=-=-=- Userspace lib -=-=-=-=-
gcc -DIPTABLES_VERSION=\"1.6.1\" -O2 -ggdb3 -Wall -fPIC -I/usr/include -D_INIT=libxt_mpeg2ts_init -c -o libxt_mpeg2ts.o libxt_mpeg2ts.c;
gcc -shared -o libxt_mpeg2ts.so libxt_mpeg2ts.o;

  -=-=-=-=- Kernel modules -=-=-=-=-
make -C /lib/modules/4.15.0-112-generic/build M=/home/bsmeding/IPTV-Analyzer/iptables-module modules
make[3]: Entering directory '/usr/src/linux-headers-4.15.0-112-generic'
  CC [M]  /home/bsmeding/IPTV-Analyzer/iptables-module/xt_mpeg2ts.o
/home/bsmeding/IPTV-Analyzer/iptables-module/xt_mpeg2ts.c:864:1: warning: ‘conn_htable_add’ defined but not used [-Wunused-function]
 conn_htable_add(struct xt_rule_mpeg2ts_conn_htable *hinfo)
 ^~~~~~~~~~~~~~~
/home/bsmeding/IPTV-Analyzer/iptables-module/xt_mpeg2ts.c:852:1: warning: ‘conn_htable_put’ defined but not used [-Wunused-function]
 conn_htable_put(struct xt_rule_mpeg2ts_conn_htable *hinfo)
 ^~~~~~~~~~~~~~~
/home/bsmeding/IPTV-Analyzer/iptables-module/xt_mpeg2ts.c:835:1: warning: ‘conn_htable_get’ defined but not used [-Wunused-function]
 conn_htable_get(uint32_t rule_id)
 ^~~~~~~~~~~~~~~
  CC [M]  /home/bsmeding/IPTV-Analyzer/iptables-module/compat_xtables.o
  Building modules, stage 2.
  MODPOST 2 modules
  CC      /home/bsmeding/IPTV-Analyzer/iptables-module/compat_xtables.mod.o
  LD [M]  /home/bsmeding/IPTV-Analyzer/iptables-module/compat_xtables.ko
  CC      /home/bsmeding/IPTV-Analyzer/iptables-module/xt_mpeg2ts.mod.o
  LD [M]  /home/bsmeding/IPTV-Analyzer/iptables-module/xt_mpeg2ts.ko
make[3]: Leaving directory '/usr/src/linux-headers-4.15.0-112-generic'
rm libxt_mpeg2ts.o
make[2]: Leaving directory '/home/bsmeding/IPTV-Analyzer/iptables-module'
Making all in collector
make[2]: Entering directory '/home/bsmeding/IPTV-Analyzer/collector'
cp lib/IPTV/Analyzer/mpeg2ts.pm blib/lib/IPTV/Analyzer/mpeg2ts.pm
cp lib/IPTV/Analyzer/.gitignore blib/lib/IPTV/Analyzer/.gitignore
cp lib/IPTV/Analyzer/Version.pm blib/lib/IPTV/Analyzer/Version.pm
cp lib/IPTV/Analyzer/snmptrap.pm blib/lib/IPTV/Analyzer/snmptrap.pm
cp lib/IPTV/Analyzer/Log4perlTrapper.pm blib/lib/IPTV/Analyzer/Log4perlTrapper.pm
cp lib/IPTV/Analyzer/Version.pm.in blib/lib/IPTV/Analyzer/Version.pm.in
cp lib/IPTV/Analyzer/Config.pm blib/lib/IPTV/Analyzer/Config.pm
cp bin/iptv-collector blib/script/iptv-collector
"/usr/bin/perl" -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/iptv-collector
Manifying 1 pod document
Manifying 3 pod documents
make[2]: Leaving directory '/home/bsmeding/IPTV-Analyzer/collector'
make[2]: Entering directory '/home/bsmeding/IPTV-Analyzer'
make[2]: Leaving directory '/home/bsmeding/IPTV-Analyzer'
make[1]: Leaving directory '/home/bsmeding/IPTV-Analyzer'
bsmeding@iptvubuntu:~/IPTV-Analyzer$

Commands to reproduce:

sudo apt update
sudo apt-get upgrade
sudo apt-get install -y autoconf git gcc make
sudo apt-get install -y linux-headers-`uname -r`
sudo apt-get install -y libxtables-dev
sudo apt-get install -y libproc-daemon-perl libproc-pid-file-perl libconfig-file-perl libdata-compare-perl liblog-log4perl-perl libnet-snmp-perl liblog-dispatch-perl
sudo apt-get install -y mariadb-server mariadb-client
git clone https://github.com/bsmeding/IPTV-Analyzer
cd IPTV-Analyzer/
./autogen.sh
whereis xtables
sudo ./configure --with-xtlibdir=/usr/lib/x86_64-linux-gnu/xtables
make

-- next steps when correct make:

  • sudo make install
  • sudo insmod iptables-module/xt_mpeg2ts.ko

Prepare the iptables:

  • sudo iptables -t mangle -I PREROUTING -i eth0 -p udp -m mpeg2ts --name in_eth0
    And make them persistant:

  • sudo apt-get -y install iptables-persistent
    (just answer Yes to all questions)
    Build the perl collector

  • cd collector/

  • perl Makefile.PL

  • make

  • sudo make install

Make sure the collector settings are correct...

  • cd /etc/iptv-analyzer/
  • sudo cp collector.conf.sample collector.conf
  • sudo vi /etc/iptv-analyzer/collector.conf
  • sudo cp log4perl.conf.sample log4perl.conf

Make the collector start at boot:

  • cd ~/IPTV-Analyzer/collector
  • chmod +x scripts/iptv-collector
  • sudo ln -s /home/bsmeding/IPTV-Analyzer/collector/scripts/iptv-collector /etc/init.d/iptv-collector
  • sudo update-rc.d iptv-collector defaults
  • cd ..

from ansible_role_iptv_analyzer.

tubby1981 avatar tubby1981 commented on September 24, 2024

Hi @bsmeding

So you are using an older kernel. In Ubuntu 20 the kernel 5.4.XX is used. The kernel 4.15 is used in Ubuntu 18.04.

I have no problem compiling the software on Debian 10 or Ubuntu 18.04. I was curious if Ubuntu 20 also going to work. But during the tests I got the errors mentioned above.

from ansible_role_iptv_analyzer.

Related Issues (1)

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.