Search the web
Sign In
New User? Sign Up
mpatrol · mpatrol library discussion group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
mpatrol linking problem   Message List  
Reply | Forward Message #1017 of 1198 |

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//libmpatrol.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

 

 

 



Thu Aug 31, 2006 2:08 pm

howardw@...
Send Email Send Email

Forward
Message #1017 of 1198 |
Expand Messages Author Sort by Date

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...
Howard Wang - CTR
howardw@...
Send Email
Aug 31, 2006
2:11 pm

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 ?...
Banibrata Dutta
banibrata_dutta
Offline Send Email
Aug 31, 2006
7:06 pm

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: ...
Howard Wang - CTR
howardw@...
Send Email
Aug 31, 2006
8:41 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help