* [Bug translator/10313] New: Build error due to a deprecation in elfutils
@ 2009-06-23 5:11 maranp at linux dot vnet dot ibm dot com
2009-06-23 7:47 ` [Bug translator/10313] " mjw at redhat dot com
2009-06-23 8:25 ` mjw at redhat dot com
0 siblings, 2 replies; 3+ messages in thread
From: maranp at linux dot vnet dot ibm dot com @ 2009-06-23 5:11 UTC (permalink / raw)
To: systemtap
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1695 bytes --]
elf_getshstrndx is used by SystemTap but it is deprecated by commit
f189493154d0041deced00e6a99cc5426dc9d260 in elfutils.
This results in systemtap build error.
The error is pasted below.
g++ -DHAVE_CONFIG_H -I. -DBINDIR='"/usr/local/bin"'
-DSYSCONFDIR='"/usr/local/etc"' -DPKGDATADIR='"/usr/local/share/systemtap"'
-DPKGLIBDIR='"/usr/local/libexec/systemtap"' -Iinclude-elfutils -Wall
-Werror -g -O2 -Werror -fstack-protector-all -D_FORTIFY_SOURCE=2 -MT
stap-hash.o -MD -MP -MF .deps/stap-hash.Tpo -c -o stap-hash.o `test -f
'hash.cxx' || echo './'`hash.cxx
cc1plus: warnings being treated as errors
tapsets.cxx: In constructor
dwarf_builder::probe_table::probe_table(std::string&, systemtap_session&,
dwflpp*):
tapsets.cxx:702: warning: elf_getshstrndx is deprecated (declared at
include-elfutils/libelf.h:276)
tapsets.cxx:702: warning: elf_getshstrndx is deprecated (declared at
include-elfutils/libelf.h:276)
tapsets.cxx:726: warning: elf_getshstrndx is deprecated (declared at
include-elfutils/libelf.h:276)
tapsets.cxx:726: warning: elf_getshstrndx is deprecated (declared at
include-elfutils/libelf.h:276)
--
Summary: Build error due to a deprecation in elfutils
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: translator
AssignedTo: systemtap at sources dot redhat dot com
ReportedBy: maranp at linux dot vnet dot ibm dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=10313
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug translator/10313] Build error due to a deprecation in elfutils
2009-06-23 5:11 [Bug translator/10313] New: Build error due to a deprecation in elfutils maranp at linux dot vnet dot ibm dot com
@ 2009-06-23 7:47 ` mjw at redhat dot com
2009-06-23 8:25 ` mjw at redhat dot com
1 sibling, 0 replies; 3+ messages in thread
From: mjw at redhat dot com @ 2009-06-23 7:47 UTC (permalink / raw)
To: systemtap
------- Additional Comments From mjw at redhat dot com 2009-06-23 07:46 -------
This comes from the following elfutils change:
commit f189493154d0041deced00e6a99cc5426dc9d260
Author: Ulrich Drepper <drepper@redhat.com>
Date: Sat Jun 13 15:55:42 2009 -0700
Add aliases for elf_getshnum and elf_getshstrndx.
Sun in their implementation messed up the semantics of these functions.
To get back to source code compatibility they asked for a solution.
We simply add aliases for the two affected functions, named
elf_getshdrnum and elf_getshdrstrndx. The semantics remains the
same. Users of the old interfaces receive a warning for now. In
future we might make it impossible to link programs which request
the old interfaces (binary compatibility will of course be maintained).
--
http://sourceware.org/bugzilla/show_bug.cgi?id=10313
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug translator/10313] Build error due to a deprecation in elfutils
2009-06-23 5:11 [Bug translator/10313] New: Build error due to a deprecation in elfutils maranp at linux dot vnet dot ibm dot com
2009-06-23 7:47 ` [Bug translator/10313] " mjw at redhat dot com
@ 2009-06-23 8:25 ` mjw at redhat dot com
1 sibling, 0 replies; 3+ messages in thread
From: mjw at redhat dot com @ 2009-06-23 8:25 UTC (permalink / raw)
To: systemtap
------- Additional Comments From mjw at redhat dot com 2009-06-23 08:24 -------
commit fcc30d6d020ebf1df7d05809074015c8f0990c22
Author: Mark Wielaard <mjw@redhat.com>
Date: Tue Jun 23 10:20:07 2009 +0200
PR 10313 Build error due to deprecation of elf_getshstrndx in elfutils.
* dwflpp.h: Check elfutils version, define elf_getshdrstrndx as
elf_getshstrndx if elfutils 0.142 detected.
* dwflpp.cxx (get_blacklist_section): Use elf_getshdrstrndx.
* tapsets.cxx (probe_table): Likewise.
(prepare_section_rejection): Likewise.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://sourceware.org/bugzilla/show_bug.cgi?id=10313
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-06-23 8:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-23 5:11 [Bug translator/10313] New: Build error due to a deprecation in elfutils maranp at linux dot vnet dot ibm dot com
2009-06-23 7:47 ` [Bug translator/10313] " mjw at redhat dot com
2009-06-23 8:25 ` mjw at redhat dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).