skyhover / Deckard

Code clone detection; clone-related bug detection; sematic clone analysis
Other
209 stars 78 forks source link

Build fails #5

Open wagnerst opened 10 years ago

wagnerst commented 10 years ago

Hi, on a current Mac OS system, the build fails because malloc.h is not at the place you expect that to be. I fixed it for me by a symbolic link but that can only be a workaround. It would be better fixed in the build script.

petersenna commented 10 years ago

Hi,

Thanks for the message.

Can you send me more details? I don't have any MacOS for testing.

Where did you created the link and where it points to?

Thanks!

On Tue, Jul 8, 2014 at 9:46 AM, wagnerst notifications@github.com wrote:

Hi, on a current Mac OS system, the build fails because malloc.h is not at the place you expect that to be. I fixed it for me by a symbolic link but that can only be a workaround. It would be better fixed in the build script.

— Reply to this email directly or view it on GitHub https://github.com/skyhover/Deckard/issues/5.

Peter

wagnerst commented 10 years ago

I ran this: sudo ln -s /usr/include/malloc/malloc.h /usr/include/malloc.h from http://hintsforums.macworld.com/archive/index.php/t-2023.html

petersenna commented 10 years ago

I'll fix it and let you know.

Thanks for reporting this issue.

On Tue, Jul 8, 2014 at 10:11 AM, wagnerst notifications@github.com wrote:

I ran this: sudo ln -s /usr/include/malloc/malloc.h /usr/include/malloc.h from http://hintsforums.macworld.com/archive/index.php/t-2023.html

— Reply to this email directly or view it on GitHub https://github.com/skyhover/Deckard/issues/5#issuecomment-48283521.

Peter

petersenna commented 10 years ago

I'm sorry, I have no idea why I'm receiving those E-mails. I got confused and I was assuming those were reports on one of my repositories, which is not the case.

Sorry, I can't help.

On Tue, Jul 8, 2014 at 10:22 AM, Peter Senna Tschudin <peter.senna@gmail.com

wrote:

I'll fix it and let you know.

Thanks for reporting this issue.

On Tue, Jul 8, 2014 at 10:11 AM, wagnerst notifications@github.com wrote:

I ran this: sudo ln -s /usr/include/malloc/malloc.h /usr/include/malloc.h from http://hintsforums.macworld.com/archive/index.php/t-2023.html

— Reply to this email directly or view it on GitHub https://github.com/skyhover/Deckard/issues/5#issuecomment-48283521.

Peter

Peter

skyhover commented 10 years ago

Thank you for the information!

It seems a more system-compatible way to fix this issue is to replace the line that includes malloc.h in the "src/lsh/sources/headers.h" with these (as suggested in the above link):

#if !defined(__APPLE__) 
#include <malloc.h>
#endif

But I don't have any MacOS to test. Is it possible if you help to remove your symlink and test this solution and re-build again?

Thanks!