fastmail / authentication_milter

Email Authentication by SPF/DKIM/DMARC etc.
Other
113 stars 20 forks source link

Trouble installing crypt-curve25519 and CryptX on ubuntu 22.04 #150

Open AgyarJanos opened 6 months ago

AgyarJanos commented 6 months ago

dependency issues

marcbradshaw commented 6 months ago

Do you have any details of the install failure?

AgyarJanos commented 6 months ago

Definitely should have. Sorry--I uninstalled and did a lot of other stuff.

I'll try again later & attach/send details; tomorrow if possible. I'd actually had to mess with another issue before I even got that far. So I'll give info on both.

Feb 15, 2024 5:09:58 PM Marc Bradshaw @.***>:

Do you have any details of the install failure?

— Reply to this email directly, view it on GitHub[https://github.com/fastmail/authentication_milter/issues/150#issuecomment-1947487245], or unsubscribe[https://github.com/notifications/unsubscribe-auth/AJSOXFYDG2WFSVKXGSH6YB3YT2IUFAVCNFSM6AAAAABDK2GP6SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBXGQ4DOMRUGU]. You are receiving this because you authored the thread. [Tracking image][https://github.com/notifications/beacon/AJSOXF37S6BGM3HEDXTC6J3YT2IUFA5CNFSM6AAAAABDK2GP6SWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTUCRGA2.gif]

AgyarJanos commented 6 months ago

Okay, first problem was an issue installing crypt-curve25519. I tried this fix which seemed to work: #https://github.com/pyperanger/crypt-curve25519

Then I tried cpanm Mail::Milter::Authentication again. Got this:

#   Failed test 'use Mail::Milter::Authentication::Handler::DKIM;'
#   at t/00-load.t line 56.
#     Tried to use 'Mail::Milter::Authentication::Handler::DKIM'.
#     Error:  Can't locate Crypt/PK/Ed25519.pm in @INC (you may need to install the Crypt::PK::Ed25519 module) (@INC contains: /root/.cpanm/work/1708096446.126784/Mail-Milter-Authentication-3.20240205/blib/lib /root/.cpanm/work/1708096446.126784/Mail-Milter-Authentication-3.20240205/blib/arch /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.34.0 /usr/local/share/perl/5.34.0 /usr/lib/x86_64-linux-gnu/perl5/5.34 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.34 /usr/share/perl/5.34 /usr/local/lib/site_perl) at /usr/local/share/perl/5.34.0/Mail/DKIM/PublicKey.pm line 18.
# BEGIN failed--compilation aborted at /usr/local/share/perl/5.34.0/Mail/DKIM/PublicKey.pm line 18.
# Compilation failed in require at /usr/local/share/perl/5.34.0/Mail/DKIM/Signature.pm line 14.
# BEGIN failed--compilation aborted at /usr/local/share/perl/5.34.0/Mail/DKIM/Signature.pm line 14.
# Compilation failed in require at /usr/local/share/perl/5.34.0/Mail/DKIM/Verifier.pm line 14.
# BEGIN failed--compilation aborted at /usr/local/share/perl/5.34.0/Mail/DKIM/Verifier.pm line 14.
# Compilation failed in require at /root/.cpanm/work/1708096446.126784/Mail-Milter-Authentication-3.20240205/blib/lib/Mail/Milter/Authentication/Handler/DKIM.pm line 12.
# BEGIN failed--compilation aborted at /root/.cpanm/work/1708096446.126784/Mail-Milter-Authentication-3.20240205/blib/lib/Mail/Milter/Authentication/Handler/DKIM.pm line 12.
# Compilation failed in require at t/00-load.t line 56.
# BEGIN failed--compilation aborted at t/00-load.t line 56.
Bailout called.  Further testing stopped:  ok 15 - use Mail::Milter::Authentication::Handler::AddID;

#   Failed test 'use Mail::Milter::Authentication::Handler::ARC;'
#   at t/00-load.t line 56.
#     Tried to use 'Mail::Milter::Authentication::Handler::ARC'.
#     Error:  Can't locate Crypt/PK/Ed25519.pm in @INC (you may need to install the Crypt::PK::Ed25519 module) (@INC contains: /root/.cpanm/work/1708096446.126784/Mail-Milter-Authentication-3.20240205/blib/lib /root/.cpanm/work/1708096446.126784/Mail-Milter-Authentication-3.20240205/blib/arch /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.34.0 /usr/local/share/perl/5.34.0 /usr/lib/x86_64-linux-gnu/perl5/5.34 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.34 /usr/share/perl/5.34 /usr/local/lib/site_perl) at /usr/local/share/perl/5.34.0/Mail/DKIM/PrivateKey.pm line 19.
# BEGIN failed--compilation aborted at /usr/local/share/perl/5.34.0/Mail/DKIM/PrivateKey.pm line 19.
# Compilation failed in require at /usr/local/share/perl/5.34.0/Mail/DKIM/ARC/Signer.pm line 13.
# BEGIN failed--compilation aborted at /usr/local/share/perl/5.34.0/Mail/DKIM/ARC/Signer.pm line 13.
# Compilation failed in require at /root/.cpanm/work/1708096446.126784/Mail-Milter-Authentication-3.20240205/blib/lib/Mail/Milter/Authentication/Handler/ARC.pm line 10.
# BEGIN failed--compilation aborted at /root/.cpanm/work/1708096446.126784/Mail-Milter-Authentication-3.20240205/blib/lib/Mail/Milter/Authentication/Handler/ARC.pm line 10.
# Compilation failed in require at t/00-load.t line 56.
# BEGIN failed--compilation aborted at t/00-load.t line 56.

#   Failed test 'use Mail::Milter::Authentication::Handler::XGoogleDKIM;'
#   at t/00-load.t line 56.
#     Tried to use 'Mail::Milter::Authentication::Handler::XGoogleDKIM'.
#     Error:  Attempt to reload Mail/DKIM/Verifier.pm aborted.
# Compilation failed in require at /root/.cpanm/work/1708096446.126784/Mail-Milter-Authentication-3.20240205/blib/lib/Mail/Milter/Authentication/Handler/XGoogleDKIM.pm line 11.
# BEGIN failed--compilation aborted at /root/.cpanm/work/1708096446.126784/Mail-Milter-Authentication-3.20240205/blib/lib/Mail/Milter/Authentication/Handler/XGoogleDKIM.pm line 11.
# Compilation failed in require at t/00-load.t line 56.
# BEGIN failed--compilation aborted at t/00-load.t line 56.
# Looks like you failed 3 tests of 41.
FAILED--Further testing stopped: ok 15 - use Mail::Milter::Authentication::Handler::AddID;
make: *** [Makefile:1246: test_dynamic] Error 3
-> FAIL Installing Mail::Milter::Authentication failed. See /root/.cpanm/work/1708096446.126784/build.log for details. Retry with --force to force install it.
So okay, I decided to try to install Crypt/PK/Ed25519.pm to see if it would help. Result:
root@mail:/home/ubuntu# cpanm Crypt::PK::Ed25519
--> Working on Crypt::PK::Ed25519
Fetching http://www.cpan.org/authors/id/M/MI/MIK/CryptX-0.080.tar.gz ... OK
Configuring CryptX-0.080 ... OK
Building and testing CryptX-0.080 ... FAIL
! Installing Crypt::PK::Ed25519 failed. See /root/.cpanm/work/1708096671.127000/build.log for details. Retry with --force to force install it.
Test Summary Report
-------------------
t/prng_rc4.t                      (Wstat: 132 Tests: 0 Failed: 0)
  Non-zero wait status: 132
  Parse errors: Bad plan.  You planned 19 tests but ran 0.
Files=137, Tests=18549, 40 wallclock secs ( 3.12 usr  0.34 sys + 28.84 cusr  2.42 csys = 34.72 CPU)
Result: FAIL
Failed 1/137 test programs. 0/18549 subtests failed.
make: *** [Makefile:1755: test_dynamic] Error 255
-> FAIL Installing Crypt::PK::Ed25519 failed.

So I tried --force, then went back and tried cpanm Mail::Milter::Authentication again. It seemed to install that time, but I don't particularly trust it and don't have time to test anything atm.

I dunno. I haven't messed with Perl since '98, and have no idea what's going on with this stuff. Flying blind here IOW. Maybe this helps?