Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Thu, 05 Jun 2003 08:10:16 -0400 From: Jason Tishler Subject: Re: How to get Libxml2/Libxslt Python Bindings (was Re: [ANNOUNCE] LibXSLT (1.0.27)...) In-reply-to: <00d001c32b1d$59848990$710d86d9@ellixia> To: cygwin AT cygwin DOT com Mail-followup-to: cygwin AT cygwin DOT com Message-id: <20030605121016.GA2420@tishler.net> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT Content-disposition: inline User-Agent: Mutt/1.4i References: <004d01c32b0e$9d832520$710d86d9 AT ellixia> <005901c32b11$ea425540$710d86d9 AT ellixia> <00d001c32b1d$59848990$710d86d9 AT ellixia> Elfyn, On Thu, Jun 05, 2003 at 05:45:40AM +0100, Elfyn McBratney wrote: > PS- Peter, `mv {cyg,lib}xml2mod.dll' does the trick. If maintaining the "cyg" prefix is considered important, then there is another solution... If a Python shared extension module is called "xyzfoo.$SO" (where $SO is so, .dll, etc.), then it must export an initialization function called "initxyzfoo". Therefore, cygxml2mod.dll must export "initcygxml2mod" not "initlibxml2mod": $ objdump -p libxml2mod.dll | fgrep init [ 511] initlibxml2mod The solution is to change the shared extension module source from: void initlibxml2mod(void) { ... } to the following: void #ifdef __CYGWIN__ initcygxml2mod(void) #else initlibxml2mod(void) #endif /* __CYGWIN__ */ { ... } And similarly for libxslt. Jason -- PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers Fingerprint: 7A73 1405 7F2B E669 C19D 8784 1AFD E4CC ECF4 8EF6 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/