https://bugs.kde.org/show_bug.cgi?id=407734
Bug ID: 407734 Summary: Compilation error for Python plugin Product: Falkon Version: 3.1.0 Platform: unspecified OS: Linux Status: REPORTED Severity: minor Priority: NOR Component: general Assignee: now...@gmail.com Reporter: c...@chaz6.com Target Milestone: --- SUMMARY Build fails with Python plugin: 'pyfalkon_load_plugin' has C-linkage specified, but returns user-defined type 'Plugins::Plugin' which is incompatible with C STEPS TO REPRODUCE 1. Clone the repository https://github.com/KDE/Falkon 2. Run cmake 3. make OBSERVED RESULT ``` [ 65%] Automatic MOC for target PyFalkon [ 65%] Built target PyFalkon_autogen [ 65%] Building CXX object src/plugins/PyFalkon/CMakeFiles/PyFalkon.dir/pythonplugin.cpp.o In file included from /home/chaz/git/github.com_KDE_falkon/src/plugins/PyFalkon/pythonplugin.cpp:18: /home/chaz/git/github.com_KDE_falkon/src/plugins/PyFalkon/pythonplugin.h:24:42: error: 'pyfalkon_load_plugin' has C-linkage specified, but returns user-defined type 'Plugins::Plugin' which is incompatible with C [-Werror,-Wreturn-type-c-linkage] extern "C" Q_DECL_EXPORT Plugins::Plugin pyfalkon_load_plugin(const QString &name); ^ 1 error generated. make[2]: *** [src/plugins/PyFalkon/CMakeFiles/PyFalkon.dir/pythonplugin.cpp.o] Error 1 make[1]: *** [src/plugins/PyFalkon/CMakeFiles/PyFalkon.dir/all] Error 2 make: *** [all] Error 2 ``` EXPECTED RESULT Compilation should finish without errors. SOFTWARE/OS VERSIONS Build environment is as follows:- Centos 7.6 64bit llvm-toolset-7 from scl Qt 5.12.3 from downloads.qt.io PySide2/Shiboken2 from https://code.qt.io/pyside/pyside-setup ADDITIONAL INFORMATION KDE Frameworks/Plasma are not installed. This is a standalone build of Falkon with minimum required libraries, plus Python. master branch is at commit fbf7f956fffeef054e1e67095fd6abb929ad2e56 (SVN_SILENT made messages (.desktop file) - always resolve ours) -- You are receiving this mail because: You are watching all bug changes.