On Wednesday 2009-01-21 20:11, jamal wrote:
>>  But it is not really my problem. 
>
>It is ethically my problem, unfortunately. I wrote it and there are
>users out there.

Heh.

>> >Does it compile?
>> 
>> Mostly. I cannot get iproute2 compiled because it cannot find
>> the definitions for struct tcmsg, but I think I got rid of all
>> the iptables-related compile errors.
>
>If you are on debian - you should be able to install iproute-dev package
>and be fine I think. I just dload the tree.

No, this is iproute2 which is missing some stuff.
Specifically, doing this squashes away another compile error:

diff --git a/tc/tc_util.h b/tc/tc_util.h
index d84b09a..216d6cd 100644
--- a/tc/tc_util.h
+++ b/tc/tc_util.h
@@ -2,9 +2,11 @@
 #define _TC_UTIL_H_ 1
 
 #define MAX_MSG 16384
+#include <linux/types.h>
 #include <linux/pkt_sched.h>
 #include <linux/pkt_cls.h>
 #include <linux/gen_stats.h>
+#include <linux/rtnetlink.h>
 #include "tc_core.h"
 
 /* This is the deprecated multiqueue interface */


>In any case, I am afraid that still doesnt fix the backward/forward
>compat challenge.

First things first. If you can get it to run with current libxtables.so,
perhaps with some more changes as needed, you can call that an
achievement and later fix the old m_ipt.

>#include <xtables.h>
>#include <xtables/internal.h>

>------
>/home/hadi/iptables-src/iptables-1.4.2/.libs//libxtables.so: undefined
>reference to `program_version'
>/home/hadi/iptables-src/iptables-1.4.2/.libs//libxtables.so: undefined
>reference to `afinfo'
>/home/hadi/iptables-src/iptables-1.4.2/.libs//libxtables.so: undefined
>reference to `exit_error'
>/home/hadi/iptables-src/iptables-1.4.2/.libs//libxtables.so: undefined
>reference to `program_name'
>collect2: ld returned 1 exit status

You tried a link. I only compiled it (partially, due to the errors).
However, program_version, afinfo and program_name are supposed to
be provided by the program itself (iptables, ip6tables, not libxtables)
in this case m_ipt.c.



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to