Re: Support for NSS as a libpq TLS backend
Joshua Brindle <joshua.brindle@crunchydata.com>
From: Joshua Brindle <joshua.brindle@crunchydata.com>
To: Daniel Gustafsson <daniel@yesql.se>
Cc: Kevin Burke <kevin@burke.dev>, Jacob Champion <pchampion@vmware.com>, "pgsql-hackers@lists.postgresql.org" <pgsql-hackers@lists.postgresql.org>,
"hlinnaka@iki.fi" <hlinnaka@iki.fi>, "andrew.dunstan@2ndquadrant.com" <andrew.dunstan@2ndquadrant.com>,
"sfrost@snowman.net" <sfrost@snowman.net>, "rachelmheaton@gmail.com" <rachelmheaton@gmail.com>,
"thomas.munro@gmail.com" <thomas.munro@gmail.com>, "michael@paquier.xyz" <michael@paquier.xyz>,
"andres@anarazel.de" <andres@anarazel.de>
Date: 2021-11-09T19:02:13Z
Lists: pgsql-hackers
On Tue, Nov 9, 2021 at 1:59 PM Joshua Brindle <joshua.brindle@crunchydata.com> wrote: > > On Fri, Nov 5, 2021 at 6:01 AM Daniel Gustafsson <daniel@yesql.se> wrote: > > > > Attached is a rebase fixing a tiny bug in the documentation which prevented it > > from being able to compile. > > > > Hello, I'm looking to help out with reviews for this CF and I'm > currently looking at this patchset. > > currently I'm stuck trying to configure: > > checking for nss-config... /usr/bin/nss-config > checking for nspr-config... /usr/bin/nspr-config > ... > checking nss/ssl.h usability... no > checking nss/ssl.h presence... no > checking for nss/ssl.h... no > configure: error: header file <nss/ssl.h> is required for NSS > > This is on fedora 33 and nss-devel is installed, nss-config is > available (and configure finds it) but the directory is different from > Ubuntu: > (base) [vagrant@fedora ~]$ nss-config --includedir > /usr/include/nss3 > (base) [vagrant@fedora ~]$ ls -al /usr/include/nss3/ssl.h > -rw-r--r--. 1 root root 70450 Sep 30 05:41 /usr/include/nss3/ssl.h > > So if nss-config --includedir is used then #include <ssl.h> should be > used, or if not then #include <nss3/ssl.h> but on this system #include > <nss/ssl.h> is not going to work. FYI, if I make a symlink to get past this, configure completes but compilation fails because nspr/nspr.h cannot be found (I'm not sure why configure doesn't discover this) ../../src/include/common/nss.h:31:10: fatal error: 'nspr/nspr.h' file not found #include <nspr/nspr.h>In file included from protocol_nss.c:24: ../../src/include/common/nss.h:31:10: fatal error: 'nspr/nspr.h' file not found #include <nspr/nspr.h> ^~~~~~~~~~~~~ It's a similar issue: $ nspr-config --includedir /usr/include/nspr4
Commits
-
Add tab-completion for CREATE FOREIGN TABLE.
- 74527c3e022d 15.0 cited
-
Add tap tests for the schema publications.
- 6b0f6f79eef2 15.0 cited
-
Move Perl test modules to a better namespace
- b3b4d8e68ae8 15.0 cited
-
Adjust configure to insist on Perl version >= 5.8.3.
- 92e6a98c3636 15.0 cited
-
Simplify code related to compilation of SSL and OpenSSL
- 092b785fad3d 14.0 landed
-
Introduce --with-ssl={openssl} as a configure option
- fe61df7f82aa 14.0 landed
-
Implement support for bulk inserts in postgres_fdw
- b663a4136331 14.0 cited
-
Fix redundant error messages in client tools
- 6be725e70161 14.0 cited
-
doc: Apply more consistently <productname> markup for OpenSSL
- 089da3c4778f 14.0 landed
-
Check ssl_in_use flag when reporting statistics
- 6a5c750f3f72 14.0 cited