From jefferson@aoeu2code.com Fri Feb 7 23:45:42 2020 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.gnome.org (Postfix) with ESMTP id 482F676103 for ; Fri, 7 Feb 2020 23:45:42 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: 1.15 X-Spam-Level: * X-Spam-Status: No, score=1.15 tagged_above=-999 required=6.2 tests=[BAYES_50=1.25, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, SPF_PASS=-0.001] autolearn=no Received: from smtp.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NLk8KxWw8RGP for ; Fri, 7 Feb 2020 23:45:40 +0000 (UTC) X-Greylist: delayed 907 seconds by postgrey-1.34 at restaurant.gnome.org; Fri, 07 Feb 2020 23:45:40 UTC Received: from sender4-of-o51.zoho.com (sender4-of-o51.zoho.com [136.143.188.51]) by smtp.gnome.org (Postfix) with ESMTPS id A01E4760EC for ; Fri, 7 Feb 2020 23:45:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1581118227; s=zoho; d=aoeu2code.com; i=jefferson@aoeu2code.com; h=Date:From:To:Message-Id:In-Reply-To:Subject:MIME-Version:Content-Type; bh=vRbCgPxYTMW/Oag4cvo07lx3A9/OtWuGXbGGuMCXO/o=; b=ZG8EbDsDggu1mPnwExLTPObcDn2w0odJ+foMnF9/XEC6gqyYlAP/KDOgq7oBBvc7 R2fvqlLftm/miT0NnfF3cBj8FG0UU9LdDTkngPIZAO3E13+HuwFcHQCf9IWeEAfVupX nTJpD//q6bYGDfx+9/9r6mWVfddofaT11IgDsi6o= Received: from mail.zoho.com by mx.zohomail.com with SMTP id 1581118225930669.0969643159704; Fri, 7 Feb 2020 15:30:25 -0800 (PST) Date: Fri, 07 Feb 2020 23:30:25 +0000 From: Jefferson Carpenter To: "xml" Message-Id: <17021fd7e08.f5011e85398829.8503252769045782507@aoeu2code.com> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1309341_1716509594.1581118225928" Importance: Medium User-Agent: Zoho Mail X-Mailer: Zoho Mail Subject: [xml] If libxml2 headers refer to libxml/*.h, why is it installed into libxml2/libxml? X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Feb 2020 23:45:42 -0000 ------=_Part_1309341_1716509594.1581118225928 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I just built libxml2 and am compiling against it, but am getting this error= : =C2=A0 =C2=A0=C2=A0/Users/jcarpen/local/include/libxml2/libxml/tree.h:17:10= : fatal error: 'libxml/xmlversion.h' file not found It seems like the default install directory for libxml2 headers is not corr= ect - it is broken at the preprocessor level. Obviously, it would be ludicrous to ask me to add header search paths speci= fically for libxml2, since if I want to build against libraries in multiple= prefixes (which I do), then the libxml2-specific include directory would h= ave to be adjusted in parallel with the prefix that I'm using. The version of libxml2 installed by my system package manager has the same = property, so it seems like it's a long-standing bug.=C2=A0 Any way I can he= lp? -Jefferson Carpenter ------=_Part_1309341_1716509594.1581118225928 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable =
I just built libxml2 and am compiling against it, = but am getting this error:

    = /Users/jcarpen/local/include/libxml2/libxml/tree.h:17:10: fatal error: 'lib= xml/xmlversion.h' file not found

It seems like= the default install directory for libxml2 headers is not correct - it is b= roken at the preprocessor level.

Obviously, it= would be ludicrous to ask me to add header search paths specifically for l= ibxml2, since if I want to build against libraries in multiple prefixes (wh= ich I do), then the libxml2-specific include directory would have to be adj= usted in parallel with the prefix that I'm using.

<= div>The version of libxml2 installed by my system package manager has the s= ame property, so it seems like it's a long-standing bug.  Any way I ca= n help?

-Jefferson Carpenter
------=_Part_1309341_1716509594.1581118225928-- From rcsaba@gmail.com Sun Feb 9 19:44:43 2020 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.gnome.org (Postfix) with ESMTP id 9051C76116 for ; Sun, 9 Feb 2020 19:44:43 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: 1.9 X-Spam-Level: * X-Spam-Status: No, score=1.9 tagged_above=-999 required=6.2 tests=[BAYES_00=-1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.5, HTML_MESSAGE=0.001, RBL_SORBS_SPAM_NEW=2.5, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=no Received: from smtp.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6I-F7LnCHym9 for ; Sun, 9 Feb 2020 19:44:42 +0000 (UTC) Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) by smtp.gnome.org (Postfix) with ESMTPS id AED6F7610E for ; Sun, 9 Feb 2020 19:44:40 +0000 (UTC) Received: by mail-wr1-f52.google.com with SMTP id t2so4959322wrr.1 for ; Sun, 09 Feb 2020 11:44:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3kEfomNiZXKRR8N2+iFK8Xf6Arys+liu7GjHzQowB/4=; b=BLjJrEqFRmXcBwXHtz4Zuvvj4ywMoXkH/Http8iGzmnnHT3XDb/9QUEqBgFXnMcBAX F87Y+4JrrGoCWy1xIDPXara9t9NxkwQOH+UFoPY1AXM9nfP+XDJCcfN3WWlUD3cRwFo8 HPTOQ8FDJKgndUS3NgU563r8TBNqhkeyzlbC9TdxSbAt7fwQXlIXjI1DJ1xGR4PwZM5T zGyVbTnSn/qaJw8gdRHmnENFxi8MyNXb3t260P3QHGNPSYamQulNaAl65ERNVkkJusQt +i3TuLQ3DUbD1EV89GvHAXLmJ5ljNGsdk2XATb/9eBv8QeyVnO7L+AXo4P+0Z+F2McIN WO/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3kEfomNiZXKRR8N2+iFK8Xf6Arys+liu7GjHzQowB/4=; b=CozwT8kzr9hyGkGEkNErUra8glB5Rde10iNKz4v/NemkAQpYTGlUMx7U5M7KoUUMHJ arZtunoLfkJnrHOiytQk6usjfPcikBmDHunipOD1TuTiShf8sqraQ1lzYEomgcLIKyFt 6u01MLE9k6bb7p0kjN6fKSE1jGrT+AD1ZZv7+XQc4hzvv0XgoV1sWN/QIq5vgyxuFxmy Gg5WIvsg+SY/Uj+ZcUVZjINzaU3z0om2V49lrMHktmrhLLyhEZlOlJl1h62iqsTBtDzy w4Db1rCCCRxydP0Y9ULqymByAJT3yxAXeMlvjCXqND8OojhMAyL9gLtxJCBD5eLwetJG wxAQ== X-Gm-Message-State: APjAAAVfkQdtuG4jxgxMEjSvKjfHwQ+L8eB5VFohY1WgYiP233JjHQyj FFiyHJKSrvEFsVX/Yb2dGg/mXkeAiLVRHFQNzV4= X-Google-Smtp-Source: APXvYqyBCqfgUl0k6pV8m6PDeeHKOd3vMWuHIvWke2tNRPB3vyC+UHQe0F0mc2QmTwYGVQBL0elRllUWSMROjAK2hiM= X-Received: by 2002:adf:9dc9:: with SMTP id q9mr11802310wre.286.1581277478187; Sun, 09 Feb 2020 11:44:38 -0800 (PST) MIME-Version: 1.0 References: <17021fd7e08.f5011e85398829.8503252769045782507@aoeu2code.com> In-Reply-To: <17021fd7e08.f5011e85398829.8503252769045782507@aoeu2code.com> From: Csaba Raduly Date: Sun, 9 Feb 2020 20:44:19 +0100 Message-ID: To: Jefferson Carpenter Cc: xml Content-Type: multipart/alternative; boundary="00000000000060f5c5059e29daf0" Subject: Re: [xml] If libxml2 headers refer to libxml/*.h, why is it installed into libxml2/libxml? X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Feb 2020 19:44:43 -0000 --00000000000060f5c5059e29daf0 Content-Type: text/plain; charset="UTF-8" Hi, On Sat, Feb 8, 2020 at 12:45 AM Jefferson Carpenter wrote: > I just built libxml2 and am compiling against it, but am getting this > error: > > /Users/jcarpen/local/include/libxml2/libxml/tree.h:17:10: fatal > error: 'libxml/xmlversion.h' file not found > > Please tell us the full compiler invocation, otherwise we can't figure out what's going on. Merely building libxml doesn't put the headers in a place where user programs can find it. You may need to run "make install" too (usually a root, or via sudo). tree.h contains "#include ". If /Users/jcarpen/local/include/libxml2 is not on the compiler's include search path (e.g. via -I/Users/jcarpen/local/include/libxml2) then the compiler won't find it. Csaba -- You can get very substantial performance improvements by not doing the right thing. - Scott Meyers, An Effective C++11/14 Sampler So if you're looking for a completely portable, 100% standards-conformant way to get the wrong information: this is what you want. - Scott Meyers (C++TDaWYK) --00000000000060f5c5059e29daf0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

<= div dir=3D"ltr" class=3D"gmail_attr">On Sat, Feb 8, 2020 at 12:45 AM Jeffer= son Carpenter=C2=A0 wrote:
I just built libxml2 and am compiling against= it, but am getting this error:

=C2=A0 =C2=A0<= span class=3D"gmail_default" style=3D"font-family:courier new,monospace;fon= t-size:large">=C2=A0/Users/jcarpen/local/include/libxml2/libxml/tree= .h:17:10: fatal error: 'libxml/xmlversion.h' file not found


Please te= ll us the full compiler invocation, otherwise we can't figure out what&= #39;s going on.

Merely building libxml doesn't put the headers in a place where use= r programs can find it. You may need to run "make install" too (u= sually a root, or via sudo).

tre= e.h contains "#include <libxml/xmlversion.h= >". If /Users/jcarpen/local/include/libxml2= is not on the compiler's include search path (e.g. via -I/Users/jcarpen/loc= al/include/libxml2) then the compiler won't find it.
<= /div>
Csaba

--
You can get very substantial performance improvements
by no= t doing the right thing. - Scott Meyers, An Effective C++11/14 Sampler
S= o if you're looking for a completely portable, 100% standards-conforman= t way
to get the wrong information: this is what you want. - Scott Meyer= s (C++TDaWYK)
--00000000000060f5c5059e29daf0-- From jefferson@aoeu2code.com Wed Feb 12 17:32:34 2020 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.gnome.org (Postfix) with ESMTP id CBBCC7612C for ; Wed, 12 Feb 2020 17:32:34 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.1 X-Spam-Level: X-Spam-Status: No, score=-1.1 tagged_above=-999 required=6.2 tests=[BAYES_00=-1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=no Received: from smtp.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VVpmC22cV_MO for ; Wed, 12 Feb 2020 17:32:33 +0000 (UTC) Received: from sender4-of-o51.zoho.com (sender4-of-o51.zoho.com [136.143.188.51]) by smtp.gnome.org (Postfix) with ESMTPS id 91FF57611F for ; Wed, 12 Feb 2020 17:32:32 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; t=1581528748; cv=none; d=zohomail.com; s=zohoarc; b=HsOobMsfZKwLJK5CHVFwoz/YXhOvM4Jm3ntE+mZGnJUT/4OCQCxVycqBGVTeuIuf0ZdSaizbc5hrNFjVcMt9ntsISzm//Wnjuzyq96qnlj2kD1Ua0c5XLHOfLVQDL7JTbtQKH/Bhkq0dCdBi+FvWQaGwFeyOSR5ajgoonYrRcYI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1581528748; h=Content-Type:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=PtLNRKyMiy9WiYgQ/GmptlJTPtdBD9FZ40sT1PmNw3U=; b=fZhCRWoCxZbNbi4vgMeNyloQaytF12USsovg6jUFEZFS9zivtx0X1rwmP6oWrCx42D+7ATYx2Lse8/o4I7m4VIm1OixEh2ED0W0OKW/JjQcosFGGZTWLFxtzGQZIhVT0Az1Lrj/I2TwNhsvs1KogAZ/MaOQEGjjFM7oxPaaNSio= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=aoeu2code.com; spf=pass smtp.mailfrom=jefferson@aoeu2code.com; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1581528748; s=zoho; d=aoeu2code.com; i=jefferson@aoeu2code.com; h=Date:From:To:Cc:Message-Id:In-Reply-To:References:Subject:MIME-Version:Content-Type; bh=PtLNRKyMiy9WiYgQ/GmptlJTPtdBD9FZ40sT1PmNw3U=; b=HdRmSXwuz/B3/DkzF3b7+H5Iv9oz7pzXy2UBTVckRpW3iqKBMYdDqeaKKKtqyGXg apWx6kiwZWXFl6ydzzgInmUntFFgiPIcYqvA+Y9yYWfztuhw9wkHKkLSJzEl6J80h0q xyKWUEjCYFYG60sDJEtW4q9BSFXlc7Ht6RZlS4ho= Received: from mail.zoho.com by mx.zohomail.com with SMTP id 1581528746792870.4480165056398; Wed, 12 Feb 2020 09:32:26 -0800 (PST) Date: Wed, 12 Feb 2020 17:32:26 +0000 From: Jefferson Carpenter To: "Csaba Raduly" , "Xml" Message-Id: <1703a758b25.1172ce609430338.5595587995267706699@aoeu2code.com> In-Reply-To: References: <17021fd7e08.f5011e85398829.8503252769045782507@aoeu2code.com> <2547660.3301.1581277492378.JavaMail.root@m05> <04ad01d5e03c$fcdd7890$f69869b0$@vicsmba.com> <170360b0bf4.ad917843267255.4005129573837403859@aoeu2code.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1396625_175006186.1581528746789" Importance: Medium User-Agent: Zoho Mail X-Mailer: Zoho Mail Subject: Re: [xml] If libxml2 headers refer to libxml/*.h, why is it installed into libxml2/libxml? X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Feb 2020 17:32:35 -0000 ------=_Part_1396625_175006186.1581528746789 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable It wouldn't break the majority of software projects to change the libxml2 h= eaders to include each other by the path `libxml2/libxml` instead of just b= y `libxml`.=C2=A0 Most configurations will have `/include` in the header se= arch directories prior to `include/libxml2` which would have been added to = use/switch to libxml2. Jefferson ---- On Tue, 11 Feb 2020 21:25:58 +0000 Csaba Raduly wro= te ---- You have to use -I $HOME/local/include/libxml2. On Linux systems and Cygwin= , the system's built-in libxml2 places its headers in /usr/include/libxml2/= libxml and you have to use -I /usr/include/libxml2 libxml2 is weird like that :) . You just have to live with it. (Perhaps libxml2 is set up like this to be source-compatible with libxml1, = so programs which e.g. #include can be compiled without modi= fying the source, just by adding an extra compiler switch. But I'm just spe= culating.) Csaba On Tue, Feb 11, 2020 at 9:57 PM Jefferson Carpenter wrote: This is after running =C2=A0 =C2=A0=C2=A0./configure --prefix=3D"$HOME/local" --with-python-insta= ll-dir=3D"$HOME/local" =C2=A0 =C2=A0 make =C2=A0 =C2=A0 make install and compiling my program with =C2=A0 =C2=A0 -I"$HOME/local/include" No other libraries that I use ask me to add additional include directories = to my compiler search paths (including boost, libxslt, postgresql, openssl)= . --=20 You can get very substantial performance improvements by not doing the right thing. - Scott Meyers, An Effective C++11/14 Sampler So if you're looking for a completely portable, 100% standards-conformant w= ay to get the wrong information: this is what you want. - Scott Meyers (C++TDa= WYK) ------=_Part_1396625_175006186.1581528746789 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable =
It wouldn't break the majority of software project= s to change the libxml2 headers to include each other by the path `libxml2/= libxml` instead of just by `libxml`.  Most configurations will have `/= include` in the header search directories prior to `include/libxml2` which = would have been added to use/switch to libxml2.

Jefferson


---- On Tue, 11 Feb 2020 21:2= 5:58 +0000 Csaba Raduly <rcsaba@gmail.com> wrote ----

You have to use -I $HOME/local/include/lib= xml2. On Linux systems and Cygwin, the system's built-in libxml2 places its= headers in /usr/include/libxml2/libxml and you have to use -I /usr/include= /libxml2

libxml2 is weird like that :) . You just have to live with it.=

(Perhaps libxml2 is set up like this to be source-compatible with libx= ml1, so programs which e.g. #include <libxml/SAX.h> can be compiled w= ithout modifying the source, just by adding an extra compiler switch. But I= 'm just speculating.)

Csaba

On Tue, Fe= b 11, 2020 at 9:57 PM Jefferson Carpenter <jefferson@aoeu2code.com> wrote:
<= /div>
This is after running

    ./configure --prefix=3D"$HOME/local" --with-pyt= hon-install-dir=3D"$HOME/local"
    make
   = ; make install

and compiling my program with

    -I= "$HOME/local/include"

No other libraries that I use ask me to add ad= ditional include directories to my compiler search paths (including boost, = libxslt, postgresql, openssl).

--
You can get very su= bstantial performance improvements
by not doing the right thing. - Scott= Meyers, An Effective C++11/14 Sampler
So if you're looking for a comple= tely portable, 100% standards-conformant way
to get the wrong informatio= n: this is what you want. - Scott Meyers (C++TDaWYK)


------=_Part_1396625_175006186.1581528746789-- From andrew.w.nosenko@gmail.com Wed Feb 12 21:43:11 2020 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.gnome.org (Postfix) with ESMTP id 7B9C37615A for ; Wed, 12 Feb 2020 21:43:11 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: 0.4 X-Spam-Level: X-Spam-Status: No, score=0.4 tagged_above=-999 required=6.2 tests=[BAYES_00=-1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.5, FREEMAIL_REPLY=1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=no Received: from smtp.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3DwE5dnccLUg for ; Wed, 12 Feb 2020 21:43:05 +0000 (UTC) Received: from mail-ua1-f45.google.com (mail-ua1-f45.google.com [209.85.222.45]) by smtp.gnome.org (Postfix) with ESMTPS id B2D857611F for ; Wed, 12 Feb 2020 21:43:04 +0000 (UTC) Received: by mail-ua1-f45.google.com with SMTP id c7so1486300uaf.5 for ; Wed, 12 Feb 2020 13:43:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=n8zYssG/O4lzLKDOgxxI25kDWcjikz0E6ljBEiTN6ts=; b=Dm/7K938xDembwSGWHDSReTedNtVgQC+A6YzedsAjusj0RWZauclekBm4rB7XQ+6xc wphMP8/NZzJnU5Y2bL6Fg/bi74fx1lZ23j3c2zokWpqfhIoxSxfmXE7srLEcgFuqHOkZ 5JABisx23axzhj6UsI7+mI+B6FzJ9osj2stSlsnJMj65MYjdBhesVhzObWLzDXQxsO0r EhgIpJ6aDNuCfkithvVu8f3YHJwY9L4O3cFyQKqt75RGzMIkhl1BQSMLz3hu2MVXUtxZ pO9BI6LYIEgN8xkkgY7mfEWtLtHHOV7fYedvK/3f7Li7IY9X6KveqqG2tp9thmssoUWY 3ing== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=n8zYssG/O4lzLKDOgxxI25kDWcjikz0E6ljBEiTN6ts=; b=SjMgK/SQIztGYNhXhB7MqVAWGxzpriRHt6mRRm4nJ04wGh0Sa5qD5aLrcOqy794tkc JNYoA3nb1XUmBIOvJmvX+BIJwnR1QBzWJjJJQWgU51Z3bpMqHKxoiyXwS30jcn8+wvDP g1vecEuSHoyy3eQFuQxFAU/LJHJ00NDFC53MvMDT2VATOGmyymvqzevRMqzeB/cEo1Ff Cq/sqaPiOE0wmn4Ot7cZ+Iio0I4xt1DKw1JkVWI88lrh4DHgGCSkWcSV8TPIRbcb0Rig EmwzNM/eqbnvWclKh/Hx+v7k1h2xm3Q0hSJZHPMKpV7ViojmZng0kEAfPWyJ7FWzeBwI JS2Q== X-Gm-Message-State: APjAAAWLn+ojXnns+VMzYHv4aS09VsdVyYcjg4rHIehs2GKDrv6algdF sC9Vbj7Qnq/FOfcuXG3o4kKvu7HG9apvC8ZJGds= X-Google-Smtp-Source: APXvYqyb7A5voGizYaNa1Sh23RTKl/oEM3bpEUQdTld+K0lVMR0mLsUi0zQ3rswOgAke6FsWobfgcys5YjYkj/42ZuA= X-Received: by 2002:ab0:60ba:: with SMTP id f26mr5879769uam.51.1581543782666; Wed, 12 Feb 2020 13:43:02 -0800 (PST) MIME-Version: 1.0 References: <17021fd7e08.f5011e85398829.8503252769045782507@aoeu2code.com> <2547660.3301.1581277492378.JavaMail.root@m05> <04ad01d5e03c$fcdd7890$f69869b0$@vicsmba.com> <170360b0bf4.ad917843267255.4005129573837403859@aoeu2code.com> <1703a758b25.1172ce609430338.5595587995267706699@aoeu2code.com> In-Reply-To: <1703a758b25.1172ce609430338.5595587995267706699@aoeu2code.com> From: "Andrew W. Nosenko" Date: Wed, 12 Feb 2020 23:42:51 +0200 Message-ID: To: Jefferson Carpenter Cc: Csaba Raduly , Xml Content-Type: multipart/alternative; boundary="0000000000005cd7a6059e67db52" Subject: Re: [xml] If libxml2 headers refer to libxml/*.h, why is it installed into libxml2/libxml? X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Feb 2020 21:43:11 -0000 --0000000000005cd7a6059e67db52 Content-Type: text/plain; charset="UTF-8" On Tue, Feb 11, 2020 at 9:57 PM Jefferson Carpenter wrote: This is after running ./configure --prefix="$HOME/local" --with-python-install-dir="$HOME/local" make make install and compiling my program with -I"$HOME/local/include" No other libraries that I use ask me to add additional include directories to my compiler search paths (including boost, libxslt, postgresql, openssl). It's far simpler. You just didn't configured libxml2 properly in your configure.ac Add something like that there: PKG_CHECK_MODULES(XML2, [libxml-2.0 >= 2.8.0]) and then in your Makefile.am AM_CPPFLAGS = $(XML2_CFLAGS) Some historical context: Many long running projects behave like that w.r.t. headers. It allows to have two (or more) major, incompatible versions installed in parallel. Before libxml2 there was just libxml/gnome-xml. And there was real need to have they running in parallel. Similarly behaves GLib (glib-2.0), for example. And because of just the same reason. On Wed, Feb 12, 2020 at 7:32 PM Jefferson Carpenter wrote: > It wouldn't break the majority of software projects to change the libxml2 > headers to include each other by the path `libxml2/libxml` instead of just > by `libxml`. Most configurations will have `/include` in the header search > directories prior to `include/libxml2` which would have been added to > use/switch to libxml2. > > Jefferson > > > ---- On Tue, 11 Feb 2020 21:25:58 +0000 *Csaba Raduly >* wrote ---- > > You have to use -I $HOME/local/include/libxml2. On Linux systems and > Cygwin, the system's built-in libxml2 places its headers in > /usr/include/libxml2/libxml and you have to use -I /usr/include/libxml2 > > libxml2 is weird like that :) . You just have to live with it. > > (Perhaps libxml2 is set up like this to be source-compatible with libxml1, > so programs which e.g. #include can be compiled without > modifying the source, just by adding an extra compiler switch. But I'm just > speculating.) > > Csaba > > On Tue, Feb 11, 2020 at 9:57 PM Jefferson Carpenter < > jefferson@aoeu2code.com> wrote: > > This is after running > > ./configure --prefix="$HOME/local" > --with-python-install-dir="$HOME/local" > make > make install > > and compiling my program with > > -I"$HOME/local/include" > > No other libraries that I use ask me to add additional include directories > to my compiler search paths (including boost, libxslt, postgresql, openssl). > > -- > You can get very substantial performance improvements > by not doing the right thing. - Scott Meyers, An Effective C++11/14 Sampler > So if you're looking for a completely portable, 100% standards-conformant > way > to get the wrong information: this is what you want. - Scott Meyers > (C++TDaWYK) > > > > _______________________________________________ > xml mailing list, project page http://xmlsoft.org/ > xml@gnome.org > https://mail.gnome.org/mailman/listinfo/xml > -- Andrew W. Nosenko --0000000000005cd7a6059e67db52 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
O= n Tue, Feb 11, 2020 at 9:57 PM Jefferson Carpenter <jefferson@aoeu2code.com> wr= ote:
This is after ru= nning

=C2=A0 =C2=A0=C2=A0./configure --prefix= =3D"$HOME/local" --with-python-install-dir=3D"$HOME/local&qu= ot;
=C2=A0 =C2=A0 make
=C2=A0 =C2=A0 make install

and co= mpiling my program with

=C2=A0 =C2=A0 -I"$HOME/local/include&qu= ot;

No other libraries that I use ask me to add additional include d= irectories to my compiler search paths (including boost, libxslt, postgresq= l, openssl).


It's far simpler.=C2=A0 You just didn= 't configured libxml2 properly in your = configure.ac
Add something like that there:
=
PKG_CHECK_MOD= ULES(XML2, [libxml-2.0 >=3D 2.8.0])
and then in y= our Makefile.am
AM_CPPFLAGS =3D=C2=A0$(XML2_CFLAGS)
<= /blockquote>

Some historical context:
Many long running projects behav= e like that w.r.t. headers.=C2=A0 It allows to have two (or more) major, in= compatible versions installed in parallel.=C2=A0 Before libxml2 there was j= ust libxml/gnome-xml.=C2=A0 And there was real need to have they running in= parallel.=C2=A0 Similarly behaves GLib (glib-2.0), for example.=C2=A0 And = because of=C2=A0just=C2=A0the same reason.
=

On Wed, Feb 12, 2020 at 7:32 PM Jefferson Carpenter <jefferson@aoeu2code.com> wrote:
It wouldn't break the majority of = software projects to change the libxml2 headers to include each other by th= e path `libxml2/libxml` instead of just by `libxml`.=C2=A0 Most configurati= ons will have `/include` in the header search directories prior to `include= /libxml2` which would have been added to use/switch to libxml2.

Jefferson


---- On Tue, 11 Feb 2020 21:25:58 +0000 Csaba Rad= uly <rcsaba@gmail.= com> wrote ----

Y= ou have to use -I $HOME/local/include/libxml2. On Linux systems and Cygwin,= the system's built-in libxml2 places its headers in /usr/include/libxm= l2/libxml and you have to use -I /usr/include/libxml2

libxml2 is weird like that :) . You just have to live with it.

(Perhaps libxml2 is set up like this to be source-compatible= with libxml1, so programs which e.g. #include <libxml/SAX.h> can be = compiled without modifying the source, just by adding an extra compiler swi= tch. But I'm just speculating.)

Csaba
<= /div>
On Tue, Feb 11, 2020 at 9:57 PM Jefferson Ca= rpenter <je= fferson@aoeu2code.com> wrote:
This is after r= unning

=C2=A0 =C2=A0=C2=A0./configure --prefix= =3D"$HOME/local" --with-python-install-dir=3D"$HOME/local&qu= ot;
=C2=A0 =C2=A0 make
=C2=A0 =C2=A0 make install

and co= mpiling my program with

=C2=A0 =C2=A0 -I"$HOME/local/include&qu= ot;

No other libraries that I use ask me to add additional include d= irectories to my compiler search paths (including boost, libxslt, postgresq= l, openssl).

--
= You can get very substantial performance improvements
by not doing the r= ight thing. - Scott Meyers, An Effective C++11/14 Sampler
So if you'= re looking for a completely portable, 100% standards-conformant way
to g= et the wrong information: this is what you want. - Scott Meyers (C++TDaWYK)=


_______= ________________________________________
xml mailing list, project page=C2=A0 http://xmlsoft.org/
xml@gnome.org
https://mail.gnome.org/mailman/listinfo/xml


--
Andrew W. Nosenko <andrew.w.nosenko@gmail.com>
--0000000000005cd7a6059e67db52-- From wellnhofer@aevum.de Sat Feb 15 13:51:23 2020 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.gnome.org (Postfix) with ESMTP id 62C2C76115 for ; Sat, 15 Feb 2020 13:51:23 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: 1.249 X-Spam-Level: * X-Spam-Status: No, score=1.249 tagged_above=-999 required=6.2 tests=[BAYES_50=1.25, SPF_PASS=-0.001] autolearn=no Received: from smtp.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Dd7mJJBZjIrE for ; Sat, 15 Feb 2020 13:51:21 +0000 (UTC) X-Greylist: delayed 355 seconds by postgrey-1.34 at restaurant.gnome.org; Sat, 15 Feb 2020 13:51:21 UTC Received: from hosting04.aevum.de (hosting04.aevum.de [188.68.58.30]) by smtp.gnome.org (Postfix) with ESMTPS id 8307176112 for ; Sat, 15 Feb 2020 13:51:20 +0000 (UTC) Received: from [IPv6:2001:a61:2b1e:5101:5ccc:ac49:ec14:bc20] (unknown [IPv6:2001:a61:2b1e:5101:5ccc:ac49:ec14:bc20]) by hosting04.aevum.de (Postfix) with ESMTPSA id 47DF5600AD; Sat, 15 Feb 2020 14:45:22 +0100 (CET) To: Constantin Dogaru , xml@gnome.org References: From: Nick Wellnhofer Message-ID: Date: Sat, 15 Feb 2020 14:45:26 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [xml] precisionDecimal support X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Feb 2020 13:51:23 -0000 On 24/01/2020 15:35, Constantin Dogaru via xml wrote: > Would be open in accepting a contribution from Bloomberg that will add support > for precisionDecimal in libxml2? To be clear, you're talking about this XSD extension datatype? https://www.w3.org/TR/xsd-precisionDecimal/ Technically, this document specifies an extension to XSD 1.1 while libxml2 only supports version 1.0. But since it's just a new datatype, it should work with the old version as well. > Is this something that you would be interested in? Me personally, no. But libxml2 is an open-source project, and in principle we accept contributions from everyone. Things can move a bit slow due to a lack of maintainers, though. Nick