yes.

the detail:

xx@foo:~$ cat /etc/issue && uname -a
Ubuntu 12.04.1 LTS \n \l

Linux foo 3.2.0-34-generic-pae #53-Ubuntu SMP Thu Nov 15 11:11:12 UTC 2012 i686 
athlon i386 GNU/Linux
xx@foo:~$ cat ~/.znc/configs/znc.conf
Listen     = 1111
LoadModule = modperl

<User test>
        Pass       = 
sha256#bc268003b11dcde6d2616ca214515619dbc56cce455a11e41ca5a00bfb00bff1#uyIb7r.cZ:s(NP4p-Vgh#
        Admin      = true
        Nick       = test
        AltNick    = test_
        Ident      = test
        RealName   = test
        Buffer     = 50
        KeepBuffer = false
        ChanModes  = +stn

        LoadModule = mytest

        Server     = irc.freenode.net 6667

        <Chan #test>
        </Chan>
</User>


xx@foo:~$ cat ~/.znc/modules/mytest.pm
package mytest;

use base 'ZNC::Module';

sub description {
        "my test module";
}


sub OnJoin {
    my $self = shift;
}

sub OnLoad {
    my $self = shift;
    1;
}

sub OnShutdown {
    my $self = shift;
}

1;

xx@foo:~$ znc -f
[ ok ] Opening Config [/home/xx/.znc/configs/znc.conf]...
[ ok ] Loading Global Module [modperl]... [/usr/lib/znc/modperl.so]
[ ok ] Binding to port [1111] using ipv4...
[ ** ] Loading user [test]
[ ok ] Adding Server [irc.freenode.net 6667]...
[    ] Loading Module [mytest]... Created new UUID for modperl with 'int': 1
[ ok ]/xx/.znc/modules/mytest.pm]
[ ** ] Staying open for debugging [pid: 1506]
[ ** ] ZNC 0.206+deb1 - http://znc.in
^C[ ** ] Exiting on SIG [2]    ###### I pressed Ctrl -C
Unloading /home/xx/.znc/modules/mytest.pm from perl

xx@foo:~$ strace znc -f 2>&1 |grep mytest
write(1, "Loading Module [mytest]... ", 27Loading Module [mytest]... ) = 27
stat64("/home/xx/.znc/modules/mytest.pm", {st_mode=S_IFREG|0664, st_size=219, 
...}) = 0
open("/home/xx/.znc/modules/mytest.pm", O_RDONLY|O_LARGEFILE) = 5
read(5, "package mytest;\n\nuse base 'ZNC::"..., 8192) = 219
stat64("/home/xx/.znc/modules/mytest.pmc", 0xbf99cfdc) = -1 ENOENT (No such 
file or directory)
stat64("/home/xx/.znc/modules/mytest.pm", {st_mode=S_IFREG|0664, st_size=219, 
...}) = 0
open("/home/xx/.znc/modules/mytest.pm", O_RDONLY|O_LARGEFILE) = 5
read(5, "package mytest;\n\nuse base 'ZNC::"..., 8192) = 219
stat64("/home/xx/.znc/users/test/moddata/mytest", {st_mode=S_IFDIR|0700, 
st_size=4096, ...}) = 0
open("/home/xx/.znc/users/test/moddata/mytest/.registry", O_RDONLY|O_LARGEFILE) 
= -1 ENOENT (No such file or directory)
write(1, "[/home/xx/.znc/modules/mytest.pm"..., 
34[/home/xx/.znc/modules/mytest.pm]
^C
xx@foo:~$



xx@ubuntu:~$ cat /etc/issue && uname -a
Ubuntu 10.04.4 LTS \n \l

Linux ubuntu 2.6.32-45-server #100-Ubuntu SMP Wed Nov 14 11:02:27 UTC 2012 
x86_64 GNU/Linux
xx@ubuntu:~$ cat ~/.znc/configs/znc.conf
Listen     = 1111
LoadModule = modperl

<User test>
        Pass       = 
sha256#bc268003b11dcde6d2616ca214515619dbc56cce455a11e41ca5a00bfb00bff1#uyIb7r.cZ:s(NP4p-Vgh#
        Admin      = true
        Nick       = test
        AltNick    = test_
        Ident      = test
        RealName   = test
        Buffer     = 50
        KeepBuffer = false
        ChanModes  = +stn

        LoadModule = mytest

        Server     = irc.freenode.net 6667

        <Chan #test>
        </Chan>
</User>
xx@ubuntu:~$ cat ~/.znc/modules/mytest.pm
package mytest;

use base 'ZNC::Module';

sub description {
        "my test module";
}


sub OnJoin {
    my $self = shift;
}

sub OnLoad {
    my $self = shift;
    1;
}

sub OnShutdown {
    my $self = shift;
}

1;


xx@ubuntu:~$ znc -f
[ ok ] Opening Config [/home/xx/.znc/configs/znc.conf]...
[ ok ] Binding to port [1111]...
[ ** ] Loading user [test]
[ !! ] Loading Module [mytest]... [ Unable to find module [mytest] ]
[ ** ] Unrecoverable config error.
xx@ubuntu:~$ strace znc -f 2>&1 |grep mytest
write(1, "Loading Module [mytest]... ", 27Loading Module [mytest]... ) = 27
stat(".//modules/mytest.so", 0x7fff25472bf0) = -1 ENOENT (No such file or 
directory)
stat(".//modules/extra/mytest.so", 0x7fff25472bf0) = -1 ENOENT (No such file or 
directory)
stat("/home/xx/.znc/modules/mytest.so", 0x7fff25472bf0) = -1 ENOENT (No such 
file or directory)
stat("/usr/lib/znc/mytest.so", 0x7fff25472bf0) = -1 ENOENT (No such file or 
directory)
write(1, "[ Unable to find module [mytest]"..., 35[ Unable to find module 
[mytest] ]
xx@ubuntu:~$

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1088390

Title:
  znc & znc-perl not to load perl module

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/znc/+bug/1088390/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to