Skip Menu |

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

Report information
The Basics
Id: 25525
Status: resolved
Priority: 0/
Queue: XML-LibXSLT

People
Owner: Nobody in particular
Requestors: morgan [...] lysator.liu.se
Cc:
AdminCc:

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



Subject: Missing -lgcrypt.
Date: Sun, 18 Mar 2007 17:05:21 +0100
To: bug-XML-LibXSLT [...] rt.cpan.org
From: Morgan Nilsson <morgan [...] lysator.liu.se>
I think that -lgcrypt is missing in the linking. Steps to reproduce: 1. Try to cross compile 32 bit perl on x86_64. 2. Install libgcrypt.i386, and other needed i386 stuff. 3. perl -MCPAN -e "install XML::LibXSLT" gives errors in "make test" LibXSLT.so: undefined symbol: gcry_check_version Workaround: Manually running: perl Makefile.PL LIBS="$(xslt-config --libs) -lgcrypt" INC="$(xslt-config --cflags)
XML::LibXSLT does not itself depend on libgcrypt, but maybe your Perl build does (see perl -V), but I still wonder why does it require for extensions. I could maybe add all $Config::Config{libs} to the list of libraries in the Makefile.PL but I don't know if it is the right solution. -- Petr On ne 18.bře.2007 12:06:00, morgan@lysator.liu.se wrote: Show quoted text
> I think that -lgcrypt is missing in the linking. > > Steps to reproduce: > > 1. Try to cross compile 32 bit perl on x86_64. > 2. Install libgcrypt.i386, and other needed i386 stuff. > 3. perl -MCPAN -e "install XML::LibXSLT" > > gives errors in "make test" > > LibXSLT.so: undefined symbol: gcry_check_version > > > Workaround: > > Manually running: > > perl Makefile.PL LIBS="$(xslt-config --libs) -lgcrypt" > INC="$(xslt-config --cflags)
Subject: Re: [rt.cpan.org #25525] Missing -lgcrypt.
Date: Mon, 19 Mar 2007 17:09:58 +0100
To: bug-XML-LibXSLT [...] rt.cpan.org
From: Morgan Nilsson <morgan [...] lysator.liu.se>
Hi. More info: I can compile other modules: perl -MCPAN -e "install XML::LibXML::Common" perl -MCPAN -e "install XML::LibXML" works without any problems. It looks as if LibXSLT.so needs gcrypt. I found out by running: ldd -d LibXSLT.so /Morgan via RT wrote: Show quoted text
> <URL: http://rt.cpan.org/Ticket/Display.html?id=25525 > > > XML::LibXSLT does not itself depend on libgcrypt, but maybe your Perl > build does (see perl -V), but I still wonder why does it require for > extensions. > > I could maybe add all $Config::Config{libs} to the list of libraries > in the Makefile.PL but I don't know if it is the right solution. > > -- Petr > > > > On ne 18.bře.2007 12:06:00, morgan@lysator.liu.se wrote:
>> I think that -lgcrypt is missing in the linking. >> >> Steps to reproduce: >> >> 1. Try to cross compile 32 bit perl on x86_64. >> 2. Install libgcrypt.i386, and other needed i386 stuff. >> 3. perl -MCPAN -e "install XML::LibXSLT" >> >> gives errors in "make test" >> >> LibXSLT.so: undefined symbol: gcry_check_version >> >> >> Workaround: >> >> Manually running: >> >> perl Makefile.PL LIBS="$(xslt-config --libs) -lgcrypt" >> INC="$(xslt-config --cflags)
> >
-lgcrypt dependency is added by libexslt. I updated the Makefile.PL in order to use pkg-config libexslt --libs for configuring additional the LD flags and added some defaults (including -lgcrypt) if pgk-config fails. The updated version is in the SVN (see README). -- Petr