Hi Ben,
On Thu, Feb 24, 2011 at 1:01 PM, Ben Roberts <ben.roberts.geek.nz> wrote:
> I just tried checking out your changes (and other recent ones), and got this:
> matrix.c(2): catastrophic error: could not open source file "malloc.h"
> #include <malloc.h>
Works OK for me:
(cd xtalutil/CPrograms/ && make install )
make[1]: Entering directory
`/home/droe/Amber/GIT/amber/AmberTools/src/xtalutil/CPrograms'
gcc -c -O3 -mtune=generic -DBINTRAJ -DHASGZ -DHASBZ2
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DBINTRAJ -o AddToBox.o
AddToBox.c -I../Clibs/
cd ../Clibs && make install
make[2]: Entering directory
`/home/droe/Amber/GIT/amber/AmberTools/src/xtalutil/Clibs'
gcc -c -O3 -mtune=generic -DBINTRAJ -DHASGZ -DHASBZ2
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DBINTRAJ -o crdmanip.o
crdmanip.c
gcc -c -O3 -mtune=generic -DBINTRAJ -DHASGZ -DHASBZ2
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DBINTRAJ -o grid.o
grid.c
gcc -c -O3 -mtune=generic -DBINTRAJ -DHASGZ -DHASBZ2
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DBINTRAJ -o listRead.o
listRead.c
gcc -c -O3 -mtune=generic -DBINTRAJ -DHASGZ -DHASBZ2
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DBINTRAJ -o matrix.o
matrix.c
gcc -c -O3 -mtune=generic -DBINTRAJ -DHASGZ -DHASBZ2
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DBINTRAJ -o pdbRead.o
pdbRead.c
...
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.
-Dan
_______________________________________________
AMBER-Developers mailing list
AMBER-Developers.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber-developers
Received on Thu Feb 24 2011 - 11:00:04 PST