Skip Menu |
 

This queue is for tickets about the XML-LibXML CPAN distribution.

Report information
The Basics
Id: 105486
Status: open
Priority: 0/
Queue: XML-LibXML

People
Owner: Nobody in particular
Requestors: ASB [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 2.0121
Fixed in: (no value)

Attachments
xml-libxml-2015-06-26_17h01install-fail.txt



Subject: XML::LibXML does not build for ActiveState Perl PPM buildbot anymore
Download (untitled) / with headers
text/plain 2.2k
Since ActiveState Perl 5.18, XML::LibXML does not build as a PPM anymore. You can have a look at the reports here: http://code.activestate.com/ppm/XML-LibXML/ There is also detailled descriptions why the build fails, if you click the icons in the pass matrix (I wish they would send reports to CPAN testers...), e.g. http://ppm4.activestate.com/MSWin32-x86-64int/5.20/2000/S/SH/SHLOMIF/XML-LibXML-2.0121.d/log-20150504T065807.txt?_ga=1.3866992.1943044981.1421690950 Here is an excerpt of why it does not build (I guess): [snip] Applying 1 patch: C:\cpanfly-5.20\etc\distroprefs\XML-LibXML.patch C:\cygwin\bin\patch.exe -N -p1 <<EOT --- XML-LibXML/Makefile.PL.orig 2013-03-07 17:17:28.213834200 -0800 +++ XML-LibXML/Makefile.PL 2013-03-07 17:24:38.870266600 -0800 @@ -305,7 +305,7 @@ $config_LIBS_alternatives = [ map { "$l $_" } q/ -lxml2 -lzlib/, - q/ -llibxml2 -lzlib -llibgettextlib.dll/ + q/ -llibxml2 -lzlib/ ]; $config{LIBS} = $config_LIBS_alternatives->[-1]; } EOT (Stripping trailing CRs from patch; use --binary to disable.) patching file Makefile.PL Hunk #1 succeeded at 315 with fuzz 2 (offset 10 lines). CPAN.pm: Building S/SH/SHLOMIF/XML-LibXML-2.0121.tar.gz Show quoted text
>>> C:\Perl-5.20\bin\perl.exe Makefile.PL INC=-I%FLY_LIBS%\include "LIBS=-L%FLY_LIBS%\lib -liconv"
enable native perl UTF8 Checking for ability to link against xml2...no Checking for ability to link against libxml2...libxml2, zlib, and/or the Math library (-lm) have not been found. Try setting LIBS and INC values on the command line Or get libxml2 from http://xmlsoft.org/ If you install via RPMs, make sure you also install the -devel RPMs, as this is where the headers (.h files) are. Also, you may try to run perl Makefile.PL with the DEBUG=1 parameter to see the exact reason why the detection of libxml2 installation failed or why Makefile.PL was not able to compile a test program. No 'Makefile' created SHLOMIF/XML-LibXML-2.0121.tar.gz C:\Perl-5.20\bin\perl.exe Makefile.PL INC=-I%FLY_LIBS%\include "LIBS=-L%FLY_LIBS%\lib -liconv" -- NOT OK Running make test Make had some problems, won't test Could not read metadata file. Falling back to other methods to determine prerequisites Finished 2015-05-04T06:58:16 [/snip]
Download (untitled) / with headers
text/plain 850b
Hi ASB, thanks for the report, but now the questions are - what is wrong in the Makefile.PL that prevents the build and how can it be fixed? Is there any way I can reproduce the process of the PPM buildbot inside a VM? I should note that XML::LibXML builds and works fine on Strawberry Perl. Regards, -- Shlomi Fish On Thu Jun 25 16:59:17 2015, ASB wrote: Show quoted text
> Since ActiveState Perl 5.18, XML::LibXML does not build as a PPM > anymore. > You can have a look at the reports here: > http://code.activestate.com/ppm/XML-LibXML/ > There is also detailled descriptions why the build fails, if you click > the icons in the pass matrix (I wish they would send reports to CPAN > testers...), e.g. http://ppm4.activestate.com/MSWin32-x86- > 64int/5.20/2000/S/SH/SHLOMIF/XML-LibXML-2.0121.d/log- > 20150504T065807.txt?_ga=1.3866992.1943044981.1421690950 >
Download (untitled) / with headers
text/plain 2.1k
Hi Shlomi, it's possible to reproduce the issue by installing ActiveState Perl 5.20 and running 'cpan install XML::LibXML'. Here is some more information: * OS: Windows Server 2012 R2 * Perl: 5.20.2 build 2001 Please let me know if you need any other information. The output from the reproduction is as follows: XML-LibXML-2.0121/dom.h Configuring S/SH/SHLOMIF/XML-LibXML-2.0121.tar.gz with Makefile.PL enable native perl UTF8 Checking for ability to link against xml2...no Checking for ability to link against libxml2...libxml2, zlib, and/or the Math li brary (-lm) have not been found. Try setting LIBS and INC values on the command line Or get libxml2 from http://xmlsoft.org/ If you install via RPMs, make sure you also install the -devel RPMs, as this is where the headers (.h files) are. Also, you may try to run perl Makefile.PL with the DEBUG=1 parameter to see the exact reason why the detection of libxml2 installation failed or why Makefile.PL was not able to compile a test program. No 'Makefile' created SHLOMIF/XML-LibXML-2.0121.tar.gz C:\Perl\bin\perl.exe Makefile.PL INSTALLDIRS=site -- NOT OK Failed during this command: SHLOMIF/XML-LibXML-2.0121.tar.gz : writemakefile NO -- No 'Makefile ' created HTH, Alex Am Fr 26. Jun 2015, 03:06:41, SHLOMIF schrieb: Show quoted text
> Hi ASB, > > thanks for the report, but now the questions are - what is wrong in > the Makefile.PL that prevents the build and how can it be fixed? Is > there any way I can reproduce the process of the PPM buildbot inside a > VM? I should note that XML::LibXML builds and works fine on Strawberry > Perl. > > Regards, > > -- Shlomi Fish > > On Thu Jun 25 16:59:17 2015, ASB wrote:
> > Since ActiveState Perl 5.18, XML::LibXML does not build as a PPM > > anymore. > > You can have a look at the reports here: > > http://code.activestate.com/ppm/XML-LibXML/ > > There is also detailled descriptions why the build fails, if you > > click > > the icons in the pass matrix (I wish they would send reports to CPAN > > testers...), e.g. http://ppm4.activestate.com/MSWin32-x86- > > 64int/5.20/2000/S/SH/SHLOMIF/XML-LibXML-2.0121.d/log- > > 20150504T065807.txt?_ga=1.3866992.1943044981.1421690950 > >
Download (untitled) / with headers
text/plain 545b
Hi Alexander, On Fri Jun 26 03:45:17 2015, ASB wrote: Show quoted text
> Hi Shlomi, > > it's possible to reproduce the issue by installing ActiveState Perl > 5.20 and running 'cpan install XML::LibXML'. > > Here is some more information: > * OS: Windows Server 2012 R2 > * Perl: 5.20.2 build 2001 > > Please let me know if you need any other information. >
Can you provide a patch for that, or at least run Makefile.PL with DEBUG=1? I guess I can try setting up a Windows Server 2012 R2 VM, but it will likely be time-consuming. Regards, -- Shlomi Fish
Download (untitled) / with headers
text/plain 915b
Hi! Please find attached the output of the cpan shell with DEBUG=1. I guess it's pretty obvious that libxml2 is missing. I also cannot install Alien::LibXML. I downloaded the Windows binaries from http://xmlsoft.org/ and added the bin folder to %PATH%, but no change. HTH, Alex Am Fr 26. Jun 2015, 07:01:54, SHLOMIF schrieb: Show quoted text
> Hi Alexander, > > On Fri Jun 26 03:45:17 2015, ASB wrote:
> > Hi Shlomi, > > > > it's possible to reproduce the issue by installing ActiveState Perl > > 5.20 and running 'cpan install XML::LibXML'. > > > > Here is some more information: > > * OS: Windows Server 2012 R2 > > * Perl: 5.20.2 build 2001 > > > > Please let me know if you need any other information. > >
> > Can you provide a patch for that, or at least run Makefile.PL with > DEBUG=1? I guess I can try setting up a Windows Server 2012 R2 VM, but > it will likely be time-consuming. > > Regards, > > -- Shlomi Fish
Subject: xml-libxml-2015-06-26_17h01install-fail.txt

Message body is not shown because it is too large.

Download (untitled) / with headers
text/plain 1.2k
Hi! On Fri Jun 26 11:02:46 2015, ASB wrote: Show quoted text
> Hi! > > Please find attached the output of the cpan shell with DEBUG=1. > I guess it's pretty obvious that libxml2 is missing. I also cannot > install Alien::LibXML. > I downloaded the Windows binaries from http://xmlsoft.org/ and added > the bin folder to %PATH%, but no change. >
Thanks! It seems that gcc cannot find the headers. You need to set the environment variables here: http://linux.die.net/man/1/gcc (See "CPATH" and "LIBRARY_PATH".). Can you try again with them set? Show quoted text
> HTH, > Alex > > Am Fr 26. Jun 2015, 07:01:54, SHLOMIF schrieb:
> > Hi Alexander, > > > > On Fri Jun 26 03:45:17 2015, ASB wrote:
> > > Hi Shlomi, > > > > > > it's possible to reproduce the issue by installing ActiveState Perl > > > 5.20 and running 'cpan install XML::LibXML'. > > > > > > Here is some more information: > > > * OS: Windows Server 2012 R2 > > > * Perl: 5.20.2 build 2001 > > > > > > Please let me know if you need any other information. > > >
> > > > Can you provide a patch for that, or at least run Makefile.PL with > > DEBUG=1? I guess I can try setting up a Windows Server 2012 R2 VM, > > but > > it will likely be time-consuming. > > > > Regards, > > > > -- Shlomi Fish
Download (untitled) / with headers
text/plain 3.6k
I'm sorry, I didn't get it to work. The reason is most likely me, as I'm a luser when it comes to compiling. Did I use the correct libxml package? I downloaded libxml2-2.7.8.win32, a set of binaries compiled for Windows. The content of the directory looks like this: C:\Perl\ext-dependencies\libxml2-2.7.8.win32>tree /f Folder PATH listing Volume serial number is 0CA1-C796 C:. │ readme.txt │ ├───bin │ libxml2.dll │ xmlcatalog.exe │ xmllint.exe │ ├───include │ └───libxml │ c14n.h │ catalog.h │ chvalid.h │ debugXML.h │ dict.h │ DOCBparser.h │ encoding.h │ entities.h │ globals.h │ hash.h │ HTMLparser.h │ HTMLtree.h │ list.h │ nanoftp.h │ nanohttp.h │ parser.h │ parserInternals.h │ pattern.h │ relaxng.h │ SAX.h │ SAX2.h │ schemasInternals.h │ schematron.h │ threads.h │ tree.h │ uri.h │ valid.h │ xinclude.h │ xlink.h │ xmlautomata.h │ xmlerror.h │ xmlexports.h │ xmlIO.h │ xmlmemory.h │ xmlmodule.h │ xmlreader.h │ xmlregexp.h │ xmlsave.h │ xmlschemas.h │ xmlschemastypes.h │ xmlstring.h │ xmlunicode.h │ xmlversion.h │ xmlwriter.h │ xpath.h │ xpathInternals.h │ xpointer.h │ └───lib libxml2.lib libxml2_a.lib libxml2_a_dll.lib So, I simply defined CPATH = LIBRARY_PATH as follows: C:\Perl\ext-dependencies\XML-LibXML-2.0121>set CPATH=C:\Perl\ext-dependencies\li bxml2-2.7.8.win32\bin;C:\Perl\ext-dependencies\libxml2-2.7.8.win32\include\libxm l;C:\Perl\ext-dependencies\libxml2-2.7.8.win32\lib;%PATH% C:\Perl\ext-dependencies\XML-LibXML-2.0121>SET LIBRARY_PATH=%CPATH% And then I ran "perl Makefile.PL DEBUG=1" again. The result is the same, the head files are not found. Is it something simple that I'm making wrong? Best regards, Alex Am Fr 26. Jun 2015, 12:25:57, SHLOMIF schrieb: Show quoted text
> Hi! > > On Fri Jun 26 11:02:46 2015, ASB wrote:
> > Hi! > > > > Please find attached the output of the cpan shell with DEBUG=1. > > I guess it's pretty obvious that libxml2 is missing. I also cannot > > install Alien::LibXML. > > I downloaded the Windows binaries from http://xmlsoft.org/ and added > > the bin folder to %PATH%, but no change. > >
> > Thanks! It seems that gcc cannot find the headers. You need to set the > environment variables here: > > http://linux.die.net/man/1/gcc > > (See "CPATH" and "LIBRARY_PATH".). > > Can you try again with them set? > >
> > HTH, > > Alex > > > > Am Fr 26. Jun 2015, 07:01:54, SHLOMIF schrieb:
> > > Hi Alexander, > > > > > > On Fri Jun 26 03:45:17 2015, ASB wrote:
> > > > Hi Shlomi, > > > > > > > > it's possible to reproduce the issue by installing ActiveState > > > > Perl > > > > 5.20 and running 'cpan install XML::LibXML'. > > > > > > > > Here is some more information: > > > > * OS: Windows Server 2012 R2 > > > > * Perl: 5.20.2 build 2001 > > > > > > > > Please let me know if you need any other information. > > > >
> > > > > > Can you provide a patch for that, or at least run Makefile.PL with > > > DEBUG=1? I guess I can try setting up a Windows Server 2012 R2 VM, > > > but > > > it will likely be time-consuming. > > > > > > Regards, > > > > > > -- Shlomi Fish
Download (untitled) / with headers
text/plain 641b
Hi ASB, On Sun Jun 28 06:27:10 2015, ASB wrote: Show quoted text
> I'm sorry, I didn't get it to work. > The reason is most likely me, as I'm a luser when it comes to > compiling. > > > So, I simply defined CPATH = LIBRARY_PATH as follows: > > C:\Perl\ext-dependencies\XML-LibXML-2.0121>set CPATH=C:\Perl\ext- > dependencies\li > bxml2-2.7.8.win32\bin;C:\Perl\ext-dependencies\libxml2- > 2.7.8.win32\include\libxm > l;C:\Perl\ext-dependencies\libxml2-2.7.8.win32\lib;%PATH% >
I believe you need to have C:\Perl\ext-dependencies\libxml2-2.7.8.win32\include in the CPATH Without the \libxml suffix, because it looks for "libxml/*.h". Try again with it.
Download (untitled) / with headers
text/plain 141b
XML::LibXML now uses Alien::Libxml2 to find or link against libxml2. Please open an issue for that distribution if this problem still occurs.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.