Red Hat Bugzilla – Bug 584133
Can't build fence without removing -Wstrict-prototypes due to nss issue
Last modified: 2011-02-16 11:15:30 EST
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.
Note that this is to fix an internal build issue so it most likely does not need a special note in the errata.
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