Ranganathan, Shobha
2006-Jul-14 22:13 UTC
[Xen-users] compiling oprofile in FC5 for setting up xenoprof
I am trying to compile oprofile 0.9.1 after applying patches xenoprof-2.0-oprofile-0.9.1.patch in FC5. After I run ./configure, I did a make I get the error . Has some one seen this before ? make[2]: Entering directory `/root/oprofile-0.9.1/libpp'' if 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[2]: *** [arrange_profiles.o] Error 1 make[2]: Leaving directory `/root/oprofile-0.9.1/libpp'' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/root/oprofile-0.9.1'' make: *** [all] Error 2 I have already built xen0 and xenU kernels. I am trying to get xenoprof to run... Regards Shobha Ranganathan "The significant challenges we face cannot be resolved at the same level of thinking we were at when we created them." Albert Einstein _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Ranganathan, Shobha
2006-Jul-14 22:16 UTC
[Xen-users] RE: compiling oprofile in FC5 for setting up xenoprof
I missed adding the system details --- P6 processor and following OS details root@setst-p6y-02:~/oprofile-0.9.1# uname -a Linux setst-p6y-02 2.6.15-1.2054_FC5smp #1 SMP Tue Mar 14 16:05:46 EST 2006 i686 i686 i386 GNU/Linux root@setst-p6y-02:~/oprofile-0.9.1# uname -r 2.6.15-1.2054_FC5smp root@setst-p6y-02:~/oprofile-0.9.1# -----Original Message----- From: Ranganathan, Shobha Sent: Friday, July 14, 2006 3:14 PM To: ''xen-users@lists.xensource.com'' Subject: compiling oprofile in FC5 for setting up xenoprof I am trying to compile oprofile 0.9.1 after applying patches xenoprof-2.0-oprofile-0.9.1.patch in FC5. After I run ./configure, I did a make I get the error . Has some one seen this before ? make[2]: Entering directory `/root/oprofile-0.9.1/libpp'' if 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[2]: *** [arrange_profiles.o] Error 1 make[2]: Leaving directory `/root/oprofile-0.9.1/libpp'' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/root/oprofile-0.9.1'' make: *** [all] Error 2 I have already built xen0 and xenU kernels. I am trying to get xenoprof to run... Regards Shobha Ranganathan "The significant challenges we face cannot be resolved at the same level of thinking we were at when we created them." Albert Einstein _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Ray Bryant
2006-Jul-17 15:29 UTC
Re: [Xen-users] compiling oprofile in FC5 for setting up xenoprof
On Friday 14 July 2006 17:13, Ranganathan, Shobha wrote:> I am trying to compile oprofile 0.9.1 after applying patches > xenoprof-2.0-oprofile-0.9.1.patch in FC5. > > After I run ./configure, I did a make > > I get the error . Has some one seen this before ? > >The attached patch is what I am using to get around this. Someone with real C++/Oprofile knowledge should probably supply a fix.> > make[2]: Entering directory `/root/oprofile-0.9.1/libpp'' > > if 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[2]: *** [arrange_profiles.o] Error 1 > > make[2]: Leaving directory `/root/oprofile-0.9.1/libpp'' > > make[1]: *** [all-recursive] Error 1 > > make[1]: Leaving directory `/root/oprofile-0.9.1'' > > make: *** [all] Error 2 > > > > I have already built xen0 and xenU kernels. I am trying to get xenoprof > to run... > > > > Regards > > Shobha Ranganathan > > "The significant challenges we face cannot be resolved at the same level > of thinking we were at when we created them." Albert Einstein-- Ray Bryant AMD Performance Labs Austin, Tx 512-602-0038 (o) 512-507-7807 (c) _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
William Cohen
2006-Jul-17 18:01 UTC
Re: [Xen-users] compiling oprofile in FC5 for setting up xenoprof
Ray Bryant wrote:> On Friday 14 July 2006 17:13, Ranganathan, Shobha wrote: > >>I am trying to compile oprofile 0.9.1 after applying patches >>xenoprof-2.0-oprofile-0.9.1.patch in FC5. >> >>After I run ./configure, I did a make >> >>I get the error . Has some one seen this before ? >> >> > > > The attached patch is what I am using to get around this. > > Someone with real C++/Oprofile knowledge should probably supply a fix. > > >>make[2]: Entering directory `/root/oprofile-0.9.1/libpp'' >> >>if 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[2]: *** [arrange_profiles.o] Error 1 >> >>make[2]: Leaving directory `/root/oprofile-0.9.1/libpp'' >> >>make[1]: *** [all-recursive] Error 1 >> >>make[1]: Leaving directory `/root/oprofile-0.9.1'' >> >>make: *** [all] Error 2 >> >> >> >>I have already built xen0 and xenU kernels. I am trying to get xenoprof >>to run... >> >> >> >>Regards >> >>Shobha Ranganathan >> >>"The significant challenges we face cannot be resolved at the same level >>of thinking we were at when we created them." Albert EinsteinThe OProfile cvs has a similar change checked in 2005-12-05. However, it keeps as many methods in anon namespace as possible. This patch is currently in the srpms for FC5/6 oprofile, as oprofile-0.9.1-anon.patch. -Will _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users