perf tool build error

From: Lin Ming
Date: Sun May 16 2010 - 23:22:47 EST


Build perf tool in latest tip tree(17efbf4) fails,

$ gcc --version
gcc (GCC) 4.3.2 20081105 (Red Hat 4.3.2-7)

cc1: warnings being treated as errors
util/newt.c: In function âobjdump_line__showâ:
util/newt.c:252: error: passing argument 1 of âSLsmg_printfâ discards qualifiers from pointer target type
util/newt.c:258: error: passing argument 1 of âSLsmg_write_nstringâ discards qualifiers from pointer target type
util/newt.c:262: error: passing argument 1 of âSLsmg_write_nstringâ discards qualifiers from pointer target type
util/newt.c:264: error: passing argument 1 of âSLsmg_write_nstringâ discards qualifiers from pointer target type
util/newt.c: In function âsetup_browserâ:
util/newt.c:998: error: passing argument 3 of âSLtt_set_colorâ discards qualifiers from pointer target type
util/newt.c:998: error: passing argument 4 of âSLtt_set_colorâ discards qualifiers from pointer target type
util/newt.c:999: error: passing argument 3 of âSLtt_set_colorâ discards qualifiers from pointer target type
util/newt.c:999: error: passing argument 4 of âSLtt_set_colorâ discards qualifiers from pointer target type
util/newt.c:1000: error: passing argument 3 of âSLtt_set_colorâ discards qualifiers from pointer target type
util/newt.c:1000: error: passing argument 4 of âSLtt_set_colorâ discards qualifiers from pointer target type
util/newt.c:1001: error: passing argument 3 of âSLtt_set_colorâ discards qualifiers from pointer target type
util/newt.c:1001: error: passing argument 4 of âSLtt_set_colorâ discards qualifiers from pointer target type
util/newt.c:1002: error: passing argument 3 of âSLtt_set_colorâ discards qualifiers from pointer target type
util/newt.c:1002: error: passing argument 4 of âSLtt_set_colorâ discards qualifiers from pointer target type

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/