Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use of uninitialized value (Perl) #345

Closed
maesaar opened this issue Aug 30, 2017 · 6 comments
Closed

Use of uninitialized value (Perl) #345

maesaar opened this issue Aug 30, 2017 · 6 comments

Comments

@maesaar
Copy link

maesaar commented Aug 30, 2017

The issue is same as stated in #196. Can you explain why I get this message at the end of Roary's run:

Use of uninitialized value in require at /System/Library/Perl/5.18/darwin-thread-multi-2level/Encode.pm line 60.

@tseemann
Copy link
Contributor

tseemann commented Sep 2, 2017

The error is likely a bug in the perl module itself. It doesn't seem to affect roary results.

The error is in this section - and you can see a bugzilla report about it. I don't think we can fix it.

# Make a %Encoding package variable to allow a certain amount of cheating
our %Encoding;
our %ExtModule;
require Encode::Config;
#  See
#  https://bugzilla.redhat.com/show_bug.cgi?id=435505#c2
#  to find why sig handers inside eval{} are disabled.
eval {
    local $SIG{__DIE__};
    local $SIG{__WARN__};
    require Encode::ConfigLocal;    #### HERE I THINK
};

@maesaar maesaar closed this as completed Sep 3, 2017
@jananiravi
Copy link

Oh, that's a relief. It was worrisome since it said error instead of warning! Thanks for the clarification.
I see a similar error too:

Use of uninitialized value in require at /anaconda2/lib/site_perl/5.26.2/darwin-thread-multi-2level/Encode.pm line 61.
Use of uninitialized value in require at (eval 734) line 1.

@dnbaker
Copy link

dnbaker commented Jul 10, 2019

I encountered this error currently with perl 5.22.1, while it seems to work correctly if I comment out require Encode::ConfigLocal; #### HERE I THINK. Roary's maintainers suggest simply updating perl Encode, but I wasn't able to get that fix to work.

@trstickland
Copy link
Contributor

run the command
enc2xs -C
which should create ConfigLocal.pm for you

@tseemann
Copy link
Contributor

OMG THANK YOU @trstickland i've been trying to figure out how to resolve that for YEARS.

@andrewjpage
Copy link
Member

Thanks @trstickland

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants