Skip to contentSkip to conversation

iptables compile problem with glibc-2.1.3 and kernel 2.4.21

DISCUSSION Andreas Haumer 1 participant 1 message Jul 8, 2003 netfilter

lore
Share & tools
lore
#0 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi!

I have a compile problem with iptables 1.2.8:

[...]
make -j 1 BINDIR=/usr/bin LIBDIR=/usr/lib MANDIR=/usr/man KERNEL_DIR=/lib/modules/2.4.21-xss/build/
Making dependencies: please wait...
Extensions found: IPv6:ah IPv6:esp IPv6:frag IPv6:ipv6header IPv6:hbh IPv6:dst IPv6:rt
cc -O2 -Wall -Wunused -I/lib/modules/2.4.21-xss/build//include -Iinclude/ -DIPTABLES_VERSION=\"1.2.8\" -fPIC -o extensions/libipt_ah_sh.o -c extensions/libipt_ah.c ld -shared -o extensions/libipt_ah.so extensions/libipt_ah_sh.o
cc -O2 -Wall -Wunused -I/lib/modules/2.4.21-xss/build//include -Iinclude/ -DIPTABLES_VERSION=\"1.2.8\" -fPIC -o extensions/libipt_conntrack_sh.o -c extensions/libipt_conntrack.c In file included from /lib/modules/2.4.21-xss/build/include/linux/bitops.h:3,

                 from /lib/modules/2.4.21-xss/build/include/linux/netfilter_ipv4/ip_conntrack.h:9,
                 from extensions/libipt_conntrack.c:12:

/lib/modules/2.4.21-xss/build/include/asm/bitops.h:410: conflicting types for __ffs' /usr/include/string.h:247: previous declaration of __ffs'
make: *** [extensions/libipt_conntrack_sh.o] Error 1
[...]

Headers under "/usr/include/" come from glibc-2.1.3 "/lib/modules/2.4.21-xss/build/" is a symlink pointing to linux-2.4.21 kernel sources (with ac4 patches)

Linux 2.4 and glibc-2.1.3 seem to have a different understanding about __ffs(). Both use their own one...

Usually, this is not a problem, as userspace programs don't include kernel headers, but iptables does.

I checked the mailing lists for glibc, linux-kernel and iptables for solutions, but couldn't find any.

Any idea anyone?

- - andreas

- --

Andreas Haumer                     | mailto:[email protected]
*x Software + Systeme              | http://www.xss.co.at/
Karmarschgasse 51/2/20             | Tel: +43-1-6060114-0
A-1100 Vienna, Austria             | Fax: +43-1-6060114-71

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE/Cpf0xJmyeGcXPhERAgV4AJ41x3dVZP28Uqf8e0Z+mH6QXXfnvACguiNf 7qNlvwr0SX/6F6kjjqga0JU=
=g7zb
-----END PGP SIGNATURE-----