<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [patch] poppler-0.64.0 fails to compile when nss is present: ‘PRBool’ has not been declared"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=106388#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [patch] poppler-0.64.0 fails to compile when nss is present: ‘PRBool’ has not been declared"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=106388">bug 106388</a>
              from <span class="vcard"><a class="email" href="mailto:williambader@hotmail.com" title="William Bader <williambader@hotmail.com>"> <span class="fn">William Bader</span></a>
</span></b>
        <pre>Thanks for looking at it. It looks like RedHat patches the source to remove the
include.

My Fedora 27 laptop has nss-util-devel-3.36.1-1.0.fc27.x86_64
/usr/include/nss3/hasht.h does not have any #includes.
I think I didn't have problems before because I only recently installed
nss-util-devel in order to build another application.

I checked older CentOS 7 and 6 systems. They do not have #includes in hasht.h
either. The packages are nss-util-devel-3.28.4-3.el7.x86_64 and
nss-util-devel-3.28.4-1.el6_9.x86_64

prtypes.h is in /usr/include/nspr4/prtypes.h in
nspr-devel-4.19.0-1.fc27.x86_64, nspr-devel-4.13.1-1.0.el7_3.x86_64, and
nspr-devel-4.13.1-1.el6.x86_64

The nss github source mirror has an include.
<a href="https://github.com/nss-dev/nss/blob/master/lib/util/hasht.h">https://github.com/nss-dev/nss/blob/master/lib/util/hasht.h</a>
The include was added five years ago
<a href="https://github.com/nss-dev/nss/blame/master/lib/util/hasht.h">https://github.com/nss-dev/nss/blame/master/lib/util/hasht.h</a> in
<a href="https://github.com/nss-dev/nss/commit/e4f3c454aca2c338191e921989e1617f182ba8fb">https://github.com/nss-dev/nss/commit/e4f3c454aca2c338191e921989e1617f182ba8fb</a>

RedHat removes the include.
On Fedora 27, I downloaded the source rpm with dnf download --source
nss-util-devel
and unpacked it with rpm2cpio ../nss-util-3.36.1-1.0.fc27.src.rpm | cpio -idmv
--no-absolute-filenames
It has a patch file hasht-dont-include-prtypes.patch that removes the include.
The comments in nss-util.spec say
-----
# Local patches
Patch2: hasht-dont-include-prtypes.patch
Patch3: pkcs1sig-include-prtypes.patch
# TODO: investigate whether this patch should also be applied to
# nss-softokn and nss and whether it should be submitted upstream.
# First ensure that it won't cause any FIPS tests breakage.
Patch4: nss-util-3.19.3-ldflags.patch
# To revert the change in:
# <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=1377940">https://bugzilla.mozilla.org/show_bug.cgi?id=1377940</a>
Patch5: nss-util-sql-default.patch
-----
hasht-dont-include-prtypes.patch removes #include "prtypes.h" from
nss/lib/util/hasht.h
pkcs1sig-include-prtypes.patch adds #include "prtypes.h" to
nss/lib/util/pkcs1sig.c
nss-util-3.19.3-ldflags.patch changes nss-util-3.29.0/nss/coreconf/Linux.mk to
add -Wl,-z,now to DSO_LDOPTS
nss-util-sql-default.patch changes lib/util/utilpars.c to make dbType =
NSS_DB_TYPE_SQL the default even if NSS_DISABLE_DBM is not set.


Regards,
William</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>