Bug 50419

Summary: CVS rpm 4.0.3 compile failure on Solaris
Product: [Retired] Red Hat Raw Hide Reporter: Red Hat Bugzilla <bugzilla>
Component: rpmAssignee: Jeff Johnson <jbj>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0   
Target Milestone: ---   
Target Release: ---   
Hardware: alpha   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-07-31 03:00:18 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:
Attachments:
Description Flags
rpm-4.0.3/lib/hdrinline.h "void functions return something" patch none

Description Red Hat Bugzilla 2001-07-31 02:00:08 UTC
rpm 4.0.3 from CVS (as of 6:00 pm CDT 07/30/2001) fails to compile on
Solaris with
the Sun Forte development environment, version 6.1.

The problem is that several functions in rpm-4.0.3/lib/hdrinline.h have
void return types,
but actually try return a value.  gcc might say "whatever", but most other
compilers will
rightfully object.

A patch is attached, though JBJ may find a better fix than just deleting
the three
inlined versions of those functions.

Comment 1 Red Hat Bugzilla 2001-07-31 02:01:34 UTC
Created attachment 25531 [details]
rpm-4.0.3/lib/hdrinline.h "void functions return something" patch

Comment 2 Red Hat Bugzilla 2001-07-31 03:00:12 UTC
This appears to be a problem with
	return (void)
that can be easily remedied with s/return //. Will do ...

Comment 3 Red Hat Bugzilla 2001-08-04 18:12:27 UTC
FIxed in my next checkin, should be in rpm-4.0.3-0.87.