Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 584133

Summary: Can't build fence without removing -Wstrict-prototypes due to nss issue
Product: [Retired] Red Hat Cluster Suite Reporter: Chris Feist <cfeist>
Component: fenceAssignee: Chris Feist <cfeist>
Status: CLOSED ERRATA QA Contact: Cluster QE <mspqa-list>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 4CC: cluster-maint, djansa, edamato
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: fence-1.32.67-5.el4 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-02-16 16:15:30 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
Patch to fix bz none

Description Chris Feist 2010-04-20 20:07:01 UTC
Created attachment 407916 [details]
Patch to fix bz

The NSS package changed causing a build error when trying to build fence for 4.9

gcc -Wall -I../../include -I../../config -I/usr/include/nss3 -I/usr/include/nspr4   -I../../../ccs/lib -DFENCE_RELEASE_NAME=\"1.32.67\" -Wall -Werror -Wstrict-prototypes -Wshadow -ggdb -D_GNU_SOURCE -c -o fence_xvm.o fence_xvm.c 
In file included from /usr/include/nss3/secport.h:47,
                 from /usr/include/nss3/seccomon.h:62,
                 from /usr/include/nss3/nss.h:78,
                 from fence_xvm.c:47:
/usr/include/nspr4/prlink.h:52: warning: function declaration isn't a prototype
/usr/include/nspr4/prlink.h:211: warning: function declaration isn't a prototype
make[2]: *** [fence_xvm.o] Error 1
make[2]: Leaving directory `/builddir/build/BUILD/fence-1.32.67/agents/xvm'
make[1]: *** [copytobin] Error 2
make[1]: Leaving directory `/builddir/build/BUILD/fence-1.32.67/agents'
make: *** [copytobin] Error 2

This is referred to in bz#584100 and bz#453577, however it appears as though this will not be fixed, so we need to fix our build to not require script prototypes.

Comment 1 Chris Feist 2010-04-21 16:04:11 UTC
Note that this is to fix an internal build issue so it most likely does not need a special note in the errata.

Comment 3 errata-xmlrpc 2011-02-16 16:15:30 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2011-0266.html