Bug 1290470
| Summary: | Rebase elfutils to 0.164/0165 in DTS 4.1 | ||
|---|---|---|---|
| Product: | Red Hat Developer Toolset | Reporter: | mbenitez |
| Component: | elfutils | Assignee: | Mark Wielaard <mjw> |
| Status: | CLOSED ERRATA | QA Contact: | qe-baseos-tools-bugs |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | DTS 4.1 RHEL 6 | CC: | jakub, jistone, mcermak, mjw, ohudlick |
| Target Milestone: | alpha | Keywords: | Rebase |
| Target Release: | 4.1 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | devtoolset-4-elfutils-0.165-3 | Doc Type: | Rebase: Bug Fixes and Enhancements |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-05-31 08:39:52 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: | |||
|
Description
mbenitez
2015-12-10 15:39:12 UTC
Building systemtap against 0.165-2, I get these errors:
> /opt/rh/devtoolset-4/root/usr/lib64/libelf.ar(libelf_a-elf_compress.o): In function `deflate_cleanup.6800':
> (.text+0x11): undefined reference to `deflateEnd'
> /opt/rh/devtoolset-4/root/usr/lib64/libelf.ar(libelf_a-elf_compress.o): In function `__libelf_compress':
> (.text+0x16a): undefined reference to `deflateInit_'
> /opt/rh/devtoolset-4/root/usr/lib64/libelf.ar(libelf_a-elf_compress.o): In function `__libelf_compress':
> (.text+0x27d): undefined reference to `deflate'
> /opt/rh/devtoolset-4/root/usr/lib64/libelf.ar(libelf_a-elf_compress.o): In function `__libelf_compress':
> (.text+0x2f6): undefined reference to `deflateEnd'
> /opt/rh/devtoolset-4/root/usr/lib64/libelf.ar(libelf_a-elf_compress.o): In function `__libelf_decompress':
> (.text+0x47d): undefined reference to `inflateInit_'
> /opt/rh/devtoolset-4/root/usr/lib64/libelf.ar(libelf_a-elf_compress.o): In function `__libelf_decompress':
> (.text+0x4b3): undefined reference to `inflate'
> /opt/rh/devtoolset-4/root/usr/lib64/libelf.ar(libelf_a-elf_compress.o): In function `__libelf_decompress':
> (.text+0x4c0): undefined reference to `inflateReset'
> /opt/rh/devtoolset-4/root/usr/lib64/libelf.ar(libelf_a-elf_compress.o): In function `__libelf_decompress':
> (.text+0x4d4): undefined reference to `inflateEnd'
> collect2: error: ld returned 1 exit status
Adding "-lz" to systemtap's LDFLAGS solves it. Is this expected behavior?
DTS's libelf.so is a linker script with "INPUT(libelf.ar)". Adding "INPUT(-lz)" to this solves the problem. In fact, libdw.so includes several libraries this way. (In reply to Josh Stone from comment #3) > DTS's libelf.so is a linker script with "INPUT(libelf.ar)". Adding > "INPUT(-lz)" to this solves the problem. In fact, libdw.so includes several > libraries this way. Thanks for testing. That is the way I solved it. New build attached to errata. Rebase testing passed against devtoolset-4-elfutils-0.165-7.el[67]. 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://access.redhat.com/errata/RHBA-2016:1142 |