LINUX.ORG.RU

Ошибка при компиляции nfq_filter

 , , ,


0

2
Making all in src
make[1]: Entering directory `/usr/src/nfqfilter/src'
g++ -DHAVE_CONFIG_H -I. -I../include     -std=c++0x -O2 -MT nfqthread.o -MD -MP -MF .deps/nfqthread.Tpo -c -o nfqthread.o nfqthread.cpp
nfqthread.cpp: In static member function ‘static int nfqThread::nfqueue_cb(nfq_q_handle*, nfgenmsg*, nfq_data*, void*)’:
nfqthread.cpp:232:42: error: invalid conversion from ‘unsigned char**’ to ‘char**’ [-fpermissive]
In file included from nfqthread.cpp:21:0:
/usr/include/libnetfilter_queue/libnetfilter_queue.h:99:12: error:   initializing argument 2 of ‘int nfq_get_payload(nfq_data*, char**)’ [-fpermissive]
nfqthread.cpp:260:68: error: ‘nfq_set_verdict2’ was not declared in this scope
nfqthread.cpp:334:69: error: ‘nfq_set_verdict2’ was not declared in this scope
make[1]: *** [nfqthread.o] Error 1
make[1]: Leaving directory `/usr/src/nfqfilter/src'
make: *** [all-recursive] Error 1
root@servl:/usr/src/nfqfilter# make
Making all in src
make[1]: Entering directory `/usr/src/nfqfilter/src'
g++ -DHAVE_CONFIG_H -I. -I../include     -std=c++0x -O2 -MT nfqthread.o -MD -MP -MF .deps/nfqthread.Tpo -c -o nfqthread.o nfqthread.cpp
nfqthread.cpp: In static member function ‘static int nfqThread::nfqueue_cb(nfq_q_handle*, nfgenmsg*, nfq_data*, void*)’:
nfqthread.cpp:232:42: error: invalid conversion from ‘unsigned char**’ to ‘char**’ [-fpermissive]
In file included from nfqthread.cpp:21:0:
/usr/include/libnetfilter_queue/libnetfilter_queue.h:99:12: error:   initializing argument 2 of ‘int nfq_get_payload(nfq_data*, char**)’ [-fpermissive]
nfqthread.cpp:260:68: error: ‘nfq_set_verdict2’ was not declared in this scope
nfqthread.cpp:334:69: error: ‘nfq_set_verdict2’ was not declared in this scope
make[1]: *** [nfqthread.o] Error 1
make[1]: Leaving directory `/usr/src/nfqfilter/src'
make: *** [all-recursive] Error 1

https://github.com/max197616/nfqfilter

★★★★★

Что-то не так с версией libnetfilter_queue.

Dead ★★★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.