Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

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
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Ronald van Haren (pressh)
Architecture x86_64
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

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
Comment by Eric Belanger (Snowman) - Tuesday, 09 August 2011, 05:09 GMT
$ ldd -r /usr/lib/iptables/libxt_statistic.so
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.
Comment by Dan McGee (toofishes) - Tuesday, 09 August 2011, 15:38 GMT Comment by christophe yayon (cyayon) - Friday, 02 September 2011, 08:31 GMT
same problem with last 1.4.12.1 release.
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


Comment by christophe yayon (cyayon) - Friday, 02 September 2011, 09:49 GMT
same problem with last 1.4.12.1 release.
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


Loading...