Hi bd,
Thanks for the help. The native built passes and I got everything ok.
The
Xcompile also passes, the only issue is the linking: why it could not
find:
reference to `__mp_initsection', I suppose its definition should be
libmpatrol.so which I specified during linking ?
thanks
howard
-----Original Message-----
From: mpatrol@yahoogroups.com [mailto:mpatrol@yahoogroups.com] On Behalf
Of Banibrata Dutta
Sent: Thursday, August 31, 2006 3:05 PM
To: mpatrol@yahoogroups.com
Subject: Re: [mpatrol] mpatrol linking problem
Hello Howard:
Are you suspecting leak or other memory problems in
3rd party library or system-libraries of PPC, for
which you don't have the source-code ? Unless that's
the case, it is always an option to do a
native-compilation on FC for FC (x86), instead of a
xcompile, and test on native (x86).
- bd
--- Howard Wang - CTR <howardw@...> wrote:
> Hi All,
>
>
>
> I am trying mpatrol to debug memory leak for ur
> system. We are using FC5
> as host to cross compile the target code which is
> powerpc processor.
>
> I downloaded the mpatrol code and tried to compile
> the test1.c file
> located Under tutorial. The compile passed but link
> failed:
>
>
>
> [howardw@hwang tutorial]$ ppc_82xx-g++
> -L/usr/local/include test1.o
>
-L/home/howardw/project/tools/memLeak/mPatrol/mpatrol/build/unix/
> -lmpatrol -lbfd -liberty
>
> test1.o: In function `main':
>
> test1.o(.text+0x144): the `gets' function is
> dangerous and should not be
> used.
>
>
/home/howardw/project/tools/memLeak/mPatrol/mpatrol/build/unix//libmpatr
> ol.so: undefined reference to `__mp_initsection'
>
> collect2: ld returned 1 exit status
>
>
>
> my questions are:
>
> 1. can mpatrol be used for powerpc based processor
> and cross compilation
> ?
>
> 2. if the answer is yes, what could be the causes
> for the above error ?
>
>
>
> thanks for the help.
>
>
>
> Howard
>
>
>
>
>
>
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
To Post a message, send it to: mpatrol@egroups.com
To Unsubscribe, send a blank message to: mpatrol-unsubscribe@egroups.com
Yahoo! Groups Links