The command [jigorou@hogehost BUILD]$ rpmbuild --rebuild shadow-utils-4.0.3-21.src.rpm comes to output an error like following messages ... xmalloc.c:19: error: conflicting types for 'malloc' xmalloc.c:19: error: conflicting types for 'malloc' make[2]: *** [xmalloc.lo] Error 1 make[2]: Leaving directory `/builders/shadow-4.0.3/libmisc' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/builders/shadow-4.0.3' make: *** [all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.55656 (%build) Here is the patch to solve this problem. (this came from http://cvs.pld.org.pl/shadow/libmisc/xmalloc.c) [jigorou@hogehost BUILD]$ diff -ru shadow-4.0.3/libmisc/xmalloc.c.orig shadow-4.0.3/libmisc/xmalloc.c --- shadow-4.0.3/libmisc/xmalloc.c.orig 1998-12-29 05:34:56.000000000 +0900 +++ shadow-4.0.3/libmisc/xmalloc.c 2004-06-17 21:18:06.444324432 +0900 @@ -16,7 +16,6 @@ #include "defines.h" -extern char *malloc(); char * xmalloc(size_t size) [jigorou@hogehost BUILD]$