Hi ,
       Thanks a lot..
Now i m able the configure , make and make install the oprofile.
But i m not able to generate the opreport..
I have given following commands

[root@localhost oprofile-0.9.1]# opcontrol --init
[root@localhost oprofile-0.9.1]# opcontrol --start
Using 2.4 OProfile kernel interface.
Using log file /var/lib/oprofile/oprofiled.log
Daemon started.
Profiler running
[root@localhost oprofile-0.9.1]# opcontrol --reset
Signalling daemon... done

Then i compile my application program(example.c)

[root@localhost RND]#gcc -g example.c -o example

I ran the program

[root@localhost oprofile-0.9.1]#/home/akmodi/RND/example

[root@localhost oprofile-0.9.1]#opcontrol --dump

[root@localhost oprofile-0.9.1]# opreport -l /home/akmodi/RND/example

error: no sample files found: profile specification too strict ?

[root@localhost oprofile-0.9.1]# opannotate --source  /home/akmodi/RND/example
error: no sample files found: profile specification too strict ?

I have  installed the version 0.9 with the patch provided by u in the previous mail.
Thanks a lot.
With best Regards

On 8/30/05, Philippe Elie <phil.el@wanadoo.fr> wrote:
On Tue, 30 Aug 2005 at 17:33 +0000, Ajay Modi wrote:

> Hi,
> I did the same thing.
> [root@localhost oprofile-0.9.1]# ./configure --with-linux=/usr/src//linux-
> 2.4.22/
> It works..
> Then i put
> [root@localhost oprofile-0.9.1]# make
> It is giving following error...

> -DKBUILD_BASENAME=oprofile -c -o oprofile.o oprofile.c
> oprofile.c:117: parse error before "op_do_profile"
> oprofile.c:118: warning: return type defaults to `int'
> oprofile.c:118: conflicting types for `op_do_profile'
> oprofile.h:144: previous declaration of `op_do_profile'

this has been fixed in cvs with this patch:

retry with the current cvs version (there is other fix for P4 Foster in cvs)

Philippe Elie