pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #12275: configure incorrectly tests libxml2 version
3+ messages / 3 participants
[nested] [flat]

* BUG #12275: configure incorrectly tests libxml2 version
@ 2014-12-18 20:24  greg.davidson@gmail.com
  0 siblings, 1 reply; 3+ messages in thread

From: greg.davidson@gmail.com @ 2014-12-18 20:24 UTC (permalink / raw)
  To: pgsql-bugs

The following bug has been logged on the website:

Bug reference:      12275
Logged by:          Greg Davidson
Email address:      greg.davidson@gmail.com
PostgreSQL version: 9.4.0
Operating system:   mint 17.1
Description:        

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

$ dpkg-query -l '*xml2*'
||/ Name               Version                 Arch   Description
+++-==================-=======================-======-===========================================
ii  libxml2:amd64      2.9.1+dfsg1-3ubuntu4.4  amd64  GNOME XML library
ii  libxml2:i386       2.9.1+dfsg1-3ubuntu4.4  i386   GNOME XML library
ii  libxml2-dev:amd64  2.9.1+dfsg1-3ubuntu4.4  amd64  Development files for
the GNOME XML library
ii  libxml2-doc        2.9.1+dfsg1-3ubuntu4.4  all    Documentation for the
GNOME XML library
ii  libxml2-utils      2.9.1+dfsg1-3ubuntu4.4  amd64  XML utilities

P.S. I hope that the appearance of line clipping I'm seeing above is an
illusion.  Perhaps the bug report textentry widget should have room for 80
character wide pastes from terminals?


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: BUG #12275: configure incorrectly tests libxml2 version
@ 2014-12-18 21:20  Alvaro Herrera <alvherre@2ndquadrant.com>
  parent: greg.davidson@gmail.com
  0 siblings, 1 reply; 3+ messages in thread

From: Alvaro Herrera @ 2014-12-18 21:20 UTC (permalink / raw)
  To: greg.davidson@gmail.com; +Cc: pgsql-bugs

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

> $ dpkg-query -l '*xml2*'
> ||/ Name               Version                 Arch   Description
> +++-==================-=======================-======-===========================================
> ii  libxml2:amd64      2.9.1+dfsg1-3ubuntu4.4  amd64  GNOME XML library
> ii  libxml2:i386       2.9.1+dfsg1-3ubuntu4.4  i386   GNOME XML library
> ii  libxml2-dev:amd64  2.9.1+dfsg1-3ubuntu4.4  amd64  Development files for
> the GNOME XML library
> ii  libxml2-doc        2.9.1+dfsg1-3ubuntu4.4  all    Documentation for the
> GNOME XML library
> ii  libxml2-utils      2.9.1+dfsg1-3ubuntu4.4  amd64  XML utilities

I don't have the :i386 packages installed here; maybe your compiler is
picking up those instead of the amd64 ones.

ii  libxml2:amd64              2.9.1+dfsg1-4      amd64              GNOME XML library
ii  libxml2-dev:amd64          2.9.1+dfsg1-4      amd64              Development files for the GNOME XML library
ii  libxml2-utils              2.9.1+dfsg1-4      amd64              XML utilities


> P.S. I hope that the appearance of line clipping I'm seeing above is an
> illusion.  Perhaps the bug report textentry widget should have room for 80
> character wide pastes from terminals?

No such luck, but I don't think it's all that critical anyway.

-- 
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: BUG #12275: configure incorrectly tests libxml2 version
@ 2014-12-18 21:46  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Alvaro Herrera <alvherre@2ndquadrant.com>
  0 siblings, 0 replies; 3+ messages in thread

From: Tom Lane @ 2014-12-18 21:46 UTC (permalink / raw)
  To: Alvaro Herrera <alvherre@2ndquadrant.com>; +Cc: greg.davidson@gmail.com; pgsql-bugs

Alvaro Herrera <alvherre@2ndquadrant.com> 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



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2014-12-18 21:46 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2014-12-18 20:24 BUG #12275: configure incorrectly tests libxml2 version greg.davidson@gmail.com
2014-12-18 21:20 ` Alvaro Herrera <alvherre@2ndquadrant.com>
2014-12-18 21:46   ` Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox