Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git-send-email fails - some perl issue #2598

Closed
1 task done
shuffle2 opened this issue Apr 24, 2020 · 6 comments
Closed
1 task done

git-send-email fails - some perl issue #2598

shuffle2 opened this issue Apr 24, 2020 · 6 comments
Milestone

Comments

@shuffle2
Copy link

shuffle2 commented Apr 24, 2020

  • I was not able to find an open or closed issue matching what I'm seeing

(maybe it's a recurrence of this: #1480 - package version mismatching?)
edit: trying the diag step mentioned in #1480:

$ perl -e "require IO::Socket::SSL;"
Can't load '/usr/lib/perl5/vendor_perl/auto/Net/SSLeay/SSLeay.dll' for module Net::SSLeay: No such file or directory at /usr/lib/perl5/core_perl/DynaLoader.pm line 193.
  at /usr/share/perl5/vendor_perl/IO/Socket/SSL.pm line 19.
Compilation failed in require at /usr/share/perl5/vendor_perl/IO/Socket/SSL.pm line 19.
BEGIN failed--compilation aborted at /usr/share/perl5/vendor_perl/IO/Socket/SSL.pm line 19.
Compilation failed in require at -e line 1.

Continuing in this vein, my C:\Program Files\Git\usr\lib\perl5\vendor_perl\auto\Net\SSLeay\SSLeay.dll
is importing msys-crypto-1.0.0 and msys-ssl-1.0.0 . meanwhile I only have:

/usr/bin/msys-crypto-1.1.dll
/usr/bin/msys-ssl-1.1.dll

in git's msys env.

Setup

  • Which version of Git for Windows are you using? Is it 32-bit or 64-bit?
$ git --version --build-options

git version 2.26.2.windows.1
cpu: x86_64
built from commit: 4267c88d0d8936ae723bba55e0576b1c4f3d4e1a
sizeof-long: 4
sizeof-size_t: 8
  • Which version of Windows are you running? Vista, 7, 8, 10? Is it 32-bit or 64-bit?
$ cmd.exe /c ver

Microsoft Windows [Version 10.0.18363.778]
  • What options did you set as part of the installation? Or did you choose the
    defaults?
# One of the following:
> type "C:\Program Files\Git\etc\install-options.txt"
> type "C:\Program Files (x86)\Git\etc\install-options.txt"
> type "%USERPROFILE%\AppData\Local\Programs\Git\etc\install-options.txt"
$ cat /etc/install-options.txt

Editor Option: VisualStudioCode
Custom Editor Path:
Path Option: Cmd
SSH Option: OpenSSH
Tortoise Option: false
CURL Option: OpenSSL
CRLF Option: LFOnly
Bash Terminal Option: ConHost
Performance Tweaks FSCache: Enabled
Use Credential Manager: Enabled
Enable Symlinks: Enabled
  • Any other interesting things about your environment that might be related
    to the issue you're seeing?

** insert your response here **

Details

  • Which terminal/shell are you running Git from? e.g Bash/CMD/PowerShell/other

cmd

.gitconfig:
[sendemail]
        smtpEncryption = tls
        smtpServer = smtp.gmail.com
        smtpUser = <me>@gmail.com
        smtpServerPort = 587
...
git send-email ...
  • What did you expect to occur after running these commands?

email to be sent via gmail

  • What actually happened instead?
Not using SSL_VERIFY_PEER due to out-of-date IO::Socket::SSL.
To use SSL please install IO::Socket::SSL with version>=2.007 at /usr/share/perl5/core_perl/Net/SMTP.pm line 270, <FIN> line 1.

Note, the same .gitconfig and git-send-email invocation does work from WSL (using ubuntu's git).

  • If the problem was occurring with a specific repository, can you provide the
    URL to that repository to help us with testing?

** insert URL here **

@shuffle2
Copy link
Author

For others hitting the problem:
I've done the recommended from #1480 : copied msys-ssl-1.0.0 and msys-crypto-1.0.0 from https://github.com/git-for-windows/git/releases/download/v2.22.0-rc2.windows.1/PortableGit-2.22.0.rc2.windows.1-64-bit.7z.exe /usr/bin and put into git's /usr/bin .

I'll leave this issue open to track it since it still applies to current releases.

@dscho
Copy link
Member

dscho commented Apr 25, 2020

I guess IO::Socket::SSL needs to be recompiled?

@dscho
Copy link
Member

dscho commented May 1, 2020

@shuffle2 would you mind re-testing with the latest snapshot?

@dscho
Copy link
Member

dscho commented May 4, 2020

Hmm. I hoped for a little more help. As it is, I fixed it locally, and it will come your way with the next release and/or snapshot.

@dscho dscho closed this as completed May 4, 2020
@dscho dscho added this to the Next release milestone May 4, 2020
@corthon
Copy link

corthon commented May 28, 2020

@dscho, I can confirm that the latest snapshot seems to work.

@dscho
Copy link
Member

dscho commented May 28, 2020

Great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants