Bug 1263740
| Summary: | shipped swig breaks compilation for other projects | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Matteo Brancaleoni <mbrancaleoni> |
| Component: | swig | Assignee: | Jitka Plesnikova <jplesnik> |
| Status: | CLOSED ERRATA | QA Contact: | Martin Cermak <mcermak> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | high | ||
| Version: | 7.1 | CC: | jorton, mcermak, ovasik, ppisar |
| Target Milestone: | rc | Keywords: | EasyFix |
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | swig-2.0.10-5.el7 | Doc Type: | Bug Fix |
| Doc Text: |
Cause:
Use swig for generating code
Consequence:
Invalid symbols generated
Fix:
Remove the setools patch which breaks the code. The setools bug was fixed by upstream different way
Result:
Undefined symbols are not generated.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-11-04 01:05:32 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1289025, 1305230 | ||
|
Description
Matteo Brancaleoni
2015-09-16 14:48:11 UTC
The removing unnecessary patch solves the bug. Tests steps: 1) Install cmake, gcc, gcc-c++, python-devel, swig 2) Get nfqueue-bindings sources ( https://github.com/chifflier/nfqueue-bindings ) 3) Build and try to load in a python application. I used simple test script $ cat ./test.py #!/usr/bin/python import sys sys.path.append('python') sys.path.append('build/python') import nfqueue Output is empty. Previously it failed with following error: Traceback (most recent call last): File "./test.py", line 7, in <module> import nfqueue File "build/python/nfqueue.py", line 26, in <module> _nfqueue = swig_import_helper() File "build/python/nfqueue.py", line 22, in swig_import_helper _mod = imp.load_module('_nfqueue', fp, pathname, description) ImportError: build/python/_nfqueue.so: undefined symbol: struct_queue_process_pending Reproduced with swig-2.0.10-4.el7, verified with swig-2.0.10-5.el7. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2016-2227.html |