Summary: | PyKDE4 QtCore.so has many undefined symbols | ||
---|---|---|---|
Product: | [Developer tools] bindings | Reporter: | Andrea Scarpino <scarpino> |
Component: | general | Assignee: | kde-bindings |
Status: | RESOLVED FIXED | ||
Severity: | grave | CC: | 0inkane, colin.thomson, lbeltrame, rad.n, rdieter |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Andrea Scarpino
2013-01-04 17:28:34 UTC
as Luca suggested, removing the cmake_minimum_required call in the CMakeLists.txt fixes this. So far I can't reproduce both on self compiled and distro (openSUSE) packages. Confirmed on f18 + kde-4.9.97 builds too Sorry, slightly different error (though the end result of not loading is the same): plasma-windowed veromix-plasmoid plasma-windowed(27098)/python (plugin): Failed to import module Traceback (most recent call last): File "/usr/share/kde4/apps/plasma_scriptengine_python/pyappletscript.py", line 21, in <module> from PyQt4.QtCore import * ImportError: /usr/lib64/python2.7/site-packages/PyQt4/QtCore.so: undefined symbol: PyExc_ValueError My guess is this may have fixed the build, https://projects.kde.org/projects/kde/kdebindings/pykde4/repository/revisions/fb5138027a450a9ba0af0f93c7851d3124a8061b but it doesn't work either. I think what we really want there is: ADD_DEFINITIONS(-DLIB_PYTHON="${LIB_PYTHON}") which seems to make things much happier for me. In data lunedì 07 gennaio 2013 17:35:48, hai scritto:
> ADD_DEFINITIONS(-DLIB_PYTHON="${LIB_PYTHON}")
> which seems to make things much happier for me.
Can you confirm it works? If so, I'll commit soon (as I'm totally unable to
reproduce this issue on my syustem)
I added ADD_DEFINITIONS(-DLIB_PYTHON="${LIB_PYTHON}") after the cmake_minimum_required call and the issue is still here. I'm using the 4.9.97 tarball, not git. Sorry I should have been more clear, per the commit I referenced, it modified kpythonpluginfactory/CMakeLiists.txt that's the one you need to change ADD_DEFINITIONS(-DLIB_PYTHON="\\"${LIB_PYTHON}\\"") to ADD_DEFINITIONS(-DLIB_PYTHON="${LIB_PYTHON}") Git commit 9f70d3e320a56c5096f7dee0cb42edb5d4461190 by Luca Beltrame. Committed on 07/01/2013 at 20:31. Pushed by lbeltrame into branch 'KDE/4.10'. Revert "Fix build after 9b2593a" Apparently the CMake policy is set back somewhere in CMakeLists, and some people (not me, unfortunately) are experiencing missing symbols in PyKDE4. The commit (in agreement with krop) has been reverted until the real cause is to be found. Close the bug if you're no longer affected by this. This reverts commit f8ab7037ee78746de2c30079b3e0832537fb62f7. M +1 -1 kpythonpluginfactory/CMakeLists.txt http://commits.kde.org/pykde4/9f70d3e320a56c5096f7dee0cb42edb5d4461190 Git commit bdab774f1f0874d7f0a6e14d7885d73c8101b3e9 by Luca Beltrame. Committed on 07/01/2013 at 20:34. Pushed by lbeltrame into branch 'KDE/4.10'. Fix unresolved symbols appearing in PyKDE4. Apparently the CMake policy responsible for this is getting set back somewhere in the build system. Reporter, please close the bug if the issue is no longer applicable. I can't reproduce it. M +1 -1 kpythonpluginfactory/CMakeLists.txt http://commits.kde.org/pykde4/bdab774f1f0874d7f0a6e14d7885d73c8101b3e9 |