Skip to contentSkip to conversation

compiling nat_sip and ip_conntrack_h323 and pptp_conntrack_nat

DISCUSSION Ming-Ching Tiew 2 participants 3 messages Oct 17, 2005 – Oct 19, 2005

lore
Share & tools
lore
#0 lore raw

Below is the error I got with kernel 2.6.13.4 with patch-o-matic-ng10051016 :-

CC [M] net/ipv4/netfilter/ip_conntrack_sip.o
CC [M] net/ipv4/netfilter/ip_nat_sip.o
net/ipv4/netfilter/ip_nat_sip.c: In function `ip_nat_sip':
net/ipv4/netfilter/ip_nat_sip.c:97: warning: ISO C90 forbids mixed declarations and code
CC [M] net/ipv4/netfilter/ip_conntrack_h323_core.o
CC [M] net/ipv4/netfilter/ip_conntrack_h323_h225.o
net/ipv4/netfilter/ip_conntrack_h323_h225.c: In function `h225_parse_connect_uuie':
net/ipv4/netfilter/ip_conntrack_h323_h225.c:111: error: too few arguments to function ip_conntrack_expect_alloc' net/ipv4/netfilter/ip_conntrack_h323_h225.c:135: warning: implicit declaration of function ip_conntrack_expect_free' make[3]: *** [net/ipv4/netfilter/ip_conntrack_h323_h225.o] Error 1
make[2]: *** [net/ipv4/netfilter] Error 2
make[1]: *** [net/ipv4] Error 2
make: *** [net] Error 2

And I can't apply pptp_conntrack_nat :-

Do you want to apply this patch [N/y/t/f/a/r/b/w/q/?] y cannot apply (1 rejects out of 7 hunks)

Regards.

#1 lore raw
Quoted 4 lines · Ming-Ching Tiew

CC [M] net/ipv4/netfilter/ip_conntrack_sip.o
CC [M] net/ipv4/netfilter/ip_nat_sip.o
net/ipv4/netfilter/ip_nat_sip.c: In function `ip_nat_sip':
net/ipv4/netfilter/ip_nat_sip.c:97: warning: ISO C90 forbids mixed declarations and code

There is a C99 declaration there...

What compiler are you using?

Quoted 3 lines

net/ipv4/netfilter/ip_conntrack_h323_h225.c: In function `h225_parse_connect_uuie':
net/ipv4/netfilter/ip_conntrack_h323_h225.c:111: error: too few arguments to function ip_conntrack_expect_alloc' net/ipv4/netfilter/ip_conntrack_h323_h225.c:135: warning: implicit declaration of function ip_conntrack_expect_free'

Looks like the h323 helper needs to be updated to work with the current kernels.

The first should read ip_conntrack_expect_alloc(ct) instead of ip_conntrack_expect_alloc(). (ct within the parantesis).

The second line calling ip_conntrack_expect_free probably should just be deleted. Does not seem to be needed anymore.

Quoted 4 lines

And I can't apply pptp_conntrack_nat :-

Do you want to apply this patch [N/y/t/f/a/r/b/w/q/?] y cannot apply (1 rejects out of 7 hunks)

Same as for h323. Patch needs to be updated to work with current kernels.

For pptp can try to select "force" and then apply the failed pieces manually usinga text editor (see the created .rej file for details on what to change). After that you probably need similar manual massaging to get it to compile as for the h323 patch.

Regards
Henrik

#2 lore raw

From: "Henrik Nordstrom" <[email protected]>

Quoted 6 lines
Quoted 1 line

net/ipv4/netfilter/ip_nat_sip.c:97: warning: ISO C90 forbids mixed declarations and code

There is a C99 declaration there...

What compiler are you using?

I am using gcc 3.4.3.

Regards.