Re: [AMBER-Developers] Compiling AmberTools mdgx and netcdf problem

From: Ben Roberts <ben.roberts.geek.nz>
Date: Thu, 24 Feb 2011 13:42:01 -0500

Hi Dan,

On 24/2/2011, at 1:31 p.m., Daniel Roe wrote:

> malloc.h is a system file, so maybe there is something different about
> your system config - did Jason's suggestion work?
>
> On a side note, I have no idea why malloc.h is being used at all. If I
> comment it out of matrix.c it compiles fine on my system.

Yes, it worked. But I then blew away that symlink. I don't like messing around with /usr on principle (though I'll do it when I must). I wanted a proper fix, because I imagine most users will be even less happy about playing around in there than I am.

I use a mac, and there is no /usr/include/malloc.h. Instead, we have /usr/include/malloc/malloc.h, /usr/include/objc/malloc.h and /usr/include/sys/malloc.h. However, some say that malloc.h isn't actually needed any more, at least on a mac, and that all functions provided by malloc are provided by stdlib anyway.

I took malloc out of the two places it appears in xtalutil (viz., CPrograms/ChBox.c and Clibs/matrix.c) and things seemed to build just fine. Maybe the malloc.h includes should just be blown away?

Ben

-- 
For greater security, I support S/MIME encryption.



_______________________________________________
AMBER-Developers mailing list
AMBER-Developers.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber-developers

Received on Thu Feb 24 2011 - 11:00:06 PST
Custom Search