Created attachment 153513 [details] QT_PLUGIN_PATH=~/kde/usr/lib64/plugins:$QT_PLUGIN_PATH ltrace -C -o ltrace.log ~/kde/usr/bin/kate SUMMARY Kate launched by kdesrc-run crashes because katefilebrowserplugin.so tries to load the wrong version of libKF5KIOFileWidgets.so.5 in the system path (/usr/lib64). The plugin reports a symbol lookup error on "_ZNK12KDirOperator6actionENS_6ActionE". STEPS TO REPRODUCE 1. Use kdesrc-build to build Kate and install it at ~/kde/usr/ 2. Execute "kdesrc-run kate" OBSERVED RESULT A symbol lookup error message will show, saying that katefilebrowserplugin.so tries to find the undefined symbol "_ZNK12KDirOperator6actionENS_6ActionE". The issue relates to commit 4cfb4123efc89b425dea176ccb5b58ce2f0ad5da. The issue can be solved by defining LD_LIBRARY_PATH. kdesrc-run uses prefix.sh from build trees to define environment variables. However, the LD_LIBRARY_PATH variable has been commented out with a comment stating that "LD_LIBRARY_PATH only needed if you are building without rpath." I checked the katefilebrowserplugin.so with "readelf -d", and the RUNPATH is pointing to the correct location. EXPECTED RESULT The plugin should find the proper KIO library even when the LD_LIBRARY_PATH is not set. Alternatively, LD_LIBRARY_PATH should be set in prefix.sh by default. SOFTWARE/OS VERSIONS Linux/KDE Plasma: Fedora Linux 36 KDE Plasma Version: 5.25.5 KDE Frameworks Version: 5.99.0 Qt Version: 5.15.6 ADDITIONAL INFORMATION
True, something is strange there. We create the plugins via kcoreaddons_add_plugin(${name} INSTALL_NAMESPACE "ktexteditor")
This looks like a local issue. Please try to test that again with a fresh master compile.
๐๐งน โ ๏ธ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME. For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging. Thank you for helping us make KDE software even better for everyone!
๐๐งน This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.