Dear Maynard:

Thanks for your response. Sorry for I didn't describe my installation environment in details.
I did install to some other location but not /usr/local, so I need to configure OProfile with --with-extra-libs & --with-extra-includes. But now, I solve this problem.
I forgot to verify --with-extra-includes argument before, which was /home/nick314/fakeroot/lib/, but it should be /home/nick314/fakeroot/include/.

Sorry for my mistakes, and appreciate your response again. Thanks a lot.

Below is my installaton commands.

popt
./configure --with-kernel-support --host=mips-linux-gnu --prefix=/home/nick314/fakeroot/
make
make install

binutils devel
./configure --with-kernel-support --host=mips-linux-gnu --prefix=/home/nick314/fakeroot/ --enable-shared
make
make install

oprofile
./configure --with-kernel-support --host=mips-linux-gnu --prefix=/home/nick314/fakeroot/ --with-extra-libs=/home/nick314/fakeroot/lib/ --with-extra-includes=/home/nick314/fakeroot/include/ --with-binutils=/home/nick314/fakeroot/
make
make install

nick314

On Wed, Oct 21, 2009 at 2:02 AM, Maynard Johnson <maynardj@us.ibm.com> wrote:
nick 314 wrote:
Dear all:

I tried to install OProfile-0.95 by mips toolchain.
But it said that I need to cross compile popt & binutils(bfd, iberty) in
order to install OProfile.
Then I download source codes of popt and binutils, and compile them.
After completion, I didn't find out libiberty.so.
I presume you did a standard 'configure' and 'make install', resulting in an installation of these packages to /usr/local.  Is that correct or did you install to some other location?  I'm no expert in cross-compile situations, so maybe someone else on the list can help out.  But assuming you did *NOT* install binutils to /usr, then you need to use the '--with-binutils' configure option to tell the oprofile build to use the binutils in /usr/local (or wherever you installed it).  But there is no configure option for an alternate install location for popt.  Since you apparently didn't get a configure error for popt, then I wonder what libpopt was found --  AC_CHECK_LIB, by default, will only check /usr.

-Maynard

So there was a problem when I compile OProfile with error message like
/opt/mips-4.3/bin/../lib/gcc/mips-linux-gnu/4.3.3/../../../../mips-linux-gnu/bin/ld:
opimport.o: Relocations in generic ELF (EM: 3).

I do configure binutils with --enable-shared, but in vain.
By the way, I download binutils from
ftp.kernel.org/pub/linux/devel/binutils/. But I don't know whether it is
binutils-devel or not?

I have no idea about how to solve this problem.
Would someone could give me directions or solutions? Thanks a lot.

Best regards,
nick314



------------------------------------------------------------------------

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference


------------------------------------------------------------------------

_______________________________________________
oprofile-list mailing list
oprofile-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oprofile-list




--
I am Nick314