[Mono-dev] trunk build error in FreeBSD

KISHIMOTO, Makoto ksmakoto at dd.iij4u.or.jp
Mon Nov 29 20:32:20 EST 2010


Hello,

In my FreeBSD Box, proflog.c compile failed.

$ gmake
(snip)
../../doltcompile 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 proflog.lo -MD -MP -MF .deps/proflog.Tpo -c -o proflog.lo ../../../mono/mono/profiler/proflog.c
../../../mono/mono/profiler/proflog.c: In function 'mono_sample_hit':
../../../mono/mono/profiler/proflog.c:1167: warning: format '%llu' expects type 'long long unsigned int', but argument 6 has type 'uint64_t'
../../../mono/mono/profiler/proflog.c:1167: warning: format '%llu' expects type 'long long unsigned int', but argument 6 has type 'uint64_t'
../../../mono/mono/profiler/proflog.c:1192: warning: passing argument 1 of 'InterlockedCompareExchangePointer' from incompatible pointer type
../../../mono/mono/profiler/proflog.c: At top level:
../../../mono/mono/profiler/proflog.c:1289: error: expected ')' before '(' token
../../../mono/mono/profiler/proflog.c: In function 'read_elf_symbols':
../../../mono/mono/profiler/proflog.c:1309: warning: implicit declaration of function 'ElfW'
../../../mono/mono/profiler/proflog.c:1309: warning: nested extern declaration of 'ElfW'
../../../mono/mono/profiler/proflog.c:1309: error: 'Ehdr' undeclared (first use in this function)
../../../mono/mono/profiler/proflog.c:1309: error: (Each undeclared identifier is reported only once
../../../mono/mono/profiler/proflog.c:1309: error: for each function it appears in.)
../../../mono/mono/profiler/proflog.c:1309: error: 'header' undeclared (first use in this function)
../../../mono/mono/profiler/proflog.c:1310: error: 'Shdr' undeclared (first use in this function)
../../../mono/mono/profiler/proflog.c:1310: error: 'sheader' undeclared (first use in this function)
../../../mono/mono/profiler/proflog.c:1311: error: 'shstrtabh' undeclared (first use in this function)
../../../mono/mono/profiler/proflog.c:1312: error: 'symtabh' undeclared (first use in this function)
../../../mono/mono/profiler/proflog.c:1313: error: 'strtabh' undeclared (first use in this function)
../../../mono/mono/profiler/proflog.c:1314: error: 'Sym' undeclared (first use in this function)
../../../mono/mono/profiler/proflog.c:1314: error: 'symbols' undeclared (first use in this function)
../../../mono/mono/profiler/proflog.c:1315: warning: ISO C90 forbids mixed declarations and code
../../../mono/mono/profiler/proflog.c:1358: warning: implicit declaration of function 'dump_elf_symbols'
../../../mono/mono/profiler/proflog.c:1358: warning: nested extern declaration of 'dump_elf_symbols'
../../../mono/mono/profiler/proflog.c: In function 'elf_dl_callback':
../../../mono/mono/profiler/proflog.c:1374: error: 'Dyn' undeclared (first use in this function)
../../../mono/mono/profiler/proflog.c:1374: error: 'dyn' undeclared (first use in this function)
../../../mono/mono/profiler/proflog.c:1375: error: 'Sym' undeclared (first use in this function)
../../../mono/mono/profiler/proflog.c:1375: error: 'symtab' undeclared (first use in this function)
../../../mono/mono/profiler/proflog.c:1376: error: 'Word' undeclared (first use in this function)
../../../mono/mono/profiler/proflog.c:1376: error: 'hash_table' undeclared (first use in this function)
../../../mono/mono/profiler/proflog.c:1377: error: 'Ehdr' undeclared (first use in this function)
../../../mono/mono/profiler/proflog.c:1377: error: 'header' undeclared (first use in this function)
../../../mono/mono/profiler/proflog.c:1378: warning: ISO C90 forbids mixed declarations and code
../../../mono/mono/profiler/proflog.c:1401: error: expected expression before ')' token
../../../mono/mono/profiler/proflog.c:1410: error: expected expression before ')' token
../../../mono/mono/profiler/proflog.c:1423: error: expected expression before ')' token
../../../mono/mono/profiler/proflog.c:1425: error: expected expression before ')' token
../../../mono/mono/profiler/proflog.c: In function 'create_profiler':
../../../mono/mono/profiler/proflog.c:1965: warning: assignment discards qualifiers from pointer target type
gmake[3]: *** [proflog.lo] 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