{"action":"created","issue":{"url":"https://api.github.com/repos/matteocorti/check_updates/issues/6","labels_url":"https://api.github.com/repos/matteocorti/check_updates/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/matteocorti/check_updates/issues/6/comments","events_url":"https://api.github.com/repos/matteocorti/check_updates/issues/6/events","html_url":"https://github.com/matteocorti/check_updates/issues/6","id":119081406,"number":6,"title":"1.6.12 doesn't build with Monitoring::Plugins","user":{"login":"mattpr","id":1196252,"avatar_url":"https://avatars.githubusercontent.com/u/1196252?v=3","gravatar_id":"","url":"https://api.github.com/users/mattpr","html_url":"https://github.com/mattpr","followers_url":"https://api.github.com/users/mattpr/followers","following_url":"https://api.github.com/users/mattpr/following{/other_user}","gists_url":"https://api.github.com/users/mattpr/gists{/gist_id}","starred_url":"https://api.github.com/users/mattpr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattpr/subscriptions","organizations_url":"https://api.github.com/users/mattpr/orgs","repos_url":"https://api.github.com/users/mattpr/repos","events_url":"https://api.github.com/users/mattpr/events{/privacy}","received_events_url":"https://api.github.com/users/mattpr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":23,"created_at":"2015-11-26T17:11:53Z","updated_at":"2015-11-30T16:17:39Z","closed_at":null,"body":"1.6.10 builds fine, 1.6.12 doesn't.  \r\n\r\nI poked around a bit but don't know much about how perl locates and includes modules.  Maybe I look at it more later.\r\n\r\n# diff of Makefile.PL\r\n\r\n```\r\n# diff check_updates10/Makefile.PL check_updates12/Makefile.PL\r\n7,8c7,8\r\n< # $Id: Makefile.PL 1408 2015-01-09 17:08:34Z corti $\r\n< # $Revision: 1408 $\r\n---\r\n> # $Id: Makefile.PL 1448 2015-06-11 09:14:46Z corti $\r\n> # $Revision: 1448 $\r\n10c10\r\n< # $Date: 2015-01-09 18:08:34 +0100 (Fri, 09 Jan 2015) $\r\n---\r\n> # $Date: 2015-06-11 11:14:46 +0200 (Thu, 11 Jun 2015) $\r\n26,32c26,52\r\n< requires 'Carp'                          => 0;\r\n< requires 'English'                       => 0;\r\n< requires 'Monitoring::Plugin'            => 0;\r\n< requires 'Monitoring::Plugin::Getopt'    => 0;\r\n< requires 'Monitoring::Plugin::Threshold' => 0;\r\n< requires 'POSIX'                         => 0;\r\n< requires 'Readonly'                      => 0;\r\n---\r\n> my %prereqs = (\r\n>     'Carp'     => 0,\r\n>     'English'  => 0,\r\n>     'POSIX'    => 0,\r\n>     'Readonly' => 0,\r\n> );\r\n>\r\n> if( eval { require Monitoring::Plugin } ) {\r\n>     $prereqs{'Monitoring::Plugin'} = 0;\r\n> }\r\n> else {\r\n>     $prereqs{'Nagios::Plugin'} = 0;\r\n> }\r\n>\r\n> if( eval { require Monitoring::Plugin::Threshold } ) {\r\n>     $prereqs{'Monitoring::Plugin::Threshold'} = 0;\r\n> }\r\n> else {\r\n>     $prereqs{'Nagios::Plugin::Threshold'} = 0;\r\n> }\r\n>\r\n> if( eval { require Monitoring::Plugin::Getopt } ) {\r\n>     $prereqs{'Monitoring::Plugin::Getopt'} = 0;\r\n> }\r\n> else {\r\n>     $prereqs{'Nagios::Plugin::Getopt'} = 0;\r\n> }\r\n35a56,57\r\n> auto_install;\r\n>\r\n40a63\r\n>     PREREQ_PM            => \\%prereqs,\r\n```\r\n\r\n# Build output\r\n\r\n```\r\n# cd check_updates10/\r\n[root@mysql-01 check_updates10]# perl Makefile.PL INSTALLSITESCRIPT=/usr/local/nagios/libexec/check_updates-1.6.10 INSTALLSCRIPT=/usr/local/nagios/libexec/check_updates-1.6.10\r\nChecking if your kit is complete...\r\nLooks good\r\nGenerating a Unix-style Makefile\r\nWriting Makefile for check_updates\r\nWriting MYMETA.yml and MYMETA.json\r\n[root@mysql-01 check_updates10]# cd ../check_updates12/\r\n[root@mysql-01 check_updates12]# perl Makefile.PL INSTALLSITESCRIPT=/usr/local/nagios/libexec/check_updates-1.6.12 INSTALLSCRIPT=/usr/local/nagios/libexec/check_updates-1.6.12\r\nChecking if your kit is complete...\r\nWarning: prerequisite Nagios::Plugin 0 not found.\r\nWarning: prerequisite Nagios::Plugin::Getopt 0 not found.\r\nWarning: prerequisite Nagios::Plugin::Threshold 0 not found.\r\nGenerating a Unix-style Makefile\r\nWriting Makefile for check_updates\r\nUndefined subroutine &version::_VERSION called at inc/Module/Install/Makefile.pm line 360.\r\nEND failed--call queue aborted.\r\n```\r\n\r\n# cpanminus check\r\n\r\n```\r\n# /usr/local/bin/cpanm Monitoring::Plugin\r\nMonitoring::Plugin is up to date. (0.39)\r\n```\r\n\r\n# @INC check\r\n\r\n```\r\n# perl -e 'print @INC'\r\n/usr/local/lib64/perl5/usr/local/share/perl5/usr/lib64/perl5/vendor_perl/usr/share/perl5/vendor_perl/usr/lib64/perl5/usr/share/perl5.\r\n```\r\n\r\n# Module check\r\n\r\n```\r\n[root@mysql-01 check_updates12]# perl -e 'if( eval { require Monitoring::Plugin::Getopt } ) { print \"TRUE\\n\" } else { print \"FALSE\\n\" }'\r\nTRUE\r\n[root@mysql-01 check_updates12]# perl -e 'if( eval { require Nagios::Plugin::Getopt } ) { print \"TRUE\\n\" } else { print \"FALSE\\n\" }'\r\nFALSE\r\n[root@mysql-01 check_updates12]#\r\n```\r\n\r\n# output makefile check\r\n\r\n```\r\n# grep \"PREREQ_PM\" Makefile\r\n#     PREREQ_PM => { Carp=>q[0], English=>q[0], ExtUtils::MakeMaker=>q[6.59], File::Spec=>q[0], Nagios::Plugin=>q[0], Nagios::Plugin::Getopt=>q[0], Nagios::Plugin::Threshold=>q[0], POSIX=>q[0], Readonly=>q[0], Test::More=>q[0] }\r\n```"},"comment":{"url":"https://api.github.com/repos/matteocorti/check_updates/issues/comments/160675891","html_url":"https://github.com/matteocorti/check_updates/issues/6#issuecomment-160675891","issue_url":"https://api.github.com/repos/matteocorti/check_updates/issues/6","id":160675891,"user":{"login":"matteocorti","id":6011536,"avatar_url":"https://avatars.githubusercontent.com/u/6011536?v=3","gravatar_id":"","url":"https://api.github.com/users/matteocorti","html_url":"https://github.com/matteocorti","followers_url":"https://api.github.com/users/matteocorti/followers","following_url":"https://api.github.com/users/matteocorti/following{/other_user}","gists_url":"https://api.github.com/users/matteocorti/gists{/gist_id}","starred_url":"https://api.github.com/users/matteocorti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matteocorti/subscriptions","organizations_url":"https://api.github.com/users/matteocorti/orgs","repos_url":"https://api.github.com/users/matteocorti/repos","events_url":"https://api.github.com/users/matteocorti/events{/privacy}","received_events_url":"https://api.github.com/users/matteocorti/received_events","type":"User","site_admin":false},"created_at":"2015-11-30T16:17:39Z","updated_at":"2015-11-30T16:17:39Z","body":"Could also please paste the output of\r\n\r\n    perl ./Makefile.PL verbose\r\n\r\n?"}}