Hi,

I am trying to install Oprofile version 0.9.4 on Ubuntu 8.10. The make fails generating the following error message:


In function Ħint open(const char*, int, ...)˘,
    inlined from Ħbool copy_file(const std::string&, const std::string&)˘ at file_manip.cpp:47:
/usr/include/bits/fcntl2.h:51: error: call to Ħ__open_missing_mode˘ declared with attribute error: open with O_CREAT in second argument needs 3 arguments
make[3]: *** [file_manip.o] Error 1
make[3]: Leaving directory `/home/dhruv/oprofile-0.9.4/libutil++'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/dhruv/oprofile-0.9.4/libutil++'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/dhruv/oprofile-0.9.4'
make: *** [all] Error 2

I have the latest binutils which came with Ubuntu, and I also installed the latest Ubuntu binutils-devel package using the synaptic package manager.

The oprofile which is available for download from Ubuntu's repositories is the older version 0.9.3 and while it gets installed successfully, I can't specify the event INST_RETIRED.ANY_P which generates a bad event spec error for opreport. I believe that this was fixed in Oprofile version 0.9.4 and I was using it successfully on Suse Linux 10.3 until I switched to Ubuntu 8.10.

Can someone please help me out ?

Thanks in advance !

-Dhruv