> El lun., 4 nov. 2019 a las 6:48, ToddAndMargo via perl6-users > (<perl6-users@perl.org <mailto:perl6-users@perl.org>>) escribió: > > On 11/3/19 6:56 PM, ToddAndMargo via perl6-users wrote: > > On 11/3/19 3:15 PM, ToddAndMargo via perl6-users wrote: > >> Hi All, > >> > >> Help! > >> > >> I just upgraded Fedora from 30 to 31. > >> > >> I upgraded to rakudo-pkg-Fedora31-2019.07.1-03.x86_64.rpm > >> from https://github.com/nxadm/rakudo-pkg/releases > >> > >> Now P6 can not find my subs inside my modules: > >> > >> # perl6 -I/home/linuxutil/p6lib -MPrintColors -e 'PrintGreen( > "Hi\n" );' > >> ===SORRY!=== Error while compiling -e > >> Undeclared name: > >> PrintGreen used at line 1 > >> > >> [editorial comment] AAAAHHHHHHH!!!!! [/editorial comment] > >> > >> The stock "rakudo" and "rakudo-zef" that resides in the > >> Fedora repo's has the same issue. > >> > >> Many thanks, > >> -T > > > > > > I am hamstrung on so may fronts if I don't get this working! > > > > I gets uglier: > > > > # cat p6lib/ModuleTest.pm6 > > sub ModuleTest() is export( :ModuleTest ) { say "Hi"; } > > sub ModuleTst() is export( :ModuleTst ) { say "Bye"; } > > > > > > # perl6 -I./p6lib -e 'use ModuleTest :ModuleTest :ModuleTst; > ModuleTest; > > ModuleTst;' > > > > ===SORRY!=== Error while compiling -e > > Undeclared name: > > ModuleTst used at line 1 > > > > > > And way uglier. I removed the ":" > > # cat p6lib/ModuleTest.pm6 > > > > # sub ModuleTest() is export( :ModuleTest ) { say "Hi"; } > > # sub ModuleTst() is export( :ModuleTst ) { say "Bye"; } > > sub ModuleTest() is export( ModuleTest ) { say "Hi"; } > > sub ModuleTst() is export( ModuleTst ) { say "Bye"; } > > > > > > # perl6 -I/home/linuxutil/p6lib -e 'use ModuleTest; ModuleTest; > > ModuleTst;' > > ===SORRY!=== Error while compiling > /home/linuxutil/p6lib/ModuleTest.pm6 > > (ModuleTest) > > Undeclared name: > > ModuleTest used at line 4 > > > > And, And, depending on the position of the moon overhead, > > sometimes it works. AAAAAAAAAAAAAAAHHHHHHHHHHHHHHHHHHH!!!!! > > > I just reproduced this problem on a fresh Fedora 31 > virtual machine that has never before been touched by > perl6 (rakudo) > > > > -- > JJ On 11/3/19 10:27 PM, JJ Merelo wrote: > What's the content of /home/linuxutil/p6lib? > /home/linuxutil/p6lib is where I stash my p6 modules. ModuleTest.pm6 is one of them. This error is occurring across all my programs that call my custom modules. And in case that was not what you asked: # ls -al /home/linuxutil/p6lib/ total 80 drwxrwxr-x. 3 root root 4096 Nov 3 18:53 . drwxr-xr-x. 27 root root 12288 Jun 11 15:44 .. -rw-r--r--. 1 tony users 1972 Apr 28 2019 CheckSystemDependancy.pm6 -rwxr-xr-x. 1 tony users 11367 Nov 3 18:30 CurlUtils.pm6 -rwxr-xr-x. 1 tony users 2435 Apr 28 2019 eMailDate.pm6 -rwxr-xr-x. 1 tony users 0 Apr 26 2019 FileVer.pm6 -rwxrwxrwx. 1 tony users 295 Nov 3 18:52 ModuleTest.pm6 -rw-r--r--. 1 tony users 4194 Apr 26 2019 Net.FTP.Inline.Perl5.pm6 -rwxr-xr-x. 1 tony users 2226 Apr 28 2019 PauseLib.pm6 drwxr-xr-x. 8 root root 4096 Nov 3 18:46 .precomp -rwxr-xr-x. 1 tony users 1425 Apr 28 2019 PrintColors.pm6 -rw-r--r--. 1 tony users 2360 Apr 26 2019 Raw.pm6 -rwxr-xr-x. 1 tony users 5380 Nov 3 18:15 RunNoShellLib.pm6 -rw-r--r--. 1 tony users 3177 Nov 3 18:29 X11Clipboard.pm6 -rw-r--r--. 1 tony users 2748 Apr 26 2019 Xlib.pm6 -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Computers are like air conditioners. They malfunction when you open windows ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Thread Previous | Thread Next