simon.proctor has asked for the wisdom of the Perl Monks concerning the following question:

I'm facing a problem compiling LibXSLT and getting it to pass its tests. This is the process I am following:

Firstly, you need to edit Makefile.PL to remove the tests with xlst-config as this isn't valid on win32 (that I can see). I edit the makefile.pl to have the defines and lib/include statements directly. These are the arguments I am using:
INC => q[-ID:\\Perl\\lib\\CORE] LIBS => q[-LD:\\Perl\\lib\\CORE -llibxslt -lxml2 -lzlib -lexslt]
I have installed all the .dll and .lib files inside CORE.

From this I can nmake without error. However, when it comes to nmake test I get a DLL entry point error. From what I can tell, because DOS is case insensitive its not seeing any difference between libxslt.dll (from XMLSoft) and LibXSLT.dll generated as part of the module compile.

I've got no problem editing any of the files to reference a different named dll (libxslt_win32.dll say) but I just don't know what to edit and what to put in it.

I've searched the internet and links talk about resolving the issue but provide no details.

Any help would be gratefully received.

SP

Replies are listed 'Best First'.
Re: LibXSLT:: Compiling XS with similiarly named Dlls
by PodMaster (Abbot) on Jun 03, 2004 at 19:33 UTC
    I have installed all the .dll and .lib files inside CORE.
    How about you forget the dynamic version and you just link against the static version?  LIBS => '-Lyada -llibxslt_a.lib'

    update: Either that or recompile the dynamic version to have a different name or do like http://search.cpan.org/dist/Audio-Audiere/ (that way perl won't generate LibXSLT.dll).

    MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
    I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
    ** The third rule of perl club is a statement of fact: pod is sexy.