Fedora 31 : firewall-cmd : ImportError undefined symbol: XML_SetHashSalt Hint

LD_LIBRARY_PATH  problem!

lib64 vs old lib 32 conflict.

 

# firewall-cmd 

--------------------------------------

Traceback (most recent call last):

  File "/usr/bin/firewall-cmd", line 31, in <module>

    from firewall.client import FirewallClient, FirewallClientIPSetSettings, \

  File "/usr/lib/python3.7/site-packages/firewall/client.py", line 28, in <module>

    import dbus.mainloop.glib

  File "/usr/lib64/python3.7/site-packages/dbus/__init__.py", line 95, in <module>

    from dbus._dbus import Bus, SystemBus, SessionBus, StarterBus

  File "/usr/lib64/python3.7/site-packages/dbus/_dbus.py", line 39, in <module>

    from dbus.bus import BusConnection

  File "/usr/lib64/python3.7/site-packages/dbus/bus.py", line 39, in <module>

    from dbus.connection import Connection

  File "/usr/lib64/python3.7/site-packages/dbus/connection.py", line 37, in <module>

    from dbus.proxies import ProxyObject

  File "/usr/lib64/python3.7/site-packages/dbus/proxies.py", line 34, in <module>

    from dbus._expat_introspect_parser import process_introspection_data

  File "/usr/lib64/python3.7/site-packages/dbus/_expat_introspect_parser.py", line 26, in <module>

    from xml.parsers.expat import ParserCreate

  File "/usr/lib64/python3.7/xml/parsers/expat.py", line 4, in <module>

    from pyexpat import *

ImportError: /usr/lib64/python3.7/lib-dynload/pyexpat.cpython-37m-x86_64-linux-gnu.so: undefined symbol: XML_SetHashSalt

--------------------------------------

check LD_LIBRARY

# ldd /usr/lib64/python3.7/lib-dynload/pyexpat.cpython-37m-x86_64-linux-gnu.so

--------------------------------------

linux-vdso.so.1 (0x00007ffec55ff000)

libexpat.so.1 => /home/oracle/app/oracle/product/11.2.0/dbhome_1/lib/libexpat.so.1 (0x00007f6d324dc000)

libpython3.7m.so.1.0 => /usr/lib64/libpython3.7m.so.1.0 (0x00007f6d32191000)

libc.so.6 => /usr/lib64/libc.so.6 (0x00007f6d31fc8000)

libpthread.so.0 => /usr/lib64/libpthread.so.0 (0x00007f6d31fa6000)

libdl.so.2 => /usr/lib64/libdl.so.2 (0x00007f6d31f9f000)

libutil.so.1 => /usr/lib64/libutil.so.1 (0x00007f6d31f9a000)

libm.so.6 => /usr/lib64/libm.so.6 (0x00007f6d31e52000)

/lib64/ld-linux-x86-64.so.2 (0x00007f6d32621000)

--------------------------------------

change library priority, lib64 first

vi /etc/profile

LD_LIBRARY_PATH=/usr/lib64:$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH

 

--------------------------------------

# ldd /usr/lib64/python3.7/lib-dynload/pyexpat.cpython-37m-x86_64-linux-gnu.so

linux-vdso.so.1 (0x00007fff13eeb000)

libexpat.so.1 => /usr/lib64/libexpat.so.1 (0x00007f8b81ed7000)

libpython3.7m.so.1.0 => /usr/lib64/libpython3.7m.so.1.0 (0x00007f8b81b8c000)

libc.so.6 => /usr/lib64/libc.so.6 (0x00007f8b819c3000)

libpthread.so.0 => /usr/lib64/libpthread.so.0 (0x00007f8b819a1000)

libdl.so.2 => /usr/lib64/libdl.so.2 (0x00007f8b8199a000)

libutil.so.1 => /usr/lib64/libutil.so.1 (0x00007f8b81995000)

libm.so.6 => /usr/lib64/libm.so.6 (0x00007f8b8184d000)

/lib64/ld-linux-x86-64.so.2 (0x00007f8b81f19000)

--------------------------------------

[Solved]