Description of problem: Attempt to import Hamlib from python script results in the following error: ----- python testhamlib.py Traceback (most recent call last): File "testhamlib.py", line 2, in <module> import Hamlib File "/usr/lib64/python2.7/site-packages/Hamlib.py", line 28, in <module> _Hamlib = swig_import_helper() File "/usr/lib64/python2.7/site-packages/Hamlib.py", line 24, in swig_import_helper _mod = imp.load_module('_Hamlib', fp, pathname, description) ImportError: /usr/lib64/python2.7/site-packages/_Hamlib.so: undefined symbol: struct_Rot_get_position ----- Version-Release number of selected component (if applicable): hamlib-1.2.15.3-12.fc21.x86_64 hamlib-python-1.2.15.3-12.fc21.x86_64 How reproducible: The bug is triggered by the following script: ------ #!/usr/bin/python import Hamlib ------ Steps to Reproduce: 1. Run the test script: python testhamlib.py Actual results: Test script crashes: $ python testhamlib.py Traceback (most recent call last): File "testhamlib.py", line 2, in <module> import Hamlib File "/usr/lib64/python2.7/site-packages/Hamlib.py", line 28, in <module> _Hamlib = swig_import_helper() File "/usr/lib64/python2.7/site-packages/Hamlib.py", line 24, in swig_import_helper _mod = imp.load_module('_Hamlib', fp, pathname, description) ImportError: /usr/lib64/python2.7/site-packages/_Hamlib.so: undefined symbol: struct_Rot_get_position Expected results: No errors
I can confirm I get the same results on F20... Not sure what's going on. It seems to be in there somewhere: $ grep "struct_Rot_get_position" /usr/lib/python2.7/site-packages/_Hamlib.so Binary file /usr/lib/python2.7/site-packages/_Hamlib.so matches
I would like to ping on this bug. Is the package still maintained?
Upstream (if you can call it that, it's basically one guy and some frequent contributors) is active, but most of the effort it going into Hamlib3. I'll see if I can get him to take a look.
Upstream has not been able to duplicate the problem, it seems to be specific to Fedora and I'm out of ideas.
Can you comment on the "implicit declaration of function" warnings in the build.log? https://kojipkgs.fedoraproject.org//packages/hamlib/1.2.15.3/12.fc21/data/logs/x86_64/build.log
(In reply to Michael Schwendt (Fedora Packager Sponsors Group) from comment #5) > Can you comment on the "implicit declaration of function" warnings in the > build.log? > > https://kojipkgs.fedoraproject.org//packages/hamlib/1.2.15.3/12.fc21/data/ > logs/x86_64/build.log No, that file is generated by swig... Looking at the first one: $ grep -r Rig_get_mode . ./bindings/Hamlib.py: def get_mode(self, *args): return _Hamlib.Rig_get_mode(self, *args) ./bindings/rig.swg:void Rig_get_mode(Rig *self, unsigned *mode, int *width, vfo_t vfo) I don't know swig at all but that looks like a declaration?
It seems that is a problem with swig package itself. See bug 1180257
I removed the swig's patch which caused the issue from all Fedoras. I checked that hamlib rebuilt against the latest swig solved the bug.
Fantastic! When you submit the updates can you add this bug so it closes when they go to stable?
hamlib has to be rebuilt against new swig to solve the issue. It is necessary regenerated the invalid code in hamlib. I'll create the overrides and rebuild hamlib for all Fedoras.
hamlib-3.0-2.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-16404
hamlib-3.0-2.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2015-16407
hamlib-3.0-2.fc21 has been submitted as an update to Fedora 21. https://bodhi.fedoraproject.org/updates/FEDORA-2015-16408
You were too fast for me! I just updated to hamlib 3.0 and in the process was fixing the binding package names (i.e. hamlib-python -> python-hamlib) but missed updating a couple of "Requires:". There's supposed to be 3.0.1 releasing soon so I may just wait, it only affects the devel package.
hamlib-3.0-2.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 hamlib' You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-16404
hamlib-3.0-2.fc21 has been pushed to the Fedora 21 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 hamlib' You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-16408
hamlib-3.0-2.fc22 has been pushed to the Fedora 22 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 hamlib' You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-16407
hamlib-3.0-2.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.
hamlib-3.0-2.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.
hamlib-3.0-2.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report.