ftp.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-apps/2002/06/18/20:20:01

Mailing-List: contact cygwin-apps-help AT cygwin DOT com; run by ezmlm
Sender: cygwin-apps-owner AT cygwin DOT com
List-Subscribe: <mailto:cygwin-apps-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-apps/>
List-Post: <mailto:cygwin-apps AT cygwin DOT com>
List-Help: <mailto:cygwin-apps-help AT cygwin DOT com>, <http://sources.redhat.com/lists.html#faqs>
Mail-Followup-To: cygwin-apps AT cygwin DOT com
Delivered-To: mailing list cygwin-apps AT cygwin DOT com
From: "Peter Ring" <pri AT ddf DOT dk>
To: <cygwin-apps AT cygwin DOT com>
Subject: RE: please update libXML
Date: Wed, 19 Jun 2002 01:12:17 +0200
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
In-Reply-To: <176978717551.20020618171423@familiehaase.de>

libxslt also links against libpython and libxml2

I added to mylibs in libxslt-1.0.18/python/Makefile.am:

  -lxml2 -L/usr/lib/python2.2/config -lpython2.2

There are still some issues, though. I didn't get the python 
bindings for libxml2 and libxslt installed without some messing

Part of the problem might be that my install prefix was /usr/local, 
so the python module got installed in

which is not by default in python's module search path. To 
append this directory to the search path, I created the file:


with this content:


Another part of the problem is that python doesn't grok that 
the module 'libxml2mod' is the file 'cygxml2mod.dll' (same goes 
for libxsltmod). The filename must correspond to the module name. 
My quick-and-dirty fix was to add a link (symlinks won't work) to 
the dlls:

  ln cygxml2mod.dll libxml2mod.dll
  ln cygxsltmod.dll libxsltmod.dll

AFAIK, nothing but python is supposed to load or link against 
these files. Either they should be created with the correct module 
name, or python must learn about .la files.

Kind regards
Peter Ring

-----Original Message-----
From: cygwin-apps-owner AT cygwin DOT com
[mailto:cygwin-apps-owner AT cygwin DOT com]On Behalf Of Gerrit P. Haase
Sent: 18. juni 2002 17:14
To: Robert Collins
Cc: cygwin-apps AT cygwin DOT com
Subject: Re: please update libXML

Robert schrieb:

>> > Now if only I could also link with python ...
>> Hmm, I added -lpython2.2 to the linkline for the module and I 
>> thought it
>> worked (at least for libxml2, I'm not sure about libxslt), 
>> this is also
>> in my patch included.

> Gerrit, could you please give me a patch for the current libxml &|
> libxslt source packages to get the python modules going? I'd love to get
> that working, and would get it incorporated upstream.

With the fix of Nicholas now, the latest version (of my patch), at least
libxml links against libpython.  But there really should be a patch in
Makefile.am for this since the configure script succeeds to lookup the
python lib and add the needed defines in the right place but does not add
libpythonx.x to the link line.  This patch now works only with the
libpython2.2 installed and it should be version independant too.  Still
I'm not sure about libxslt, does it link against libpython too?


- Raw text -

  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019