Bug#713641: l7-filter-userspace: FTBFS: l7-queue.cpp:199:34: error: invalid conversion from 'char**' to 'unsigned char**' [-fpermissive]
Source: l7-filter-userspace
Version: 0.12-beta1-1
Severity: serious
Tags: jessie sid
User: debian-qa@lists.debian.org
Usertags: qa-ftbfs-20130620 qa-ftbfs
Justification: FTBFS on amd64
Hi,
During a rebuild of all packages in sid, your package failed to build on
amd64.
Relevant part:
> g++ -DHAVE_CONFIG_H -I. -g -O2 -c -o l7-queue.o l7-queue.cpp
> l7-queue.cpp: In function 'int l7_queue_cb(nfq_q_handle*, nfgenmsg*, nfq_data*, void*)':
> l7-queue.cpp:80:12: warning: 'int nfq_set_verdict_mark(nfq_q_handle*, u_int32_t, u_int32_t, u_int32_t, u_int32_t, const unsigned char*)' is deprecated (declared at /usr/include/libnetfilter_queue/libnetfilter_queue.h:85) [-Wdeprecated-declarations]
> return nfq_set_verdict_mark(qh, id, NF_ACCEPT, htonl(wholemark), 0, NULL);
> ^
> l7-queue.cpp:80:77: warning: 'int nfq_set_verdict_mark(nfq_q_handle*, u_int32_t, u_int32_t, u_int32_t, u_int32_t, const unsigned char*)' is deprecated (declared at /usr/include/libnetfilter_queue/libnetfilter_queue.h:85) [-Wdeprecated-declarations]
> return nfq_set_verdict_mark(qh, id, NF_ACCEPT, htonl(wholemark), 0, NULL);
> ^
> l7-queue.cpp: In member function 'u_int32_t l7_queue::handle_packet(nfq_data*, nfq_q_handle*)':
> l7-queue.cpp:199:34: error: invalid conversion from 'char**' to 'unsigned char**' [-fpermissive]
> ret = nfq_get_payload(tb, &data);
> ^
> In file included from l7-queue.cpp:55:0:
> /usr/include/libnetfilter_queue/libnetfilter_queue.h:119:12: error: initializing argument 2 of 'int nfq_get_payload(nfq_data*, unsigned char**)' [-fpermissive]
> extern int nfq_get_payload(struct nfq_data *nfad, unsigned char **data);
> ^
> l7-queue.cpp:281:10: warning: 'int nfq_set_verdict_mark(nfq_q_handle*, u_int32_t, u_int32_t, u_int32_t, u_int32_t, const unsigned char*)' is deprecated (declared at /usr/include/libnetfilter_queue/libnetfilter_queue.h:85) [-Wdeprecated-declarations]
> return nfq_set_verdict_mark(qh, id, NF_ACCEPT,
> ^
> l7-queue.cpp:282:77: warning: 'int nfq_set_verdict_mark(nfq_q_handle*, u_int32_t, u_int32_t, u_int32_t, u_int32_t, const unsigned char*)' is deprecated (declared at /usr/include/libnetfilter_queue/libnetfilter_queue.h:85) [-Wdeprecated-declarations]
> htonl((mark<<maskfirstbit)|wholemark), 0, NULL);
> ^
> make[2]: *** [l7-queue.o] Error 1
The full build log is available from:
http://aws-logs.debian.net/ftbfs-logs/2013/06/20/l7-filter-userspace_0.12-beta1-1_unstable.log
A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!
About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.
Reply to: