voroojax / waf-fle

Automatically exported from code.google.com/p/waf-fle
0 stars 0 forks source link

Can't locate object method "ssl_opts" via package "LWP::UserAgent" #32

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
* What steps will reproduce the problem?
1. When executing the script mlog2waffle

* What is the expected output? What do you see instead?

Can't locate object method "ssl_opts" via package "LWP::UserAgent" at 
/usr/local/sbin/mlog2waffle line 355.

* What version of the product are you using? On what operating system?
0.6.3
(0.6.0 hasn't that problem)

* Please provide any additional information below.

The perl packages installed:
ii  libalgorithm-diff-perl              1.19.02-2                    module to 
find differences between files
ii  libalgorithm-diff-xs-perl           0.04-1                       module to 
find differences between files (XS accelerated)
ii  libalgorithm-merge-perl             0.08-2                       Perl 
module for three-way merge of textual data
ii  libapt-pkg-perl                     0.1.24+b1                    Perl 
interface to libapt-pkg
ii  libauthen-sasl-perl                 2.1500-1                     
Authen::SASL - SASL Authentication framework
ii  libclass-accessor-perl              0.34-1                       Perl 
module that automatically generates accessors
ii  libclass-inspector-perl             1.24-1                       Perl 
module that provides information about classes
ii  libcommon-sense-perl                3.3-1                        module 
that implements some sane defaults for Perl programs
ii  libconvert-binhex-perl              1.119+pristine-3             Perl5 
module for extracting data from macintosh BinHex files
ii  libcrypt-ssleay-perl                0.57-2                       Support 
for https protocol in LWP
ii  libdbd-mysql-perl                   4.016-1                      Perl5 
database interface to the MySQL database
ii  libdbi-perl                         1.612-1                      Perl 
Database Interface (DBI)
ii  libdevel-symdump-perl               2.08-3                       Perl 
module for inspecting perl's symbol table
ii  libdpkg-perl                        1.15.8.13                    Dpkg perl 
modules
ii  liberror-perl                       0.17-1                       Perl 
module for error/exception handling in an OO-ish way
ii  libfcgi-perl                        0.71-1+squeeze1              helper 
module for FastCGI
ii  libfile-copy-recursive-perl         0.38-1                       Perl 
extension for recursively copying files and directories
ii  libfile-pid-perl                    1.01-1                       Perl 
module for pid file manipulation
ii  libfile-tail-perl                   0.99.3-4                     File::Tail 
perl module
ii  libfont-afm-perl                    1.20-1                       Font::AFM 
- Interface to Adobe Font Metrics files
ii  libfont-freetype-perl               0.03-1                       Read font 
files and render glyphs from Perl using FreeType2
ii  libhtml-format-perl                 2.04-2                       format 
HTML syntax trees into text, PostScript or RTF
ii  libhtml-parser-perl                 3.66-1                       collection 
of modules that parse HTML text documents
ii  libhtml-tagset-perl                 3.20-2                       Data 
tables pertaining to HTML
ii  libhtml-template-perl               2.9-2                        module for 
using HTML Templates with Perl
ii  libhtml-tree-perl                   3.23-2                       Perl 
module to represent and create HTML syntax trees
ii  libio-multiplex-perl                1.10-1                       
object-oriented interface to select() for Perl
ii  libio-pty-perl                      1:1.08-1                     Perl 
module for pseudo tty IO
ii  libio-socket-ssl-perl               1.33-1+squeeze1              Perl 
module implementing object oriented interface to SSL sockets
ii  libio-string-perl                   1.08-2                       Emulate 
IO::File interface for in-core strings
ii  libio-stringy-perl                  2.110-4                      Perl 
modules for IO from scalars and arrays
ii  libipc-run-perl                     0.89-1                       Perl 
module for running processes
ii  libjson-perl                        2.21-1                       Perl 
module to parse and convert to JSON
ii  libjson-xs-perl                     2.290-1                      module for 
serializing/deserializing JSON
ii  liblocale-gettext-perl              1.05-6                       Using libc 
functions for internationalization in Perl
ii  libmail-sendmail-perl               0.79.16-1                    Send email 
from a perl script
ii  libmailtools-perl                   2.06-1                       Manipulate 
email in perl programs
ii  libmime-tools-perl                  5.428-1                      Perl5 
modules for MIME-compliant messages
ii  libnet-cidr-perl                    0.13-1                       Manipulate 
IPv4/IPv6 netblocks in CIDR notation
ii  libnet-daemon-perl                  0.43-1                       Perl 
module for building portable Perl daemons easily
ii  libnet-libidn-perl                  0.12.ds-1+b1                 Perl 
bindings for GNU Libidn
ii  libnet-server-perl                  0.97-1                       An 
extensible, general perl server engine
ii  libnet-snmp-perl                    5.2.0-4                      Script 
SNMP connections
ii  libnet-ssleay-perl                  1.36-1                       Perl 
module for Secure Sockets Layer (SSL)
ii  libnet-xwhois-perl                  0.90-3                       Whois 
Client Interface for Perl5
ii  libossp-uuid-perl                   1.6.2-1                      perl 
OSSP::UUID - OSSP uuid Perl Binding
ii  libparse-debcontrol-perl            2.005-2                      Easy OO 
parsing of Debian control-like files
ii  libparse-debianchangelog-perl       1.1.1-2.1                    parse 
Debian changelogs and output them in other formats
ii  libperl5.10                         5.10.1-17squeeze6            shared 
Perl library
ii  libplrpc-perl                       0.2020-2                     Perl 
extensions for writing PlRPC servers and clients
ii  libpod-coverage-perl                0.21-1                       checker 
for comprehensiveness of perl module documentation
ii  libsoap-lite-perl                   0.712-2                      Perl 
implementation of a SOAP client and server
ii  libsub-name-perl                    0.04-1                       Assigns a 
new name to referenced sub
ii  libsvn-perl                         1.6.12dfsg-7                 Perl 
bindings for Subversion
ii  libsys-hostname-long-perl           1.4-2                        Figure out 
the long (fully-qualified) hostname
ii  libtask-weaken-perl                 1.03-1                       Ensure 
that a platform has weaken support
ii  libterm-readkey-perl                2.30-4                       A perl 
module for simple terminal control
ii  libterm-size-perl                   0.2-4+b1                     Perl 
extension for retrieving terminal size
ii  libtest-pod-perl                    1.42-1                       module to 
test for POD errors
ii  libtext-charwidth-perl              0.04-6                       get 
display widths of characters on the terminal
ii  libtext-iconv-perl                  1.7-2                        converts 
between character sets in Perl
ii  libtext-wrapi18n-perl               0.06-7                       
internationalized substitute of Text::Wrap
ii  libtie-ixhash-perl                  1.21-2                       ordered 
associative arrays for Perl
ii  libtimedate-perl                    1.2000-1                     collection 
of modules to manipulate date/time information
ii  liburi-perl                         1.54-2                       module to 
manipulate and access URI strings
ii  libuuid-perl                        0.02-4                       Perl 
extension for using UUID interfaces as defined in e2fsprogs
ii  libwww-perl                         5.836-1                      Perl 
HTTP/WWW client/server library
ii  libxml-namespacesupport-perl        1.09-3                       Perl 
module for supporting simple generic namespaces
ii  libxml-parser-perl                  2.36-1.1+b1                  Perl 
module for parsing XML files
ii  libxml-sax-expat-perl               0.40-1                       Perl 
module for a SAX2 driver for Expat (XML::Parser)
ii  libxml-sax-perl                     0.96+dfsg-2                  Perl 
module for using and building Perl SAX2 XML processors
ii  libxml-simple-perl                  2.18-3                       Perl 
module for reading and writing XML
ii  libyaml-syck-perl                   1.12-1                       Perl 
module providing a fast, lightweight YAML loader and dumper
ii  perl                                5.10.1-17squeeze6            Larry 
Wall's Practical Extraction and Report Language
ii  perl-base                           5.10.1-17squeeze6            minimal 
Perl system
ii  perl-modules                        5.10.1-17squeeze6            Core Perl 
modules
ii  perl-suid                           5.10.1-17squeeze6            runs 
setuid Perl scripts

Someone (here: https://wtf.roflcopter.fr/links/pogo/?E8qwLQ) says to do:
sudo perl -MCPAN -e 'force install LWP::Protocol::https'

But, as I don't understand what it tries to do, I would like your advice

Original issue reported on code.google.com by oxim...@gmail.com on 31 Jan 2014 at 5:23

GoogleCodeExporter commented 8 years ago
A temporary solution as I don't use https to access the controller (it's only 
accessible via localhost, so that's not too important for me)
Put as comment the 2 lines:
$ua->ssl_opts( verify_hostname => $CHECK_CERT );
(lines 83 & +-355)

Original comment by oxim...@gmail.com on 31 Jan 2014 at 5:46

GoogleCodeExporter commented 8 years ago
The problem is that you are using a really old libwww-perl 5.836-1 (from 2010), 
and "ssl_opts" was introduced on version 6.00 (2011).

To make optional, and avoid change the code and get it broken on next update, 
this was made optional. Next version will include this, but by now you can get 
is on https://github.com/klaubert/waf-fle/tree/0.7.0-devel, any way consider 
update you libwww.

Best regards, 

Klaubert

Original comment by klaub...@gmail.com on 31 Jan 2014 at 7:18

GoogleCodeExporter commented 8 years ago
Indeed.

Debian Wheezy, the one we should soon have, will have libwww-perl 6.04-1
So I'll keep my fix up to then.

Thanks for your answer.

Original comment by oxim...@gmail.com on 31 Jan 2014 at 7:35