Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eq0m4-000466-Mb for pgsql-general@arkaria.postgresql.org; Sun, 25 Feb 2018 18:11:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eq0m3-0004Vt-IX for pgsql-general@arkaria.postgresql.org; Sun, 25 Feb 2018 18:11:47 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eq0m3-0004Vj-9R for pgsql-general@lists.postgresql.org; Sun, 25 Feb 2018 18:11:47 +0000 Received: from mout01.posteo.de ([185.67.36.65]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eq0lv-00029n-DI for pgsql-general@lists.postgresql.org; Sun, 25 Feb 2018 18:11:45 +0000 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id A797C20F47 for ; Sun, 25 Feb 2018 19:11:37 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1519582297; bh=f0YeK6iGwMj0owZ8GWaOPhavZtUvQAKvpGXxzEn1X/g=; h=Subject:To:From:Date:From; b=L+e8AzjvRMrtPlznHhGuHId+QIJs/DW9TyogCvXE8DR0kUTJUdIr/lJ8DSlKOAY2E v521qAeZEEQ2nx2KNROcezYHal80Mw5pOb2Kq1oVk8BOInFhmhPEYl9kFEldQIAPYS R29qs+HrwfnLfnJPzwwiKKtLTbLWCGCqnJzpNUNkKQstcimwzm/WMucFG6ro1phLKC ZolE8XEfaZtvqHHrK0BqDBbRPBIunUMDGhTdO1gKlnGtSytTtlABAjE5L5TRWmKcR5 LOpg+I4pvxHH9FwqkrHbieSKmQCRXWptQPbCe0HNYM7YmyBz6/IpA1XuB5b/MSVqMY ec8l7igS3H9Aw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 3zqChR031zz9rxR for ; Sun, 25 Feb 2018 19:11:34 +0100 (CET) Subject: Re: extract properties from certificates To: pgsql-general@lists.postgresql.org References: <16680.1519487919@sss.pgh.pa.us> <3c0b91e1-7abe-5316-cd3e-65522c0d131f@posteo.de> <539ae824-fe5d-0942-e438-133b67b105fe@aklaver.com> From: jotpe Message-ID: Date: Sun, 25 Feb 2018 19:11:33 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <539ae824-fe5d-0942-e438-133b67b105fe@aklaver.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Am 25.02.2018 um 16:42 schrieb Adrian Klaver: > On 02/25/2018 12:26 AM, jotpe wrote: >> I could compile the pg-cert extension package, but postgresql 9.6 >> refused to install it. >> >> create extension cert; >> FEHLER:  geschachteltes CREATE EXTENSION wird nicht unterstützt >> means "ERROR: nested CREATE EXTENSION is not supported" >> >> At line 12 in /usr/share/postgresql/9.6/extension/cert--0.1.1.sql >> another extension called bignum is created. >> As a short try, I tryed to install in seperatly. I commentent that >> out, git cloned the https://github.com/beargiles/pg-bignum project, >> make and make install leads to an error, but the extension files are >> available in the extensions directory: >> >>   sudo make install >> /bin/mkdir -p '/usr/share/postgresql/9.6/extension' >> /bin/mkdir -p '/usr/share/postgresql/9.6/extension' >> /bin/mkdir -p '/usr/lib/postgresql/9.6/lib' >> /bin/mkdir -p '/usr/share/doc/postgresql-doc-9.6/extension' >> /usr/bin/install -c -m 644 .//bignum.control >> '/usr/share/postgresql/9.6/extension/' >> /usr/bin/install -c -m 644 .//sql/bignum--0.8.0.sql >> .//sql/bignum--0.8.0.sql  '/usr/share/postgresql/9.6/extension/' >> /usr/bin/install: Neu erstelltes >> '/usr/share/postgresql/9.6/extension/bignum--0.8.0.sql' wird nicht mit >> './/sql/bignum--0.8.0.sql' überschrieben. >> /usr/lib/postgresql/9.6/lib/pgxs/src/makefiles/pgxs.mk:114: die Regel >> für Ziel „install“ scheiterte >> make: *** [install] Fehler 1 >> >> I could not create the bignum extension in my database: >> >> create extension bignum; >> FEHLER:  konnte nicht auf Datei »bignum« zugreifen: Datei oder >> Verzeichnis nicht gefunden >> means "ERROR: could not access file "bignum": File or directory not >> found" >> >> >> Has anybody anybody an idea, how to fix this, >> or maybe another aproach to extract properties from X.509 certificates? > > See here: > > https://github.com/beargiles/pg-bignum/pull/3 > > in particular: > > https://github.com/beargiles/pg-bignum/pull/3/commits/d496a091929b15dbc0cc6ece40b0ba7bf091c8ec > > > which changes line 21 in Makefile from > > DATA = $(wildcard sql/*--*.sql) sql/$(EXTENSION)--$(EXTVERSION).sql > > to > > DATA = $(wildcard sql/*--*.sql) > > This should eliminate this: > > /usr/bin/install: Neu erstelltes > '/usr/share/postgresql/9.6/extension/bignum--0.8.0.sql' wird nicht mit > './/sql/bignum--0.8.0.sql' überschrieben. > /usr/lib/postgresql/9.6/lib/pgxs/src/makefiles/pgxs.mk:114: die Regel > für Ziel „install“ scheiterte > make: *** [install] Fehler 1 > > and allow the install to complete. That worked. Thank you! > >> >> Beste Regards Johannes >> >> >> >> Am 24.02.2018 um 19:07 schrieb jotpe: >>> >>> >>> Am 24.02.2018 um 16:58 schrieb Tom Lane: >>>> jotpe writes: >>>>> I found the pg-cert extension at https://github.com/beargiles/pg-cert >>>>> I have trouble to compile it. When I enter "make" following error >>>>> message appears: >>>>> Makefile:29: /usr/lib/postgresql/9.6/lib/pgxs/src/makefiles/pgxs.mk: >>>>> Datei oder Verzeichnis nicht gefunden >>>>> make: *** Keine Regel, um >>>>> „/usr/lib/postgresql/9.6/lib/pgxs/src/makefiles/pgxs.mk“ zu erstellen. >>>>> Schluss. >>>> >>>>> What am I missing? >>>> >>>> I'd expect pgxs.mk to be packaged in a postgresql-devel (or >>>> postgresql-dev, depending on local culture) subpackage.  Maybe you >>>> didn't >>>> install that? >>> >>> Guessed right. postgresql-server-dev-all for debian 9 did it. Thanks. >>> >>>>             regards, tom lane >>>> >>> >> >> > >