Re: configure problem --with-libxml

Lists: pgsql-hackers
From: "Pavel Stehule" <pavel(dot)stehule(at)hotmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: configure problem --with-libxml
Date: 2006-12-22 08:37:50
Message-ID: BAY114-F371DE198911CFDA4A2B783F9CD0@phx.gbl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Hello,

I try to compile postgres with SQL/XML, but I finished on

checking libxml/parser.h usability... no
checking libxml/parser.h presence... no
checking for libxml/parser.h... no
configure: error: header file <libxml/parser.h> is required for XML support

I have Fedora Core 6, and libxml2-devel I have installed. I checked parser.h
and this file is in /usr/include/libxml2/libxml/ directory

I am sorry, but configure file is spenish vilage for me, and I can't correct
it.

Regards
Pavel Stehule

_________________________________________________________________
Chcete sdilet sve obrazky a hudbu s prateli? http://messenger.msn.cz/


From: Stefan Kaltenbrunner <stefan(at)kaltenbrunner(dot)cc>
To: Pavel Stehule <pavel(dot)stehule(at)hotmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: configure problem --with-libxml
Date: 2006-12-22 08:49:00
Message-ID: 458B9BFC.6050303@kaltenbrunner.cc
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Pavel Stehule wrote:
> Hello,
>
> I try to compile postgres with SQL/XML, but I finished on
>
> checking libxml/parser.h usability... no
> checking libxml/parser.h presence... no
> checking for libxml/parser.h... no
> configure: error: header file <libxml/parser.h> is required for XML support
>
> I have Fedora Core 6, and libxml2-devel I have installed. I checked
> parser.h and this file is in /usr/include/libxml2/libxml/ directory
>
> I am sorry, but configure file is spenish vilage for me, and I can't
> correct it.

try adding --with-includes=/usr/include/libxml2 to your configure line

Stefan


From: "Pavel Stehule" <pavel(dot)stehule(at)hotmail(dot)com>
To: stefan(at)kaltenbrunner(dot)cc
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: configure problem --with-libxml
Date: 2006-12-22 09:10:15
Message-ID: BAY20-F180D06BCE18D85360F3240F9CD0@phx.gbl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

I solved it via symlink, but this is much cleaner

Maybe configure scripts needs little bit more inteligence. All people on RH
systems have to do it :-(

Thank you

Pavel Stehule

>From: Stefan Kaltenbrunner <stefan(at)kaltenbrunner(dot)cc>
>To: Pavel Stehule <pavel(dot)stehule(at)hotmail(dot)com>
>CC: pgsql-hackers(at)postgresql(dot)org
>Subject: Re: [HACKERS] configure problem --with-libxml
>Date: Fri, 22 Dec 2006 09:49:00 +0100
>
>Pavel Stehule wrote:
>>Hello,
>>
>>I try to compile postgres with SQL/XML, but I finished on
>>
>>checking libxml/parser.h usability... no
>>checking libxml/parser.h presence... no
>>checking for libxml/parser.h... no
>>configure: error: header file <libxml/parser.h> is required for XML
>>support
>>
>>I have Fedora Core 6, and libxml2-devel I have installed. I checked
>>parser.h and this file is in /usr/include/libxml2/libxml/ directory
>>
>>I am sorry, but configure file is spenish vilage for me, and I can't
>>correct it.
>
>try adding --with-includes=/usr/include/libxml2 to your configure line
>
>
>Stefan

_________________________________________________________________
Emotikony a pozadi programu MSN Messenger ozivi vasi konverzaci.
http://messenger.msn.cz/


From: "Nikolay Samokhvalov" <samokhvalov(at)gmail(dot)com>
To: "Pavel Stehule" <pavel(dot)stehule(at)hotmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: configure problem --with-libxml
Date: 2006-12-22 09:47:27
Message-ID: e431ff4c0612220147x2b5932cyaa0c080a6f4ff480@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

another way is:
export CPPFLAGS=$(xml2-config --cflags); ./configure --with-libxml

I think that such thing can be used in configure script itself,
overwise a lot of people will try, fail and do not use SQL/XML at all.

On 12/22/06, Pavel Stehule <pavel(dot)stehule(at)hotmail(dot)com> wrote:
> Hello,
>
> I try to compile postgres with SQL/XML, but I finished on
>
> checking libxml/parser.h usability... no
> checking libxml/parser.h presence... no
> checking for libxml/parser.h... no
> configure: error: header file <libxml/parser.h> is required for XML support
>
> I have Fedora Core 6, and libxml2-devel I have installed. I checked parser.h
> and this file is in /usr/include/libxml2/libxml/ directory
>
> I am sorry, but configure file is spenish vilage for me, and I can't correct
> it.
>
> Regards
> Pavel Stehule
>
> _________________________________________________________________
> Chcete sdilet sve obrazky a hudbu s prateli? http://messenger.msn.cz/
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Have you searched our list archives?
>
> http://archives.postgresql.org
>

--
Best regards,
Nikolay


From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-hackers(at)postgresql(dot)org, nikolay(at)samokhvalov(dot)com
Cc: "Pavel Stehule" <pavel(dot)stehule(at)hotmail(dot)com>
Subject: Re: configure problem --with-libxml
Date: 2006-12-22 14:03:49
Message-ID: 200612221503.50622.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Nikolay Samokhvalov wrote:
> another way is:
> export CPPFLAGS=$(xml2-config --cflags); ./configure --with-libxml
>
> I think that such thing can be used in configure script itself,
> overwise a lot of people will try, fail and do not use SQL/XML at
> all.

The reason why I did not do this was that this could resolve
to -I/usr/include or -I/usr/local/include, but adding such a standard
path explicitly is wrong on some systems.

Clearly, we need to improve this, but I don't know how yet. Ideas
welcome.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/


From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-hackers(at)postgresql(dot)org, nikolay(at)samokhvalov(dot)com, Pavel Stehule <pavel(dot)stehule(at)hotmail(dot)com>
Subject: Re: configure problem --with-libxml
Date: 2006-12-22 14:12:49
Message-ID: 20061222141249.GB32471@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Fri, Dec 22, 2006 at 03:03:49PM +0100, Peter Eisentraut wrote:
> Nikolay Samokhvalov wrote:
> > another way is:
> > export CPPFLAGS=$(xml2-config --cflags); ./configure --with-libxml
> >
> > I think that such thing can be used in configure script itself,
> > overwise a lot of people will try, fail and do not use SQL/XML at
> > all.
>
> The reason why I did not do this was that this could resolve
> to -I/usr/include or -I/usr/local/include, but adding such a standard
> path explicitly is wrong on some systems.

But if people on such a system want to use libxml2, and they install it
in /usr/include then they're screwed anyway. There's no way to tell the
compiler to use only some files in a directory.

Put another way, if adding the include path for libxml2 breaks their
build environment, they can't use libxml2. Have configure play dumb
isn't helping anyone. It won't work on any more or less systems.

Have a nice day,
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Martijn van Oosterhout <kleptog(at)svana(dot)org>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-hackers(at)postgresql(dot)org, nikolay(at)samokhvalov(dot)com, Pavel Stehule <pavel(dot)stehule(at)hotmail(dot)com>
Subject: Re: configure problem --with-libxml
Date: 2006-12-22 14:51:27
Message-ID: 24119.1166799087@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Martijn van Oosterhout <kleptog(at)svana(dot)org> writes:
> On Fri, Dec 22, 2006 at 03:03:49PM +0100, Peter Eisentraut wrote:
>> The reason why I did not do this was that this could resolve
>> to -I/usr/include or -I/usr/local/include, but adding such a standard
>> path explicitly is wrong on some systems.

> But if people on such a system want to use libxml2, and they install it
> in /usr/include then they're screwed anyway. There's no way to tell the
> compiler to use only some files in a directory.

That's not the point, the point is that an *explicit* -I can be wrong
(because it can change the search order of the default directories).

Perhaps it'd be worth trying to add xml2-config's output only if the
first probe for the headers fails?

regards, tom lane