Compile fails on Ubuntu 20.03 LTS
Compile fails on Ubuntu 20.03.3.LTS:
% ./ccb.py --qt5 --verbose --make=install
...
[ 98%] Linking CXX executable cx2y
cd /home/verhaegs/coriolis-2.x/Linux.u2003_64/Release.Shared/build/crlcore/src/x2y && /usr/bin/cmake -E cmake_link_script CMakeFiles/cx2y.dir/link.txt --verbose=1
/usr/bin/c++ -std=c++11 -Wall -O2 -DNDEBUG -rdynamic CMakeFiles/cx2y.dir/cx2y_autogen/mocs_compilation.cpp.o CMakeFiles/cx2y.dir/x2y.cpp.o -o cx2y -L/home/verhaegs/coriolis-2.x/Linux.u2003_64/Release.Shared/build/crlcore/src/ccore -Wl,-rpath,/home/verhaegs/coriolis-2.x/Linux.u2003_64/Release.Shared/build/crlcore/src/ccore:/home/verhaegs/coriolis-2.x/Linux.x86_64/Release.Shared/install/lib64: ../ccore/libcrlcore.so.1.0 -lpython3.8 /home/verhaegs/coriolis-2.x/Linux.x86_64/Release.Shared/install/lib64/libpytypemanager.so /home/verhaegs/coriolis-2.x/Linux.x86_64/Release.Shared/install/lib64/libisobar.so /home/verhaegs/coriolis-2.x/Linux.x86_64/Release.Shared/install/lib64/libviewer.so /home/verhaegs/coriolis-2.x/Linux.x86_64/Release.Shared/install/lib64/libhurricane.so /home/verhaegs/coriolis-2.x/Linux.x86_64/Release.Shared/install/lib64/libutils.so /home/verhaegs/coriolis-2.x/Linux.x86_64/Release.Shared/install/lib64/libconfiguration.so /home/verhaegs/coriolis-2.x/Linux.x86_64/Release.Shared/install/lib64/libdef.so /home/verhaegs/coriolis-2.x/Linux.x86_64/Release.Shared/install/lib64/libdefzlib.so /home/verhaegs/coriolis-2.x/Linux.x86_64/Release.Shared/install/lib64/liblef.so /home/verhaegs/coriolis-2.x/Linux.x86_64/Release.Shared/install/lib64/liblefzlib.so /usr/lib/x86_64-linux-gnu/libQt5PrintSupport.so.5.12.8 /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.12.8 /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5.12.8 /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.12.8 /usr/lib/x86_64-linux-gnu/libboost_program_options.so.1.71.0 /usr/lib/x86_64-linux-gnu/libboost_system.so.1.71.0 -lxml2 -lutil
/usr/bin/ld: /home/verhaegs/coriolis-2.x/Linux.x86_64/Release.Shared/install/lib64/libviewer.so: undefined reference to `_Py_Dealloc'
/usr/bin/ld: /home/verhaegs/coriolis-2.x/Linux.x86_64/Release.Shared/install/lib64/libviewer.so: undefined reference to `PyLong_FromLong'
/usr/bin/ld: /home/verhaegs/coriolis-2.x/Linux.x86_64/Release.Shared/install/lib64/libviewer.so: undefined reference to `PyList_Insert'
/usr/bin/ld: /home/verhaegs/coriolis-2.x/Linux.x86_64/Release.Shared/install/lib64/libviewer.so: undefined reference to `PyErr_Print'
/usr/bin/ld: /home/verhaegs/coriolis-2.x/Linux.x86_64/Release.Shared/install/lib64/libviewer.so: undefined reference to `PyUnicode_FromString'
/usr/bin/ld: /home/verhaegs/coriolis-2.x/Linux.x86_64/Release.Shared/install/lib64/libisobar.so: undefined reference to `PyBytes_AsString'
/usr/bin/ld: /home/verhaegs/coriolis-2.x/Linux.x86_64/Release.Shared/install/lib64/libisobar.so: undefined reference to `PyList_SetItem'
/usr/bin/ld: /home/verhaegs/coriolis-2.x/Linux.x86_64/Release.Shared/install/lib64/libviewer.so: undefined reference to `PyErr_Clear'
/usr/bin/ld: /home/verhaegs/coriolis-2.x/Linux.x86_64/Release.Shared/install/lib64/libviewer.so: undefined reference to `PyCallable_Check'
/usr/bin/ld: /home/verhaegs/coriolis-2.x/Linux.x86_64/Release.Shared/install/lib64/libviewer.so: undefined reference to `PyObject_Malloc'
/usr/bin/ld: /home/verhaegs/coriolis-2.x/Linux.x86_64/Release.Shared/install/lib64/libviewer.so: undefined reference to `PyErr_WarnEx'
/usr/bin/ld: /home/verhaegs/coriolis-2.x/Linux.x86_64/Release.Shared/install/lib64/libviewer.so: undefined reference to `PyObject_Call'
/usr/bin/ld: /home/verhaegs/coriolis-2.x/Linux.x86_64/Release.Shared/install/lib64/libisobar.so: undefined reference to `PyList_Size'
/usr/bin/ld: /home/verhaegs/coriolis-2.x/Linux.x86_64/Release.Shared/install/lib64/libviewer.so: undefined reference to `PyTuple_New'
/usr/bin/ld: /home/verhaegs/coriolis-2.x/Linux.x86_64/Release.Shared/install/lib64/libisobar.so: undefined reference to `PyObject_CallFunctionObjArgs'
/usr/bin/ld: /home/verhaegs/coriolis-2.x/Linux.x86_64/Release.Shared/install/lib64/libviewer.so: undefined reference to `PyObject_GenericGetAttr'
/usr/bin/ld: /home/verhaegs/coriolis-2.x/Linux.x86_64/Release.Shared/install/lib64/libisobar.so: undefined reference to `PyUnicode_AsASCIIString'
/usr/bin/ld: /home/verhaegs/coriolis-2.x/Linux.x86_64/Release.Shared/install/lib64/libviewer.so: undefined reference to `PyErr_Occurred'
/usr/bin/ld: /home/verhaegs/coriolis-2.x/Linux.x86_64/Release.Shared/install/lib64/libviewer.so: undefined reference to `PyDict_SetItem'
/usr/bin/ld: /home/verhaegs/coriolis-2.x/Linux.x86_64/Release.Shared/install/lib64/libviewer.so: undefined reference to `PyDict_SetItemString'
/usr/bin/ld: /home/verhaegs/coriolis-2.x/Linux.x86_64/Release.Shared/install/lib64/libviewer.so: undefined reference to `PyImport_ImportModule'
/usr/bin/ld: /home/verhaegs/coriolis-2.x/Linux.x86_64/Release.Shared/install/lib64/libisobar.so: undefined reference to `PyLong_Type'
/usr/bin/ld: /home/verhaegs/coriolis-2.x/Linux.x86_64/Release.Shared/install/lib64/libviewer.so: undefined reference to `PyErr_SetString'
/usr/bin/ld: /home/verhaegs/coriolis-2.x/Linux.x86_64/Release.Shared/install/lib64/libisobar.so: undefined reference to `PyList_GetItem'
/usr/bin/ld: /home/verhaegs/coriolis-2.x/Linux.x86_64/Release.Shared/install/lib64/libisobar.so: undefined reference to `PyObject_IsInstance'
/usr/bin/ld: /home/verhaegs/coriolis-2.x/Linux.x86_64/Release.Shared/install/lib64/libviewer.so: undefined reference to `PyThreadState_Get'
/usr/bin/ld: /home/verhaegs/coriolis-2.x/Linux.x86_64/Release.Shared/install/lib64/libviewer.so: undefined reference to `PyType_Type'
/usr/bin/ld: /home/verhaegs/coriolis-2.x/Linux.x86_64/Release.Shared/install/lib64/libviewer.so: undefined reference to `PyThreadState_Swap'
/usr/bin/ld: /home/verhaegs/coriolis-2.x/Linux.x86_64/Release.Shared/install/lib64/libisobar.so: undefined reference to `PyArg_ParseTuple'
/usr/bin/ld: /home/verhaegs/coriolis-2.x/Linux.x86_64/Release.Shared/install/lib64/libviewer.so: undefined reference to `PyObject_Init'
/usr/bin/ld: /home/verhaegs/coriolis-2.x/Linux.x86_64/Release.Shared/install/lib64/libviewer.so: undefined reference to `_Py_NoneStruct'
/usr/bin/ld: /home/verhaegs/coriolis-2.x/Linux.x86_64/Release.Shared/install/lib64/libviewer.so: undefined reference to `PyDict_New'
/usr/bin/ld: /home/verhaegs/coriolis-2.x/Linux.x86_64/Release.Shared/install/lib64/libviewer.so: undefined reference to `Py_Initialize'
/usr/bin/ld: /home/verhaegs/coriolis-2.x/Linux.x86_64/Release.Shared/install/lib64/libviewer.so: undefined reference to `PyDict_Contains'
/usr/bin/ld: /home/verhaegs/coriolis-2.x/Linux.x86_64/Release.Shared/install/lib64/libviewer.so: undefined reference to `Py_EndInterpreter'
/usr/bin/ld: /home/verhaegs/coriolis-2.x/Linux.x86_64/Release.Shared/install/lib64/libisobar.so: undefined reference to `PyLong_AsLong'
/usr/bin/ld: /home/verhaegs/coriolis-2.x/Linux.x86_64/Release.Shared/install/lib64/libviewer.so: undefined reference to `Py_IsInitialized'
/usr/bin/ld: /home/verhaegs/coriolis-2.x/Linux.x86_64/Release.Shared/install/lib64/libviewer.so: undefined reference to `PyObject_GetAttrString'
/usr/bin/ld: /home/verhaegs/coriolis-2.x/Linux.x86_64/Release.Shared/install/lib64/libisobar.so: undefined reference to `PyList_New'
collect2: error: ld returned 1 exit status
make[2]: *** [src/x2y/CMakeFiles/cx2y.dir/build.make:121: src/x2y/cx2y] Error 1
make[2]: Target 'src/x2y/CMakeFiles/cx2y.dir/build' not remade because of errors.
make[2]: Leaving directory '/home/verhaegs/coriolis-2.x/Linux.u2003_64/Release.Shared/build/crlcore'
make[1]: *** [CMakeFiles/Makefile2:784: src/x2y/CMakeFiles/cx2y.dir/all] Error 2
make[1]: Target 'all' not remade because of errors.
make[1]: Leaving directory '/home/verhaegs/coriolis-2.x/Linux.u2003_64/Release.Shared/build/crlcore'
make: *** [Makefile:133: all] Error 2
make: Target 'install' not remade because of errors.
Seems that -lpython3.8 should come after libviewer.so and libisobar.so