From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Included libraries in the Windows binary distribution Date: Sun, 05 Feb 2012 22:54:21 +0200 Message-ID: <8362flc876.fsf@gnu.org> References: <8362fmemv9.fsf@gnu.org> <4F2DF0C7.6050903@gmail.com> <83liohckbr.fsf@gnu.org> <86k44113p3.fsf@googlemail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: dough.gmane.org 1328475284 24772 80.91.229.3 (5 Feb 2012 20:54:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 5 Feb 2012 20:54:44 +0000 (UTC) Cc: cschol2112@googlemail.com, emacs-devel@gnu.org To: Juanma Barranquero Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 05 21:54:43 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ru96e-0002Oq-SM for ged-emacs-devel@m.gmane.org; Sun, 05 Feb 2012 21:54:41 +0100 Original-Received: from localhost ([::1]:37482 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ru96c-0006Pk-Ts for ged-emacs-devel@m.gmane.org; Sun, 05 Feb 2012 15:54:38 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:41941) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ru96a-0006Pf-Ot for emacs-devel@gnu.org; Sun, 05 Feb 2012 15:54:37 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ru96Z-00035H-Be for emacs-devel@gnu.org; Sun, 05 Feb 2012 15:54:36 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:46713) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ru96Z-00035D-44 for emacs-devel@gnu.org; Sun, 05 Feb 2012 15:54:35 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0LYX00I00U1YSG00@a-mtaout20.012.net.il> for emacs-devel@gnu.org; Sun, 05 Feb 2012 22:54:20 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.228.144.133]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LYX00GJ1U2JESK0@a-mtaout20.012.net.il>; Sun, 05 Feb 2012 22:54:20 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.166 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:148208 Archived-At: > From: Juanma Barranquero > Date: Sun, 5 Feb 2012 20:52:27 +0100 > Cc: Eli Zaretskii , emacs-devel@gnu.org > > On Sun, Feb 5, 2012 at 20:27, Christoph Scholtes > wrote: > > > So I successfully compiled with the patch and the libraries, however > > during bootstrap I got "libxml2 library not found" all over the place > > during compilation of elisp files. It shows up after compilation of > > every single .elc file. Is this expected? I don't have the > > binaries on the path anywhere. Just wondering where this output is > > generated. > > Here. > > + if (!(library = w32_delayed_load (libraries, Qlibxml2_dll))) > + { > + message ("%s", "libxml2 library not found"); > + return 0; > + } > > Every .el compiled is one instance of emacs (in batch mode) that fails > to find the library and outputs the message. The question is: why does it even try to find it? And the answer is that Emacs unconditionally calls xmlCleanupParser on exit, and that call tries to load the library. I will fix that. > I think the message is not necessary (we don't warn if we don't find > libpng3 or GnuTLS, for example). Oh, yes, we do: static int init_gnutls_functions (Lisp_Object libraries) { HMODULE library; int max_log_level = 1; if (!(library = w32_delayed_load (libraries, Qgnutls_dll))) { GNUTLS_LOG (1, max_log_level, "GnuTLS library not found"); return 0; } > > Also, once I have compiled support in, how can I test it? > > Use libxml-parse-(xml|html)-region. Yes, that's how I tested it. These functions are slow, btw.