Skip to contentSkip to conversation

iptables: undefined symbol: xtables_find_target_revision

DISCUSSION Neal P. Murphy 1 participant 1 message Apr 13, 2019 4 messages not in the archive netfilter

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#4 lore raw

Actually, because it's 'xtlibDIR', I believe the option should be
--with-xtlibdir=/lib

Quoted 113 lines · On Sat, 13 Apr 2019 11:24:46 +0200 nhhabsburglothringen…

More interesting suggestion, very very thank.

Today I will try to compiling with the modifications suggested and I will send the result.

Actualy, in my sistem (debian 9):

in /lib I have the libxtables.so.12.2.0 and the directory xtables with all other
library;

I have not the /usr/lib64;

in /lib64 I have only one symbolic link to ld-linux-x86-64.so.2 that point to /lib/x86_64-linux-gnu/ld-2.24.so.

I will try with and without the directive --libdir=/lib/x86_64-linux-gnu (that may is the correct pat for my 64bit library).

After done, I will report the result

Emy

Il 13/04/2019 02:42, Duncan Roe ha scritto:

Quoted 86 lines · nhhabsburglothringen
Quoted 14 lines

-------- Messaggio Inoltrato --------
Oggetto: Re: iptables: undefined symbol: xtables_find_target_revision
Data: Sat, 13 Apr 2019 00:56:20 +0200
Mittente: nhhabsburglothringen <[email protected]>
A: Duncan Roe <[email protected]>

Hi, thank you.

I have test the 1.8.2 and the 1.8.0 with the same result.

Quoted 58 lines

The older 1.6.2, working fine (I have completed the check).

May be there are a bug ?

Emy

Il 10/04/2019 13:11, Duncan Roe ha scritto:

Quoted 51 lines · nhhabsburglothringen
Quoted 4 lines

Seems to be a problem of version 1.8 because compiling the 1.6.2 whitout any modify, all working fine (I reserve further checks but it seems to be so).

Quoted 35 lines

Can be a problem linked to the new name *legacy (maybe some library don't recognize it).

Any idea ?

Emy

Il 09/04/2019 21:14, nhhabsburglothringen ha scritto:

Quoted 27 lines

Hi to all.

I have compiled from source iptables v1.8.2 on debian 9 with a kernel 4.9.144-rt93 64bit also recompiled for enable use of imq as module and other stuff.

no error configurig (./configure CFLAGS="-ggdb3 -O0 -DDEBUG" --prefix=/usr --sbindir=/sbin --enable-libipq --enable-bpf-compiler --with-xtlibdir=/lib/xtables) nor during compiling with make, but running when I try to write a rule (for example: iptables -I FORWARD -j port-filter (after iptables -N port-filter) if I type iptables -L I get this error:

Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

iptables: symbol lookup error: iptables: undefined symbol:
xtables_find_target_revision

There are some person that can help me ?

Thank in advance,

Emilio

--
Please avoid sending me Word or PowerPoint attachments. See http://www.gnu.org/philosophy/no-word-attachments.html

1.8.1 is latest.

xtables_find_target_revision is supplied by libxtables.so.12.1.0

Hope that's some help,

Cheers ... Duncan.

Hi Emy,

Your ./config directive --with-xtlibdir=/lib/xtables looks wrong to me - I think it should be --with-xtlibdir=/lib/libxtables

                                  ~~~

Why do you think you need it anyway? I would miss it out.

When building for 64-bit, I always include --libdir=/usr/lib64. Maybe some Makefiles look after that but it's in the SlackBuild template so I always use it.

Cheers ... Duncan.