tcpcopy ftbfs in raring (missing headers in linux-libc-dev)

Bug #1163290 reported by Matthias Klose on 2013-04-02
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Tim Gardner
Tim Gardner
tcpcopy (Ubuntu)

Bug Description

tcpcopy ftbfs in raring (missing headers in linux-libc-dev)

gcc -DHAVE_CONFIG_H -I. -I. -I. -D_FORTIFY_SOURCE=2 -g -Wall -Wunused-function -pedantic -I../communication -I../core -I../event -I../interception -I../mysql -I../tcpcopy -I../util -c tc_daemon.c
In file included from tc_daemon.c:2:0:
./xcopy.h:14:43: fatal error: linux/netfilter_ipv4/ip_queue.h: No such file or directory
compilation terminated.
make[4]: *** [tc_daemon.o] Error 1

these header files are included in Debian, but not in Ubuntu

Matthias Klose (doko) on 2013-04-02
tags: added: ftbfs
Changed in linux (Ubuntu Raring):
importance: Undecided → Medium
Changed in tcpcopy (Ubuntu Raring):
milestone: none → ubuntu-13.04-beta-1

This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:

apport-collect 1163290

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
tags: added: raring
Matthias Klose (doko) wrote :

no, it's complete

Changed in linux (Ubuntu Raring):
status: Incomplete → Confirmed
Tim Gardner (timg-tpi) on 2013-04-02
Changed in linux (Ubuntu Raring):
assignee: nobody → Tim Gardner (timg-tpi)
status: Confirmed → In Progress
Tim Gardner (timg-tpi) wrote :

From the 3.8 kernel: Documentation/ABI/removed/ip_queue
What: ip_queue
Date: finally removed in kernel v3.5.0
Contact: Pablo Neira Ayuso <email address hidden>
 ip_queue has been replaced by nfnetlink_queue which provides
 more advanced queueing mechanism to user-space. The ip_queue
 module was already announced to become obsolete years ago.


Changed in linux (Ubuntu Raring):
status: In Progress → Invalid
Tim Gardner (timg-tpi) wrote :

tcpcopy relies on a kernel feature that no longer exists. ip_queue support was deprecated as of v3.5.

Changed in tcpcopy (Ubuntu Raring):
status: Confirmed → Won't Fix
Matthias Klose (doko) wrote :

removed tcpcopy for raring:

Removing packages from raring-proposed:
 tcpcopy 0.6.3-1 in raring
Comment: lp: #1163290, package relies on a kernel feature which doesn't exist anymore
1 package successfully removed.

Matthias Klose (doko) on 2013-04-02
Changed in tcpcopy (Ubuntu):
status: Confirmed → Won't Fix
milestone: ubuntu-13.04-beta-1 → none
wangbin579 (wangbin579) wrote :

We have fixed the above problem in version 0.7.0 .

       a) on the target host (root privilege is required):

          using ip queue (kernel < 3.5):
            modprobe ip_queue # if not running
            iptables -I OUTPUT -p tcp --sport port -j QUEUE # if not set


          using nfqueue (kernel >= 3.5):
            iptables -I OUTPUT -p tcp --sport port -j NFQUEUE # if not set

       b) on the source host (root privilege is required):
          sudo ./tcpcopy -x localServerPort-targetServerIP:targetServerPort

If the kernel version is v3.5.0 or above, tcpcopy 0.7.0 will automatically use nfqueue instead of ip queue, and
"-j QUEUE" in the iptables command should be changed to "-j NFQUEUE"

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers