Bug 1956773

Summary: Strict prototype error when trying to compile nss code that includes blapi.h
Product: Red Hat Enterprise Linux 8 Reporter: Ivan Nikolchev <inikolch>
Component: nssAssignee: nss-nspr-maint <nss-nspr-maint>
Status: CLOSED CURRENTRELEASE QA Contact: Ivan Nikolchev <inikolch>
Severity: low Docs Contact:
Priority: low    
Version: 8.5CC: rrelyea, ssorce
Target Milestone: betaKeywords: Triaged, ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of:
: 1976258 (view as bug list) Environment:
Last Closed: 2021-12-16 11:54:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1976258    

Description Ivan Nikolchev 2021-05-04 11:43:46 UTC
Description of problem:
Compiling nss code that includes blapi.h throws 'function declaration isn’t a prototype' error

Version-Release number of selected component (if applicable):
nss-3.53.1-17.el8_3.x86_64

How reproducible:
always

Steps to Reproduce:
Try to compile the next snippet:

#include <blapi.h>
int main(void){
    return 0;
};

gcc test.c -o test -I /usr/include/nss3/ -I /usr/include/nspr4/ -lnss3 -lnspr4 -Werror=strict-prototypes

Actual results:
/usr/include/nss3/blapi.h:1505:1: error: function declaration isn’t a prototype [-Werror=strict-prototypes]

Expected results:
no errors

Additional info:

Comment 3 Bob Relyea 2021-06-23 21:48:45 UTC
Need zstream+ to attach to the errrata.

Comment 4 Simo Sorce 2021-06-23 22:00:05 UTC
Done