Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
B::C v1.42 - Can't locate object method "___new_opt_obj" via package "Getopt::Long::Descriptive::Opts"
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Mark  
View profile  
 More options Feb 15 2012, 6:52 am
From: Mark <markst...@gmail.com>
Date: Wed, 15 Feb 2012 03:52:01 -0800 (PST)
Local: Wed, Feb 15 2012 6:52 am
Subject: B::C v1.42 - Can't locate object method "___new_opt_obj" via package "Getopt::Long::Descriptive::Opts"
The following test fails with perl 5.14.2 and B::C 1.42 on x86_64/
Ubuntu 12.04.

# vim:set sw=4 ts=4 et ai smartindent fileformat=unix
fileencoding=utf-8 syntax=perl:
use Test::More tests => 7;

use B::C;

use File::Temp;
use File::Slurp qw(write_file);
use File::Spec;

my ($plvol,$pldir,$plbin) = File::Spec->splitpath($^X);
my $cc_harness_bin = File::Spec->catpath($plvol,$pldir,'cc_harness');
ok(-e $cc_harness_bin, 'cc_harness found');

my $tempdir = File::Temp->newdir;
my ($tvol,$tdir,$tfile) = File::Spec->splitpath($tempdir,1);
my $plsrcfn = File::Spec->catpath($tvol,$tdir,'test.pl');
my $cfn = File::Spec->catpath($tvol,$tdir,'test.c');
my $binfn = File::Spec->catpath($tvol,$tdir,'test');

write_file($plsrcfn, <<"EOF");
#!$^X
exit 123;
EOF
ok(system($^X, '-MO=C,-o'.$cfn, $plsrcfn)==0, 'C code generation');
ok(system($^X, $cc_harness_bin, '-o', $binfn, $cfn)==0, 'C code
compilation');
is(system($binfn), 123 << 8, 'binary execution');

# exit 0;

write_file($plsrcfn, <<"EOF");
#!$^X
use Getopt::Long::Descriptive;

my (\$opt, \$usage) = describe_options(
  [ 'help',       "print usage message and exit" ],
);

exit 124;
EOF
ok(system($^X, '-MO=C,-o'.$cfn, $plsrcfn)==0, 'C code generation');
ok(system($^X, $cc_harness_bin, '-o', $binfn, $cfn)==0, 'C code
compilation');
is(system($binfn), 124 << 8, 'binary execution');


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
rurban  
View profile  
 More options Apr 3 2012, 3:41 pm
From: rurban <reini.ur...@gmail.com>
Date: Tue, 3 Apr 2012 12:41:29 -0700 (PDT)
Local: Tues, Apr 3 2012 3:41 pm
Subject: Re: B::C v1.42 - Can't locate object method "___new_opt_obj" via package "Getopt::Long::Descriptive::Opts"

> use Getopt::Long::Descriptive;

> my ($opt, $usage) = describe_options(
>   [ 'help',       "print usage message and exit" ],
> );  

Yes, this fails to work in 1.42 but works in git master.
But the latest git code is still unstable.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »