Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 277366 - net-firewall/iptables-1.4.3.2 fails to build against uclibc with disabled IPv6 support
Summary: net-firewall/iptables-1.4.3.2 fails to build against uclibc with disabled IPv...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-10 22:39 UTC by Christian Affolter
Modified: 2009-07-27 18:15 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
iptables-1.4.3.2-ipv6-use-flag.patch (iptables-1.4.3.2-ipv6-use-flag.patch,1.52 KB, text/plain)
2009-07-10 22:41 UTC, Christian Affolter
Details
iptables-1.4.3.2-ipv6-use-flag.patch (iptables-1.4.3.2-ipv6-use-flag.patch,1.46 KB, patch)
2009-07-27 10:30 UTC, Christian Affolter
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Affolter 2009-07-10 22:39:35 UTC
net-firewall/iptables-1.4.3.2 fails to build against sys-libs/uclibc-0.9.30.1-r1  if it lacks IPv6 support:

ip6tables_static-ip6tables.o: In function `print_firewall':
ip6tables.c:(.text+0x7dc): undefined reference to `in6addr_any'
ip6tables.c:(.text+0x8d5): undefined reference to `in6addr_any'
collect2: ld returned 1 exit status
make[2]: *** [ip6tables-static] Error 1


Please find attached a patch against net-firewall/iptables-1.4.3.2 which provides an ipv6 USE-flag. If the flag isn't set, iptables will be compiled with '--disable-ipv6' and no ip6tables* related files will be merged.
Comment 1 Christian Affolter 2009-07-10 22:41:22 UTC
Created attachment 197488 [details]
iptables-1.4.3.2-ipv6-use-flag.patch

Patch against iptables-1.4.3.2.ebuild with ipv6 enable/disable functionality.
Comment 2 SpanKY gentoo-dev 2009-07-26 19:26:29 UTC
Comment on attachment 197488 [details]
iptables-1.4.3.2-ipv6-use-flag.patch

this patch is a regression.  declaring flags in a local var rather than passing straight to econf is wrong.

presumably the only econf change needed is to add a line like:
$(use_enable ipv6)
Comment 3 Christian Affolter 2009-07-27 10:28:42 UTC
Ok, I modified the ebuild and created a new patch, according to http://devmanual.gentoo.org/ebuild-writing/functions/src_compile/configuring/index.html
Comment 4 Christian Affolter 2009-07-27 10:30:13 UTC
Created attachment 199318 [details, diff]
iptables-1.4.3.2-ipv6-use-flag.patch

corrected patch
Comment 5 SpanKY gentoo-dev 2009-07-27 18:15:53 UTC
thanks, that looks fine to me.  tweaked and added to 1.4.4.

http://sources.gentoo.org/net-firewall/iptables/iptables-1.4.4.ebuild?r1=1.1&r2=1.2