Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Compress-LZO CPAN distribution.

Report information
The Basics
Id: 31033
Status: open
Priority: 0/
Queue: Compress-LZO

People
Owner: Nobody in particular
Requestors: pawel.bol [...] comarch.com
Cc:
AdminCc:

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



Subject: Problem with Compress::LZO installation
Date: Wed, 28 Nov 2007 15:41:19 +0100
To: <bug-Compress-LZO [...] rt.cpan.org>
From: "Pawel Bol" <pawel.bol [...] comarch.com>
Hello! I've got a problem with Compress::LZO installation. Due to the fact that LZO library has been installed painlessly, I suspect this might be a problem with the module itself. The problem appears when trying to "use" the module: $ perl -e "use Compress::LZO;" perl: symbol lookup error: /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/auto/Compress /LZO/LZO.so: undefined symbol: __lzo_init_v2 If you could investigate the problem and give me some clues, I'd be extremely grateful for your help! Here's all the important information: OS/arch: Linux/x86_64 Makefile.PL options: $LZO_INCLUDE = '-I/usr/local/include/lzo'; $LZO_LIB = '-L/usr/local/lib'; Console output: [tccbuild@neon Compress-LZO-1.08]$ ./configure Note (probably harmless): No library found for -llzo Writing Makefile for Compress::LZO $ make cp LZO.pm blib/lib/Compress/LZO.pm AutoSplitting blib/lib/Compress/LZO.pm (blib/lib/auto/Compress/LZO) /usr/bin/perl /usr/lib/perl5/5.8.8/ExtUtils/xsubpp -typemap /usr/lib/perl5/5.8.8/ExtUtils/typemap -typemap typemap LZO.xs > LZO.xsc && mv LZO.xsc LZO.c gcc -c -I/usr/local/include/lzo -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -DVERSION=\"1.08\" -DXS_VERSION=\"1.08\" -fPIC "-I/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE" LZO.c LZO.xs: In function âXS_Compress__LZO_compressâ: LZO.xs:134: warning: pointer targets in assignment differ in signedness LZO.xs: In function âXS_Compress__LZO_decompressâ: LZO.xs:182: warning: pointer targets in assignment differ in signedness Running Mkbootstrap for Compress::LZO () chmod 644 LZO.bs rm -f blib/arch/auto/Compress/LZO/LZO.so gcc -shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic LZO.o -o blib/arch/auto/Compress/LZO/LZO.so \ \ chmod 755 blib/arch/auto/Compress/LZO/LZO.so cp LZO.bs blib/arch/auto/Compress/LZO/LZO.bs chmod 644 blib/arch/auto/Compress/LZO/LZO.bs Manifying blib/man3/Compress::LZO.3pm $ su Password: # make install Installing /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/auto/Compress /LZO/LZO.so Installing /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/auto/Compress /LZO/LZO.bs Files found in blib/arch: installing files in blib/lib into architecture dependent library tree Installing /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/auto/Compress /LZO/autosplit.ix Installing /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/Compress/LZO. pm Installing /usr/share/man/man3/Compress::LZO.3pm Writing /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/auto/Compress /LZO/.packlist Appending installation info to /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/perllocal.pod [root@neon Compress-LZO-1.08]# exit $ perl -e "use Compress::LZO;" perl: symbol lookup error: /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/auto/Compress /LZO/LZO.so: undefined symbol: __lzo_init_v2 If you need any more, please let me know! Many thanks in advance for your valuable time spent on solving this problem! Please keep me informed if only possible! Thanks a lot! Best regards, Pawel Bol.
Subject: Re: [rt.cpan.org #31033] Problem with Compress::LZO installation
Date: Mon, 03 Dec 2007 00:27:06 +0100
To: bug-Compress-LZO [...] rt.cpan.org
From: "Markus F.X.J. Oberhumer" <markus [...] oberhumer.com>
This looks like some problem during linking - see the warning: Note (probably harmless): No library found for -llzo BTW, this is _not_ harmless. pawel.bol@comarch.com via RT wrote: Show quoted text
> Wed Nov 28 09:37:39 2007: Request 31033 was acted upon. > Transaction: Ticket created by pawel.bol@comarch.com > Queue: Compress-LZO > Subject: Problem with Compress::LZO installation > Broken in: (no value) > Severity: (no value) > Owner: Nobody > Requestors: pawel.bol@comarch.com > Status: new > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=31033 > > > > Hello! > > I've got a problem with Compress::LZO installation. Due to the fact that > LZO library has been installed painlessly, I suspect this might be a > problem with the module itself. > > The problem appears when trying to "use" the module: > > $ perl -e "use Compress::LZO;" > perl: symbol lookup error: > /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/auto/Compress > /LZO/LZO.so: undefined symbol: __lzo_init_v2 > > If you could investigate the problem and give me some clues, I'd be > extremely grateful for your help! > > Here's all the important information: > > OS/arch: Linux/x86_64 > > Makefile.PL options: > > $LZO_INCLUDE = '-I/usr/local/include/lzo'; > $LZO_LIB = '-L/usr/local/lib'; > > Console output: > > [tccbuild@neon Compress-LZO-1.08]$ ./configure > Note (probably harmless): No library found for -llzo > Writing Makefile for Compress::LZO > $ make > cp LZO.pm blib/lib/Compress/LZO.pm > AutoSplitting blib/lib/Compress/LZO.pm (blib/lib/auto/Compress/LZO) > /usr/bin/perl /usr/lib/perl5/5.8.8/ExtUtils/xsubpp -typemap > /usr/lib/perl5/5.8.8/ExtUtils/typemap -typemap typemap LZO.xs > LZO.xsc > && mv LZO.xsc LZO.c > gcc -c -I/usr/local/include/lzo -D_REENTRANT -D_GNU_SOURCE > -fno-strict-aliasing -pipe -Wdeclaration-after-statement > -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 > -I/usr/include/gdbm -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 > -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 > -mtune=generic -DVERSION=\"1.08\" -DXS_VERSION=\"1.08\" -fPIC > "-I/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE" LZO.c > LZO.xs: In function âXS_Compress__LZO_compressâ: > LZO.xs:134: warning: pointer targets in assignment differ in signedness > LZO.xs: In function âXS_Compress__LZO_decompressâ: > LZO.xs:182: warning: pointer targets in assignment differ in signedness > Running Mkbootstrap for Compress::LZO () > chmod 644 LZO.bs > rm -f blib/arch/auto/Compress/LZO/LZO.so > gcc -shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions > -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic LZO.o > -o blib/arch/auto/Compress/LZO/LZO.so \ > \ > > chmod 755 blib/arch/auto/Compress/LZO/LZO.so > cp LZO.bs blib/arch/auto/Compress/LZO/LZO.bs > chmod 644 blib/arch/auto/Compress/LZO/LZO.bs > Manifying blib/man3/Compress::LZO.3pm > $ su > Password: > # make install > Installing > /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/auto/Compress > /LZO/LZO.so > Installing > /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/auto/Compress > /LZO/LZO.bs > Files found in blib/arch: installing files in blib/lib into architecture > dependent library tree > Installing > /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/auto/Compress > /LZO/autosplit.ix > Installing > /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/Compress/LZO. > pm > Installing /usr/share/man/man3/Compress::LZO.3pm > Writing > /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/auto/Compress > /LZO/.packlist > Appending installation info to > /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/perllocal.pod > [root@neon Compress-LZO-1.08]# exit > $ perl -e "use Compress::LZO;" > perl: symbol lookup error: > /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/auto/Compress > /LZO/LZO.so: undefined symbol: __lzo_init_v2 > > If you need any more, please let me know! > > Many thanks in advance for your valuable time spent on solving this > problem! Please keep me informed if only possible! Thanks a lot! > > Best regards, > Pawel Bol. > > >
Subject: RE: [rt.cpan.org #31033] Problem with Compress::LZO installation
Date: Mon, 3 Dec 2007 14:01:29 +0100
To: <bug-Compress-LZO [...] rt.cpan.org>
From: "Pawel Bol" <pawel.bol [...] comarch.com>
Hey! Thanks a lot for pointing that out... Now it works great for me! Here's what I did... First created the symlinks to LZO libraries, which helped me to get rid of the "Note (probably harmless): No library found for -llzo" message (by the way, I wouldn't guess that "probably harmless" could be meant "_not_ harmless"). # ln -s /usr/local/lib/liblzo2.a /usr/local/lib/liblzo.a # ln -s /usr/local/lib/liblzo2.la /usr/local/lib/liblzo.la During the "make" step, the following error appeared: /usr/bin/ld: /usr/local/lib/liblzo.a(lzo_crc.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC So I have recompiled the LZO libraries with the additional "-fPIC" flag. $ export CFLAGS=-fPIC $ ./configure $ make $ make test # make install After this, all of the module installation went perfectly! Thank you! Best regards, Pawel Bol.