Package: oprofile
Version: 0.9.1-9
Severity: important
Tags: patch

Your package fails to build with G++ 4.1.  I'm filing this bug as
important for now, but when 4.1 will be the default compiler in
unstable (probably in a few weeks) I'll upgrade this to serious.

A patch is below.


> Automatic build of oprofile_0.9.1-9 on bigsur by sbuild/mips 1.94
...
> make[3]: Entering directory `/build/tbm/oprofile-0.9.1/libpp'
> if mips-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I..  -I ../libop -I ../libutil 
> -I ../libdb -I ../libopt++ -I ../libutil++ -I ../libop++ -I ../libregex  -W 
> -Wall -fno-common -ftemplate-depth-50 -g -O2 -MT arrange_profiles.o -MD -MP 
> -MF ".deps/arrange_profiles.Tpo" -c -o arrange_profiles.o 
> arrange_profiles.cpp; \
>       then mv -f ".deps/arrange_profiles.Tpo" ".deps/arrange_profiles.Po"; 
> else rm -f ".deps/arrange_profiles.Tpo"; exit 1; fi
> arrange_profiles.cpp:93: error: definition of 'bool 
> profile_classes::matches(const profile_classes&)' is not in namespace 
> enclosing 'profile_classes'
> make[3]: *** [arrange_profiles.o] Error 1

--- ./libpp/arrange_profiles.cpp~       2006-03-16 18:48:49.000000000 +0000
+++ ./libpp/arrange_profiles.cpp        2006-03-16 18:52:20.000000000 +0000
@@ -77,19 +77,6 @@
        return lt.event < rt.event;
 }
 
-namespace {
-
-struct axis_t {
-       string name;
-       string suggestion;
-} axes[AXIS_MAX] = {
-       { "event", "specify event:, count: or unitmask: (see also 
--merge=unitmask)" },
-       { "tgid", "specify tgid: or --merge tgid" },
-       { "tid", "specify tid: or --merge tid" },
-       { "cpu", "specify cpu: or --merge cpu" },
-};
-
-
 bool profile_classes::matches(profile_classes const & classes)
 {
        if (v.size() != classes.v.size())
@@ -128,6 +115,17 @@
        return true;
 }
 
+namespace {
+
+struct axis_t {
+       string name;
+       string suggestion;
+} axes[AXIS_MAX] = {
+       { "event", "specify event:, count: or unitmask: (see also 
--merge=unitmask)" },
+       { "tgid", "specify tgid: or --merge tgid" },
+       { "tid", "specify tid: or --merge tid" },
+       { "cpu", "specify cpu: or --merge cpu" },
+};
 
 /// We have more than one axis of classification, tell the user.
 void report_error(profile_classes const & classes, axis_types newaxis)

-- 
Martin Michlmayr
http://www.cyrius.com/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to