Hide Forgot
The spec file explicitly specifies -O0, so parts of -D_FORTIFY_SOURCE=2 are not effective: make CFLAGS="$RPM_OPT_FLAGS -O0 -ggdb3" -ggdb3 is probably outdated as well.
Verified by checking the spec file of pam_pkcs11-0.6.2-18.el7.src.rpm spec file does not have make CFLAGS="$RPM_OPT_FLAGS -O0 -ggdb3" instead has make CFLAGS="$RPM_OPT_FLAGS"
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2015-0507.html