Red Hat Bugzilla – Bug 1275045
python-smbc broken for python3
Last modified: 2016-07-19 14:20:06 EDT
Description of problem:
The Python smbc module in python3-smbc package cannot be loaded due to missing symbols.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
2. import smbc
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: /usr/lib64/python3.4/site-packages/smbc.cpython-34m.so: undefined symbol: PyInt_AsLong
The module is imported.
This breaks the ‘Browse’ button in Add Printer dialogue of system-config-printer.
Recompiling the src rpm shows that there are bunch of warnings for missing declarations (among other things) such as
context.c: In function ‘Context_setTimeout’:
context.c:641:8: warning: implicit declaration of function ‘PyInt_Check’ [-Wimplicit-function-declaration]
if (!PyInt_Check (value))
context.c:647:35: warning: implicit declaration of function ‘PyInt_AsLong’ [-Wimplicit-function-declaration]
smbc_setTimeout (self->context, PyInt_AsLong (value));
Apparently the package is not actually python3-ready and would not compile with -Werror-implicit-function-declaration.
I can reproduce that with 1.0.13 but not with 1.0.15.
Tim, do you think I can merge master/rawhide (1.0.15) into at lease f23 (still 1.0.13 atm) ?
Yes, I think that's safe.
python-smbc-22.214.171.124-1.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-4e52f9df04
python-smbc-126.96.36.199-1.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
$ su -c 'dnf --enablerepo=updates-testing update python-smbc'
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-4e52f9df04
python-smbc-188.8.131.52-1.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.
If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
Thank you for reporting this bug and we are sorry it could not be fixed.