-
Notifications
You must be signed in to change notification settings - Fork 73
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
Try new appveyor.yml #384
base: master
Are you sure you want to change the base?
Try new appveyor.yml #384
Conversation
Status update:
With a batch file that emulates |
Related: StrawberryPerl/build-extlibs#1 |
I got DBD::mysql working on Windows: Details:
With this @echo off
rem simplified replacement for the original shell script
set ROOT=c:\Program Files\MySQL\MySQL Server 8.0
set XCFLAGS="-I%ROOT%\include"
set XLIBS="-L%ROOT%\lib" -lmysql
set XVERSION=8.0.35
set XPREFIX=%ROOT%..\
for %%p in (%*) do (
if x%%p == x--cflags echo %XCFLAGS%
if x%%p == x--libs echo %XLIBS%
if x%%p == x--version echo %XVERSION%
if x%%p == x--prefix echo %XPREFIX%
) Configure output:
Build output:
And when running this I also don't see any obvious issues.
|
Some more testing showed that this isn't fully working yet. What I described works for MySQL 8.0 with It failed for SSL/TLS connections (more or less required for With use v5.22.0;
use strict;
use warnings;
use DBI;
use Net::SSLeay;
printf("OpenSSL version num: %lX\n", Net::SSLeay::OpenSSL_version_num());
say "connecting";
my $dbh = DBI->connect("DBI:mysql:","oldroot","oldroot");
say "SELECT 1";
$dbh->do("SELECT 1");
say "preparing SELECT VERSION() AS v";
my $sth = $dbh->prepare("SELECT VERSION() AS v") or die("failed to prepare");
$sth->execute or die("failed to execute");
while (my $ref = $sth->fetchrow_hashref()) {
print "Version: $ref->{'v'}\n";
}
say "exiting";
The 1010111F means that it is OpenSSL 1.1.x which might be too old for MySQL. It is also not the OpenSSL version that libmysqlclient is compiled against. Luckily there is a new Strawberry Perl version with a newer OpenSSL:
This brings the following:
So this has OpenSSL 3.3.0, which is a good step forward, but the (recompiled) |
Closes #359