Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iMtQA-00084W-3B for pgsql-general@arkaria.postgresql.org; Tue, 22 Oct 2019 12:37:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iMtQ8-000729-ET for pgsql-general@arkaria.postgresql.org; Tue, 22 Oct 2019 12:37:52 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1iMtQ8-000722-4b for pgsql-general@lists.postgresql.org; Tue, 22 Oct 2019 12:37:52 +0000 Received: from mailbackend.panix.com ([166.84.1.89]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iMtQ5-0004Wn-8f for pgsql-general@lists.postgresql.org; Tue, 22 Oct 2019 12:37:51 +0000 Received: from panix2.panix.com (panix2.panix.com [166.84.1.2]) by mailbackend.panix.com (Postfix) with ESMTP id 46yChW3Rz7z1JfL; Tue, 22 Oct 2019 08:37:47 -0400 (EDT) Received: by panix2.panix.com (Postfix, from userid 17622) id 46yChW20WFz1ZVj; Tue, 22 Oct 2019 08:37:47 -0400 (EDT) Date: Tue, 22 Oct 2019 08:37:47 -0400 From: stan To: Pavel Stehule Cc: pgsql-general@lists.postgresql.org Subject: Re: A question about building pg-libphonenumber Message-ID: <20191022123747.GA1767@panix.com> References: <20191022121514.GA21095@panix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: X-Editor: gVim User-Agent: Mutt/1.12.1 (2019-06-15) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Tue, Oct 22, 2019 at 02:19:15PM +0200, Pavel Stehule wrote: > Hi >=20 > ??t 22. 10. 2019 v 14:15 odes??latel stan napsal: >=20 > > OK, this seems a stupid question, but I do not see the answer. > > > > > > I downloaded pg-libphonenumber, and am going to try to build it for PG > > version 11. Looks like the last build was against version 9.6. > > > > It builds fine, the issue comes in when I try to do a make install. It > > wants to install in the appropriate directory tree for 9.6. Should be a > > simple thing to change, right? But greping around, I cannot seem to find > > where this is defend. it is NOT in the Makefile. > > > > Can someone tell me where to change this to try it against the version = of > > the DB engine I am running? > > >=20 > The build and installation is controlled by small application - pg_config >=20 > [pavel@nemesis libvterm]$ pg_config --libdir > /usr/local/pgsql/lib > [pavel@nemesis libvterm]$ pg_config --sharedir > /usr/local/pgsql/share >=20 > if you have more versions on your comp, it is important what pg_config is > executed - depends on PATH >=20 Thanks, yes turns out I had the wrong development package installed (I am on Ubuntu). I removed the wrong one, and installed the correct one.=20 BUT, now I am getting this error at the "make install" step: cd '/usr/lib/postgresql/11/lib/bitcode' && /usr/lib/llvm-6.0/bin/llvm-lto -thinlto -thinlto-action=3Dthinlink -o pg_libphonenumber.index.bc pg_libphonenumber/src/error_handling.bc pg_libphonenumber/src/pg_libphonenumber.bc pg_libphonenumber/src/packed_phone_number.bc error: can't create module summary index for buffer: Expected a single module LLVM ERROR: ThinLink didn't create an index /usr/lib/postgresql/11/lib/pgxs/src/makefiles/pgxs.mk:229: recipe for target 'install' failed m=7F Any thoughts on this? --=20 "They that would give up essential liberty for temporary safety deserve neither liberty nor safety." -- Benjamin Franklin