Bug 2303672 - perl-Acme-Damn-0.08-30.fc41: Attempt to call undefined import method with arguments ("AUTOLOAD") via package "DynaLoader"
Summary: perl-Acme-Damn-0.08-30.fc41: Attempt to call undefined import method with arg...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: perl-Acme-Damn
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Emmanuel Seyman
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-08-08 12:20 UTC by Petr Pisar
Modified: 2024-08-18 10:26 UTC (History)
2 users (show)

Fixed In Version: perl-Acme-Damn-0.08-31.fc41
Clone Of:
Environment:
Last Closed: 2024-08-18 10:26:56 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Petr Pisar 2024-08-08 12:20:48 UTC
Building perl-Acme-Damn-0.08-30.fc41 shows warnings like this:

+ make test
"/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- Damn.bs blib/arch/auto/Acme/Damn/Damn.bs 644
PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
Attempt to call undefined import method with arguments ("AUTOLOAD") via package "DynaLoader" (Perhaps you forgot to load the package?) at /home/test/fedora/perl-Acme-Damn/perl-Acme-Damn-0.08-build/Acme-Damn-0.08/blib/lib/Acme/Damn.pm line 8.
t/1compile.t .. ok

This happens also when using Acme::Damn from perl-forks. This is probably a new run-time warning added in Perl 5.40. splain explains:

    (D deprecated::missing_import_called_with_args) You called the
    import() or unimport() method of a class that has no import method
    defined in its inheritance graph, and passed an argument to the method.
    This is very often the sign of a mispelled package name in a use or
    require statement that has silently succeded due to a case insensitive
    file system.
    
    Another common reason this may happen is when mistakenly attempting to
    import or unimport a symbol from a class definition or package which
    does not use Exporter or otherwise define its own import or
    unimport method.

Comment 1 Emmanuel Seyman 2024-08-18 10:26:56 UTC
Fixed and built for F41 and rawhide.


Note You need to log in before you can comment on or make changes to this bug.