Bug 126200 - Patch against shadow-utils's build-error
Summary: Patch against shadow-utils's build-error
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: shadow-utils
Version: rawhide
Hardware: All
OS: Linux
medium
low
Target Milestone: ---
Assignee: Nalin Dahyabhai
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-06-17 12:43 UTC by kanagawa jigorou
Modified: 2007-11-30 22:10 UTC (History)
0 users

Fixed In Version: 4.0.3-23
Clone Of:
Environment:
Last Closed: 2004-06-19 11:27:31 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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]$


Note You need to log in before you can comment on or make changes to this bug.