[Mono-dev] malloc.h deprecated ?

KISHIMOTO, Makoto ksmakoto at dd.iij4u.or.jp
Sat Nov 13 03:21:24 EST 2010


Hello,

In my FreeBSD-amd64 box, Mono git trunk build failed.
IMHO, malloc.h had been deprecated in my environment.

$ gmake
(snip)
gcc -DHAVE_CONFIG_H -I. -I../../../mono/mono/profiler -I../.. -fexceptions -DMONO_USE_EXC_TABLES -I../../../mono -I../../../mono/eglib/src -I../../eglib/src  -DGC_FREEBSD_THREADS -DPLATFORM_BSD   -g -O2 -fno-strict-aliasing -Wdeclaration-after-statement -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes  -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wwrite-strings -mno-tls-direct-seg-refs -MT decode.o -MD -MP -MF .deps/decode.Tpo -c -o decode.o ../../../mono/mono/profiler/decode.c
In file included from ../../../mono/mono/profiler/decode.c:16:
/usr/include/malloc.h:3:2: error: #error "<malloc.h> has been replaced by <stdlib.h>"
../../../mono/mono/profiler/decode.c: In function 'tracked_creation':
../../../mono/mono/profiler/decode.c:993: warning: format '%llu' expects type 'long long unsigned int', but argument 5 has type 'uint64_t'
../../../mono/mono/profiler/decode.c: In function 'decode_buffer':
../../../mono/mono/profiler/decode.c:1082: warning: format '%x' expects type 'unsigned int', but argument 3 has type 'intptr_t'
(snip warnings)
gmake[3]: *** [decode.o] Error 1
gmake[3]: Leaving directory `/export/home/ksmakoto/Mono/BUILD/mono/profiler'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/export/home/ksmakoto/Mono/BUILD/mono'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/export/home/ksmakoto/Mono/BUILD'
gmake: *** [all] Error 2


More information about the Mono-devel-list mailing list