From: "eugen at debian dot org" <sourceware-bugzilla@sourceware.org>
To: systemtap@sources.redhat.com
Subject: [Bug translator/5017] New: Compilation errors with gcc-4.3 snapshot
Date: Mon, 10 Sep 2007 20:30:00 -0000 [thread overview]
Message-ID: <20070910202852.5017.eugen@debian.org> (raw)
There are two errors when compiling systemtap with gcc-4.3 snapshot:
staptree.cxx: In static member function 'static bool
print_format::parse_print(const std::string&, bool&, bool&, bool&, bool&
)':
staptree.cxx:356: error: 'strncmp' was not declared in this scope
In file included from main.cxx:12:
staptree.h:871: error: explicit template specialization cannot have a storage class
First one is just missing #include <cstring>.
Second one is harder to fix, it is related to this change in gcc:
http://gcc.gnu.org/ml/gcc-patches/2007-06/msg01075.html . It can be fixed by
removing second "static" in this code:
template <typename T> static void
require (deep_copy_visitor* v, T* dst, T src)
...
template <> static void
require <indexable *> (deep_copy_visitor* v, indexable** dst, indexable* src)
Unfortunately current gcc has bug that makes require<indexable *>() extern, so
compilation fails.
--
Summary: Compilation errors with gcc-4.3 snapshot
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: translator
AssignedTo: systemtap at sources dot redhat dot com
ReportedBy: eugen at debian dot org
http://sourceware.org/bugzilla/show_bug.cgi?id=5017
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
next reply other threads:[~2007-09-10 20:29 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-10 20:30 eugen at debian dot org [this message]
2007-09-10 20:32 ` [Bug translator/5017] " eugen at debian dot org
2007-12-11 13:45 ` fche at redhat dot com
2007-12-17 23:44 ` eugen at debian dot org
2007-12-17 23:46 ` eugen at debian dot org
2008-01-17 17:52 ` eugen at debian dot org
2008-01-24 16:52 ` brolley at redhat dot com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070910202852.5017.eugen@debian.org \
--to=sourceware-bugzilla@sourceware.org \
--cc=systemtap@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).