Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Y1iu0-0008Hw-Qp for pgsql-bugs@arkaria.postgresql.org; Thu, 18 Dec 2014 21:46:32 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Y1iu0-0006hV-9w for pgsql-bugs@arkaria.postgresql.org; Thu, 18 Dec 2014 21:46:32 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Y1itk-0006Se-Mz for pgsql-bugs@postgresql.org; Thu, 18 Dec 2014 21:46:16 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Y1itd-00038b-Ei for pgsql-bugs@postgresql.org; Thu, 18 Dec 2014 21:46:15 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id sBILk3gh005149; Thu, 18 Dec 2014 16:46:03 -0500 From: Tom Lane To: Alvaro Herrera cc: greg.davidson@gmail.com, pgsql-bugs@postgresql.org Subject: Re: BUG #12275: configure incorrectly tests libxml2 version In-reply-to: <20141218212005.GB1769@alvh.no-ip.org> References: <20141218202423.1905.88366@wrigleys.postgresql.org> <20141218212005.GB1769@alvh.no-ip.org> Comments: In-reply-to Alvaro Herrera message dated "Thu, 18 Dec 2014 18:20:05 -0300" Date: Thu, 18 Dec 2014 16:46:03 -0500 Message-ID: <5148.1418939163@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Alvaro Herrera writes: > greg.davidson@gmail.com wrote: >> I had to comment out the libxml2 version check to get 9.4.0 to build. >> Perhaps it's because of the suffix on the version number? >> $ ./configure --with-libxml --with-libxslt --enable-debug --enable-cassert >> \ >> --with-tcl --with-tclconfig=/usr/lib/tcl8.6 --prefix=/usr/local/pgsql-9.4.0 >> ... >> checking for xmlSaveToBuffer in -lxml2... no >> configure: error: library 'xml2' (version >= 2.6.23) is required for XML >> support > I have 2.9.1 Debian-packaged here, and it works fine for me. config.log > says: > configure:8767: checking for xmlSaveToBuffer in -lxml2 > configure:8801: result: yes There is no version check as such in the test; it's just looking to see if xmlSaveToBuffer() links successfully. The complaint message is worded like that because xmlSaveToBuffer() didn't exist before 2.6.23. > I don't have the :i386 packages installed here; maybe your compiler is > picking up those instead of the amd64 ones. That or some other link failure seems like the probable cause. Looking into config.log to see what error messages the underlying tools printed would probably be helpful. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs