FS#25358 - [iptables] libxt_statistic.so undefined symbol: lround
Attached to Project:
Arch Linux
Opened by christophe yayon (cyayon) - Tuesday, 02 August 2011, 07:21 GMT
Last edited by Ronald van Haren (pressh) - Friday, 02 September 2011, 16:06 GMT
Opened by christophe yayon (cyayon) - Tuesday, 02 August 2011, 07:21 GMT
Last edited by Ronald van Haren (pressh) - Friday, 02 September 2011, 16:06 GMT
|
Details
Description:
When trying to load a iptables statistics rule, got following error : ---- /usr/lib/iptables/libxt_statistic.so: /usr/lib/iptables/libxt_statistic.so: undefined symbol: lround iptables v1.4.11.1: Couldn't load match `statistic':Success ---- For example, the rule : iptables -t mangle -A MWAN -m statistic --mode random --probability 0.5 -j MWAN2 Of course, the rule is NOT successfully loaded (iptables -L -n -v verification)... Encounter this problem with versions : 1.4.12 and 1.4.11, but no problem with 1.4.10 and before... Thanks. Additional info: * package version(s) 1.4.12 1.4.11 * config and/or log files etc. Steps to reproduce: Just load statistic module in iptables 1.4.11 and 1.4.12 no problem with 1.4.10 |
This task depends upon
Closed by Ronald van Haren (pressh)
Friday, 02 September 2011, 16:06 GMT
Reason for closing: Fixed
Additional comments about closing: added the workaround in 1.4.12.1
Friday, 02 September 2011, 16:06 GMT
Reason for closing: Fixed
Additional comments about closing: added the workaround in 1.4.12.1
linux-vdso.so.1 => (0x00007fffa6bff000)
libc.so.6 => /lib/libc.so.6 (0x00007f8b4d16e000)
/lib/ld-linux-x86-64.so.2 (0x00007f8b4d6fb000)
undefined symbol: xt_params (/usr/lib/iptables/libxt_statistic.so)
undefined symbol: xtables_option_parse (/usr/lib/iptables/libxt_statistic.so)
undefined symbol: lround (/usr/lib/iptables/libxt_statistic.so)
undefined symbol: xtables_register_match (/usr/lib/iptables/libxt_statistic.so)
To fix the lround missing symbol, I believe the library needs to link to libm. The xt* missing sybols are also missing from other iptables libraries so I'm not sure if they really need to be fixed.
When building using ./configure LDFLAGS="-lm" no more problem.
Here is a modified configure ion build() of PKGBUILD :
./configure LDFLAGS="-lm" --prefix=/usr \
--libexecdir=/usr/lib/iptables --sysconfdir=/etc \
--with-xtlibdir=/usr/lib/iptables \
--enable-devel --enable-libipq
When building using ./configure LDFLAGS="-lm" no more problem.
Here is a modified configure ion build() of PKGBUILD :
./configure LDFLAGS="-lm" --prefix=/usr \
--libexecdir=/usr/lib/iptables --sysconfdir=/etc \
--with-xtlibdir=/usr/lib/iptables \
--enable-devel --enable-libipq