Due to abuse by spammers, please send an email to bugzilla-account@netfilter.org to request an account to report bugs, sorry for the inconvenience.
Bug 569 - in6addr_any undeclared
Summary: in6addr_any undeclared
Status: RESOLVED FIXED
Alias: None
Product: iptables
Classification: Unclassified
Component: unknown (show other bugs)
Version: git (please indicate commit ID)
Hardware: All All
: P1 blocker
Assignee: Jan Engelhardt
URL:
Depends on:
Blocks:
 
Reported: 2009-01-13 13:34 CET by Bernhard Reutner-Fischer
Modified: 2009-04-05 13:44 CEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bernhard Reutner-Fischer 2009-01-13 13:34:28 CET
Both iptables-20090111 as well as 1.4.1, 1.4.2 (i.e. since the buildsystem overhaul) fail to build if one turns off IPv6 support.

Previously there was a DO_IPV6 knob in the Makefiles that could be used to
build a purely IPv4-enabled iptables but this was removed.

Other packages do provide an --enable-ipv6 resp. --disable-ipv6 configure option to allow for toggling IPv6 support.

Would (re-)adding a configure knob to turn off IPv6 support be accepted?
If not, how do you suggest can we turn off IPv6 support for (embedded) setups that deliberately omit IPv6 or, in the future, IPv4 support from their libc's?

Thanks alot in advance for your comments.


Excerpt from the logs:
$ nm -D lib/libuClibc-0.9.30.so | grep _addr
0000000000043f33 T arc4random_addrandom
000000000003de34 T inet_addr
$ tail -n 4 nohup.out
/bin/sh ./libtool --tag=CC   --mode=link /there/src/buildroot.git.x86_64/x86_64_build/staging/usr/bin/x86_64-linux-uclibc-gcc  --sysroot=/there/src/buildroot.git.x86_64/x86_64_build/staging/ -isysroot /there/src/buildroot.git.x86_64/x86_64_build/staging -I=/usr/include -D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64       -D_REENTRANT -Wall -Waggregate-return -Wmissing-declarations    -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes     -Winline -pipe  -DXTABLES_LIBDIR=\"/usr/lib/xtables\" -DXTABLES_INTERNAL -I./include -I./include  -Os -pipe -fno-tree-dominator-opts -fno-tree-loop-optimize -fgcse-sm -fgcse-las -fgcse-after-reload  -fPIC -DPIC -rdynamic  -o iptables iptables-standalone.o iptables.o -ldl -lm libiptc/libiptc.a extensions/libext4.a libxtables.la 
/there/src/buildroot.git.x86_64/x86_64_build/staging/usr/bin/x86_64-linux-uclibc-gcc --sysroot=/there/src/buildroot.git.x86_64/x86_64_build/staging/ -isysroot /there/src/buildroot.git.x86_64/x86_64_build/staging -I=/usr/include -D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -D_REENTRANT -Wall -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes -Winline -pipe -DXTABLES_LIBDIR=\"/usr/lib/xtables\" -DXTABLES_INTERNAL -I./include -I./include -Os -pipe -fno-tree-dominator-opts -fno-tree-loop-optimize -fgcse-sm -fgcse-las -fgcse-after-reload -fPIC -DPIC -rdynamic -o iptables iptables-standalone.o iptables.o  -ldl -lm libiptc/libiptc.a extensions/libext4.a ./.libs/libxtables.so -Wl,--rpath -Wl,/there/src/buildroot.git.x86_64/x86_64_build/iptables-20090111/.libs
./.libs/libxtables.so: undefined reference to `in6addr_any'
collect2: ld returned 1 exit status
make[3]: *** [iptables] Error 1
Comment 1 Jan Engelhardt 2009-04-03 22:42:25 CEST
note to self: queued as 9c0fa7d8c84dc2478bd36d31b328b697fbe4d0af.
Comment 2 Jan Engelhardt 2009-04-05 13:44:05 CEST
Committed.