Bug 126200

Summary: Patch against shadow-utils's build-error
Product: [Fedora] Fedora Reporter: kanagawa jigorou <jigorou3>
Component: shadow-utilsAssignee: Nalin Dahyabhai <nalin>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: low Docs Contact:
Priority: medium    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 4.0.3-23 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-06-19 11:27:31 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description kanagawa jigorou 2004-06-17 12:43:11 UTC
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]$