#46 Malloc error when attempting to build with --enable-ILU

open
nobody
None
5
2010-01-30
2010-01-30
Anonymous
No

I need the DevIL to compile a game, specifically the spring engine, and the Mac ports version doesn't work, so following the advice from spring's help, im attempting to compile manually. Attempting to build without the --enable-ILU tag yields no error, but with it fails with the flowing error.

gcc -DHAVE_CONFIG_H -I. -I../include/IL -I ./../include -g -O2 -MT ilur.o -MD -MP -MF .deps/ilur.Tpo -c -o ilur.o `test -f '../src-ILU/ilur/ilur.c' || echo './'`../src-ILU/ilur/ilur.c
../src-ILU/ilur/ilur.c:3:20: error: malloc.h: No such file or directory
../src-ILU/ilur/ilur.c: In function ‘create_params’:
../src-ILU/ilur/ilur.c:105: warning: incompatible implicit declaration of built-in function ‘malloc’
../src-ILU/ilur/ilur.c: In function ‘parse_arguments’:
../src-ILU/ilur/ilur.c:207: warning: incompatible implicit declaration of built-in function ‘malloc’
make[1]: *** [ilur.o] Error 1
make: *** [all-recursive] Error 1

Discussion

  • sorry, I forgot to add that I'm on a MacBook pro running Snow Leopard