Skip to content

Commit

Permalink
Fix Error loading language plugin /usr/lib64/YaST2/plugin/libpy2lang_…
Browse files Browse the repository at this point in the history
…python3.so

With python3.8 we get

Error loading language plugin /usr/lib64/YaST2/plugin/libpy2lang_python3.so: /usr/lib64/YaST2/plugin/libpy2lang_python3.so: undefined symbol: PyExc_ValueError

when executing yast (this causes real problems with samba-client)

Problem is between python 3.6 & python 3.8 the values of some config
variables have changed

python 3.6
  PYTHON_LDFLAGS='-lpython3.6m -lpthread -ldl  -lutil -lm '
  PYTHON_LIBS='-L/usr/lib64 -lpython3.6m'

python 3.8
  PYTHON_LDFLAGS=' -lcrypt -lpthread -ldl  -lutil -lm -lm '
  PYTHON_LIBS='-L/usr/lib64 -lpython3.8'

since make only uses PYTHON_LDFLAGS we get problems on python 3.8

Signed-off-by: Noel Power <noel.power@suse.com>
  • Loading branch information
noelpower committed Mar 12, 2020
1 parent d526734 commit 5079943
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ uninstall-hook:

SOURCES = Y2PythonComponent.cc Y2CCPython.cc YPython.cc YPythonNamespace.cc YCPDeclarations.cc yast.cpp yast-core_wrap.cxx Y2PythonClientComponent.cc Y2CCPythonClient.cc YPythonCode.cc PythonLogger.cc
LIB_LIBADD = -L$(py2langdir) -lpy2UI -lpy2wfm
LIB_LDFLAGS = -module ${PYTHON_LDFLAGS} -Wl,-rpath=$(pyexecdir)
LIB_LDFLAGS = -module ${PYTHON_LDFLAGS} ${PYTHON_LIBS} -Wl,-rpath=$(pyexecdir)
LIB_CPPFLAGS = -std=c++11 -I/usr/include/YaST2 ${PYTHON_CPPFLAGS} -Wno-terminate -Wno-format-security -Wno-format-nonliteral

if HAVE_PY3
Expand Down

0 comments on commit 5079943

Please sign in to comment.