Skip Menu |
 

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

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

People
Owner: Nobody in particular
Requestors: raherh [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in:
  • 2.0008
  • 2.0012
Fixed in: 2.0007



Subject: link against xml2...no on Solaris
Download (untitled) / with headers
text/plain 505b
Version 2.0007 is ok during perl Makefile.PL. Higher versions give the following. Solaris is 5.10 and libxml2 2.7.8. enable native perl UTF8 running xml2-config...ok (2.7.8) Checking for ability to link against xml2...no 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. Radek
Download (untitled) / with headers
text/plain 762b
Hi, On Tue Nov 20 07:29:41 2012, rahe wrote: Show quoted text
> Version 2.0007 is ok during perl Makefile.PL. Higher versions give the > following. Solaris is 5.10 and libxml2 2.7.8. > > enable native perl UTF8 > running xml2-config...ok (2.7.8) > Checking for ability to link against xml2...no > 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. > > > Radek
Can you copy+paste the output of perl Makefile.PL DEBUG=1 here? A Mercurial bisecting would be useful too: https://bitbucket.org/shlomif/perl-xml-libxml Regards, -- Shlomi Fish
From: raherh [...] gmail.com
Download (untitled) / with headers
text/plain 978b
On Tue Nov 20 11:53:53 2012, SHLOMIF wrote: Show quoted text
> Hi, >
Show quoted text
> Can you copy+paste the output of perl Makefile.PL DEBUG=1 here? A > Mercurial bisecting would be useful too: > > https://bitbucket.org/shlomif/perl-xml-libxml > > Regards, > > -- Shlomi Fish
$ perl Makefile.PL DEBUG=1 enable native perl UTF8 running xml2-config...xml2-config --version xml2-config --libs xml2-config --cflags ok (2.7.8) Checking for ability to link against xml2...no 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. Checking for ability to link against libxml2... $ Radek
Download (untitled) / with headers
text/plain 1.3k
On Tue Nov 20 13:04:03 2012, rahe wrote: Show quoted text
> On Tue Nov 20 11:53:53 2012, SHLOMIF wrote:
> > Hi, > >
>
> > Can you copy+paste the output of perl Makefile.PL DEBUG=1 here? A > > Mercurial bisecting would be useful too: > > > > https://bitbucket.org/shlomif/perl-xml-libxml > > > > Regards, > > > > -- Shlomi Fish
> > > $ perl Makefile.PL DEBUG=1 > enable native perl UTF8 > running xml2-config...xml2-config --version > xml2-config --libs > xml2-config --cflags > ok (2.7.8) > Checking for ability to link against xml2...no > 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. > Checking for ability to link against libxml2... > $ > > Radek
Well, it seems that either "-lm" is missing (unlikely) or zlib is. Please install a usable zlib library. Else, you may try to debug the Makefile.PL process using "perl -d". See: http://perl-begin.org/topics/debugging/ Regards, -- Shlomi Fish
From: raherh [...] gmail.com
Download (untitled) / with headers
text/plain 430b
Show quoted text
> Well, it seems that either "-lm" is missing (unlikely) or zlib is. > Please install a usable zlib library. Else, you may try to debug the > Makefile.PL process using "perl -d". See: > > http://perl-begin.org/topics/debugging/ > > Regards, > > -- Shlomi Fish
I upgraded zlib from 1.2.5 to 1.2.7, no change. If XML::LibXML 2.0007 installs ok, I'd say something's wrong with a version > 2.0007. What has been changed? Radek
From: raherh [...] gmail.com
Download (untitled) / with headers
text/plain 617b
Show quoted text
> Well, it seems that either "-lm" is missing (unlikely) or zlib is. > Please install a usable zlib library. Else, you may try to debug the > Makefile.PL process using "perl -d". See: > > http://perl-begin.org/topics/debugging/ > > Regards, > > -- Shlomi Fish
Running perl -d Makefile.pl gives: LIBS argument badly-formed: -R/usr/local/lib Show quoted text
____________ and running xml2-config --libs gives: -L/usr/local/lib -R/usr/local/lib -lxml2 -lz -lpthread -liconv -lm - lsocket -lnsl -R/usr/local/lib argument is not accepted by Devel::CheckLib. It requires all arguments to begin with -l or -L. Don't know why. Radek
Download (untitled) / with headers
text/plain 903b
Hi, On Wed Nov 21 10:13:54 2012, rahe wrote: Show quoted text
>
> > Well, it seems that either "-lm" is missing (unlikely) or zlib is. > > Please install a usable zlib library. Else, you may try to debug the > > Makefile.PL process using "perl -d". See: > > > > http://perl-begin.org/topics/debugging/ > > > > Regards, > > > > -- Shlomi Fish
> > > Running perl -d Makefile.pl gives: > > LIBS argument badly-formed: -R/usr/local/lib > ____________ > > and running xml2-config --libs gives: > -L/usr/local/lib -R/usr/local/lib -lxml2 -lz -lpthread -liconv -lm - > lsocket -lnsl > > -R/usr/local/lib argument is not accepted by Devel::CheckLib. > It requires all arguments to begin with -l or -L. > Don't know why.
Thanks for the investigation. I cannot find an "-R" flag in "man gcc" here. What does it do? Anyway, this may be a Devel::CheckLib bug, or you can try working around it. Regards, -- Shlomi Fish
From: raherh [...] gmail.com
Download (untitled) / with headers
text/plain 392b
Show quoted text
> > I cannot find an "-R" flag in "man gcc" here. What does it do? Anyway, > this may be a Devel::CheckLib bug, or you can try working around it. > > Regards, > > -- Shlomi Fish
-R is a runtime path library for a compiler. I had a look at libxml2 distribution and appears it's special for Solaris. I filed a bug for Devel::CheckLib but there are too many unresolved bugs there. Radek
Download (untitled) / with headers
text/plain 832b
On Wed Nov 21 15:05:40 2012, rahe wrote: Show quoted text
> -R is a runtime path library for a compiler. I had a look at libxml2 > distribution and appears it's > special for Solaris. I filed a bug for Devel::CheckLib but there are > too many unresolved bugs > there.
Same problem here. Devel::Checklib is locally included in the build directory under inc/, so I patched it. In assert_lib: my (@libs, @libpaths, @headers, @incpaths); to: my (@libs, @libpaths, @headers, @incpaths, @rpaths); die("LIBS argument badly-formed: $arg\n") unless($arg =~ /^-l/i); to: die("LIBS argument badly-formed: $arg\n") unless($arg =~ /^-[lLR]/i); And: (map { "-L$_" } @libpaths), to: (map { "-L$_" } @libpaths), (map { "-R$_" } @rpaths), Sorry for the not-official patch format...
Download (untitled) / with headers
text/plain 154b
On Fri Nov 30 18:31:52 2012, DOUGW wrote: Show quoted text
> die("LIBS argument badly-formed: $arg\n") unless($arg =~ > /^-[lLR]/i);
Remove the "i" in "/i"...
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.