• Strange message with spamassassin

    From Andrea Venturoli@ml@netfence.it to muc.lists.freebsd.ports on Sun Aug 9 17:44:12 2026
    From Newsgroup: muc.lists.freebsd.ports

    Hello.

    I've been using spamassassing for several years.
    After I upgraded to 2026Q3, I see the following message.

    # spamassassin -r 94023.
    Aug 9 17:37:11.358 [34869] warn: dns: resolver create failed: Net::DNS required
    Aug 9 17:37:14.098 [34869] warn: plugin: eval failed: Can't locate object method "new" via package "Net::DNS::Resolver" at /usr/local/lib/perl5/site_perl/Net/DNS.pm line 62.

    My lack of Perl knowledge doesn't allow me to understand what to do.
    Any idea?

    bye & Thanks
    av.


    --
    Posted automagically by a mail2news gateway at muc.de e.V.
    Please direct questions, flames, donations, etc. to news-admin@muc.de
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Patrick M. Hausen@hausen@punkt.de to muc.lists.freebsd.ports on Sun Aug 9 16:07:42 2026
    From Newsgroup: muc.lists.freebsd.ports

    Hi!

    Am 09.08.2026 um 17:44 schrieb Andrea Venturoli <ml@netfence.it>:
    I've been using spamassassing for several years.
    After I upgraded to 2026Q3, I see the following message.

    # spamassassin -r 94023. Aug 9 17:37:11.358 [34869] warn: dns: resolver create failed: Net::DNS required
    Aug 9 17:37:14.098 [34869] warn: plugin: eval failed: Can't locate object method "new" via package "Net::DNS::Resolver" at /usr/local/lib/perl5/site_perl/Net/DNS.pm line 62.

    My lack of Perl knowledge doesn't allow me to understand what to do.

    Probably a missing dependency in the port/package.

    I'd try:

    pkg install p5-Net-DNS

    HTH,
    Patrick
    --
    punkt.de GmbH
    Patrick M. Hausen
    .infrastructure

    Sophienstr. 187
    76185 Karlsruhe

    Tel. +49 721 9109500

    https://infrastructure.punkt.de
    info@punkt.de

    AG Mannheim 108285
    Gesch|nftsf|+hrer: Daniel Lienert, Fabian Stein

    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Andrea Venturoli@ml@netfence.it to muc.lists.freebsd.ports on Sun Aug 9 19:10:25 2026
    From Newsgroup: muc.lists.freebsd.ports

    On 8/9/26 18:07, Patrick M. Hausen wrote:
    Hi!

    Am 09.08.2026 um 17:44 schrieb Andrea Venturoli <ml@netfence.it>:
    I've been using spamassassing for several years.
    After I upgraded to 2026Q3, I see the following message.

    # spamassassin -r 94023. Aug 9 17:37:11.358 [34869] warn: dns: resolver create failed: Net::DNS required
    Aug 9 17:37:14.098 [34869] warn: plugin: eval failed: Can't locate object method "new" via package "Net::DNS::Resolver" at /usr/local/lib/perl5/site_perl/Net/DNS.pm line 62.

    My lack of Perl knowledge doesn't allow me to understand what to do.

    Probably a missing dependency in the port/package.

    I'd try:

    pkg install p5-Net-DNS
    Sorry, I should have probably mentioned this...
    It was the first thing I though of, but, alas, I have that package
    installed.

    # pkg info|grep Net-DNS
    p5-Net-DNS-1.55,1 Perl5 interface to the DNS resolver, and dynamic updates


    bye & Thanks
    av.


    --
    Posted automagically by a mail2news gateway at muc.de e.V.
    Please direct questions, flames, donations, etc. to news-admin@muc.de
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From DutchDaemon - FreeBSD Forums Administrator@DutchDaemon@FreeBSD.org to muc.lists.freebsd.ports on Sun Aug 9 19:23:55 2026
    From Newsgroup: muc.lists.freebsd.ports


    On August 9, 2026 7:10:25 PM GMT+02:00, Andrea Venturoli <ml@netfence.it> wrote:
    On 8/9/26 18:07, Patrick M. Hausen wrote:
    Hi!

    Am 09.08.2026 um 17:44 schrieb Andrea Venturoli <ml@netfence.it>:
    I've been using spamassassing for several years.
    After I upgraded to 2026Q3, I see the following message.

    # spamassassin -r 94023. Aug 9 17:37:11.358 [34869] warn: dns: resolver create failed: Net::DNS required
    Aug 9 17:37:14.098 [34869] warn: plugin: eval failed: Can't locate object method "new" via package "Net::DNS::Resolver" at /usr/local/lib/perl5/site_perl/Net/DNS.pm line 62.

    My lack of Perl knowledge doesn't allow me to understand what to do.

    Probably a missing dependency in the port/package.

    I'd try:

    pkg install p5-Net-DNS
    Sorry, I should have probably mentioned this...
    It was the first thing I though of, but, alas, I have that package installed.

    # pkg info|grep Net-DNS
    p5-Net-DNS-1.55,1 Perl5 interface to the DNS resolver, and dynamic updates


    bye & Thanks
    av.
    Perl was upgraded recently, you may have a partial or incomplete upgrade.
    Run `pkg upgrade -f -y` before troubleshooting further.
    --
    Posted automagically by a mail2news gateway at muc.de e.V.
    Please direct questions, flames, donations, etc. to news-admin@muc.de
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Jack Raats@mlist@zwn24.nl to muc.lists.freebsd.ports on Mon Aug 10 07:41:15 2026
    From Newsgroup: muc.lists.freebsd.ports

    This is a multi-part message in MIME format. --------------m0ZXN7kqfGcsI6id0w60hxTf
    Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit

    At this moment the perl packages are not updated for aarch64 on FreeBSD
    14.4. I think you'll have to wait..

    Gr.,
    Jack Raats

    Op 09-08-2026 om 19:23 schreef DutchDaemon - FreeBSD Forums Administrator:
    On August 9, 2026 7:10:25 PM GMT+02:00, Andrea Venturoli<ml@netfence.it> wrote:
    On 8/9/26 18:07, Patrick M. Hausen wrote:
    Hi!

    Am 09.08.2026 um 17:44 schrieb Andrea Venturoli<ml@netfence.it>:
    I've been using spamassassing for several years.
    After I upgraded to 2026Q3, I see the following message.

    # spamassassin -r 94023. Aug 9 17:37:11.358 [34869] warn: dns: resolver create failed: Net::DNS required
    Aug 9 17:37:14.098 [34869] warn: plugin: eval failed: Can't locate object method "new" via package "Net::DNS::Resolver" at /usr/local/lib/perl5/site_perl/Net/DNS.pm line 62.
    My lack of Perl knowledge doesn't allow me to understand what to do.
    Probably a missing dependency in the port/package.

    I'd try:

    pkg install p5-Net-DNS
    Sorry, I should have probably mentioned this...
    It was the first thing I though of, but, alas, I have that package installed.

    # pkg info|grep Net-DNS
    p5-Net-DNS-1.55,1 Perl5 interface to the DNS resolver, and dynamic updates
    bye & Thanks
    av.
    Perl was upgraded recently, you may have a partial or incomplete upgrade.

    Run `pkg upgrade -f -y` before troubleshooting further.

    --------------m0ZXN7kqfGcsI6id0w60hxTf
    Content-Type: text/html; charset=UTF-8
    Content-Transfer-Encoding: 7bit

    <!DOCTYPE html>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    </head>
    <body text="#000000" bgcolor="#feffff">
    <p>At this moment the perl packages are not updated for aarch64 on
    FreeBSD 14.4. I think you'll have to wait..</p>
    <p>Gr.,<br>
    Jack Raats</p>
    <div class="moz-cite-prefix">Op 09-08-2026 om 19:23 schreef
    DutchDaemon - FreeBSD Forums Administrator:<br>
    </div>
    <blockquote type="cite"
    cite="mid:23E27452-3AAC-4E4B-9512-5E30992A23E4@FreeBSD.org">
    <pre wrap="" class="moz-quote-pre">On August 9, 2026 7:10:25 PM GMT+02:00, Andrea Venturoli <a
    class="moz-txt-link-rfc2396E" href="mailto:ml@netfence.it">&lt;ml@netfence.it&gt;</a> wrote:
    </pre>
    <blockquote type="cite">
    <pre wrap="" class="moz-quote-pre">On 8/9/26 18:07, Patrick M. Hausen wrote:
    </pre>
    <blockquote type="cite">
    <pre wrap="" class="moz-quote-pre">Hi!

    </pre>
    <blockquote type="cite">
    <pre wrap="" class="moz-quote-pre">Am 09.08.2026 um 17:44 schrieb Andrea Venturoli <a
    class="moz-txt-link-rfc2396E" href="mailto:ml@netfence.it">&lt;ml@netfence.it&gt;</a>:
    I've been using spamassassing for several years.
    After I upgraded to 2026Q3, I see the following message.

    </pre>
    <blockquote type="cite">
    <pre wrap="" class="moz-quote-pre"># spamassassin -r 94023. Aug 9 17:37:11.358 [34869] warn: dns: resolver create failed: Net::DNS required
    Aug 9 17:37:14.098 [34869] warn: plugin: eval failed: Can't locate object method "new" via package "Net::DNS::Resolver" at /usr/local/lib/perl5/site_perl/Net/DNS.pm line 62.
    </pre>
    </blockquote>
    <pre wrap="" class="moz-quote-pre">My lack of Perl knowledge doesn't allow me to understand what to do.
    </pre>
    </blockquote>
    <pre wrap="" class="moz-quote-pre">Probably a missing dependency in the port/package.

    I'd try:

    pkg install p5-Net-DNS
    </pre>
    </blockquote>
    <pre wrap="" class="moz-quote-pre">Sorry, I should have probably mentioned this...
    It was the first thing I though of, but, alas, I have that package installed.

    </pre>
    <blockquote type="cite">
    <pre wrap="" class="moz-quote-pre"># pkg info|grep Net-DNS p5-Net-DNS-1.55,1 Perl5 interface to the DNS resolver, and dynamic updates
    </pre>
    </blockquote>
    <pre wrap="" class="moz-quote-pre"> bye &amp; Thanks
    av.
    </pre>
    </blockquote>
    <pre wrap="" class="moz-quote-pre">Perl was upgraded recently, you may have a partial or incomplete upgrade.

    Run `pkg upgrade -f -y` before troubleshooting further.

    </pre>
    </blockquote>
    </body>
    </html>

    --------------m0ZXN7kqfGcsI6id0w60hxTf--


    --
    Posted automagically by a mail2news gateway at muc.de e.V.
    Please direct questions, flames, donations, etc. to news-admin@muc.de
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Andrea Venturoli@ml@netfence.it to muc.lists.freebsd.ports on Mon Aug 10 14:37:07 2026
    From Newsgroup: muc.lists.freebsd.ports

    On 8/9/26 19:23, DutchDaemon - FreeBSD Forums Administrator wrote:

    Perl was upgraded recently, you may have a partial or incomplete upgrade.

    Run `pkg upgrade -f -y` before troubleshooting further.
    Did this (though I think I had done it recently), but it didn't help.

    bye & Thanks
    av.


    --
    Posted automagically by a mail2news gateway at muc.de e.V.
    Please direct questions, flames, donations, etc. to news-admin@muc.de
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Andrea Venturoli@ml@netfence.it to muc.lists.freebsd.ports on Mon Aug 10 14:38:26 2026
    From Newsgroup: muc.lists.freebsd.ports

    On 8/10/26 07:41, Jack Raats wrote:
    At this moment the perl packages are not updated for aarch64 on FreeBSD 14.4. I think you'll have to wait..
    But I'm on 15.1/amd64 (should have said that earlier).
    Besides, I build my own packages.

    bye & Thanks
    av.


    --
    Posted automagically by a mail2news gateway at muc.de e.V.
    Please direct questions, flames, donations, etc. to news-admin@muc.de
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Andrea Venturoli@ml@netfence.it to muc.lists.freebsd.ports on Mon Aug 10 18:37:48 2026
    From Newsgroup: muc.lists.freebsd.ports

    On 8/10/26 18:21, Paul Macdonald wrote:

    have you tried rebuilding p5-Net-DNS

    portmaster p5-Net-DNS
    I use poudriere, not portmaster.
    And yes, it's been built recently.

    bye & Thanks
    av.


    --
    Posted automagically by a mail2news gateway at muc.de e.V.
    Please direct questions, flames, donations, etc. to news-admin@muc.de
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Benjamin Jacobs@freebsd@dev.thsi.be to muc.lists.freebsd.ports on Tue Aug 11 01:25:31 2026
    From Newsgroup: muc.lists.freebsd.ports

    On Sun, 9 Aug 2026 17:44:12 +0200
    Andrea Venturoli <ml@netfence.it> wrote:

    Hello.

    I've been using spamassassing for several years.
    After I upgraded to 2026Q3, I see the following message.

    # spamassassin -r 94023.
    Aug 9 17:37:11.358 [34869] warn: dns: resolver create failed:
    Net::DNS required Aug 9 17:37:14.098 [34869] warn: plugin: eval
    failed: Can't locate object method "new" via package
    "Net::DNS::Resolver" at /usr/local/lib/perl5/site_perl/Net/DNS.pm
    line 62.

    My lack of Perl knowledge doesn't allow me to understand what to do.
    Any idea?

    bye & Thanks
    av.


    Hi,

    Coincidentally the following got reported. It seems that SA misbehave
    when the ENV environment variable exists or is defined. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=297394

    Could you check if your issue is related, or whether or not the ENV
    environment variable is defined in your shell, and which shell it is?

    A wild guess is that it looks like there is a bug in SA that messes up
    perl's %ENV when ENV exists in the shell environment, somehow.
    (Net::DNS looks up environment variables during initialization, for the mentioned PR it looks like the PATH was mangled?)

    Best regards,

    Benjamin


    --
    Posted automagically by a mail2news gateway at muc.de e.V.
    Please direct questions, flames, donations, etc. to news-admin@muc.de
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Andrea Venturoli@ml@netfence.it to muc.lists.freebsd.ports on Wed Aug 12 08:55:35 2026
    From Newsgroup: muc.lists.freebsd.ports

    On 8/11/26 01:25, Benjamin Jacobs wrote:

    Hello.

    Coincidentally the following got reported. It seems that SA misbehave
    when the ENV environment variable exists or is defined. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=297394

    This is definitely it!!!
    Thanks a lot.


    Could you check if your issue is related, or whether or not the ENV environment variable is defined in your shell, and which shell it is?

    "unset ENV" solves.
    Shell is /bin/sh.


    A wild guess is that it looks like there is a bug in SA that messes up
    perl's %ENV when ENV exists in the shell environment, somehow.
    (Net::DNS looks up environment variables during initialization, for the mentioned PR it looks like the PATH was mangled?)
    As I said, I'm very ignorant WRT perl.
    I'll follow that bug, though.


    bye & Thanks
    av.


    --
    Posted automagically by a mail2news gateway at muc.de e.V.
    Please direct questions, flames, donations, etc. to news-admin@muc.de
    --- Synchronet 3.22a-Linux NewsLink 1.2