Re: DBD::mysql 4.044 released!

[email protected] ("Patrick M. Galbraith") Wed, 31 Jan 2018 10:46:58 -0500
Newsgroups perl.dbi.dev
Message-ID <[email protected]>
"Should I create a ticket?"

Yes please.

Thank you,

Patrick

On 1/25/18 3:44 AM, H.Merijn Brand wrote:
> On Tue, 23 Jan 2018 08:59:54 -0500, "Patrick M. Galbraith"
> <[email protected]> wrote:
>
>> Dear Perl and MySQL community,
>>
>> I'm quite pleased to announce the release of DBD::mysql 4.044!
> Hmm
>
> $ rpm -q openssl
> openssl-1.1.0g-1.1.noarch
> $ mysql --version
> mysql  Ver 15.1 Distrib 10.2.12-MariaDB, for Linux (x86_64) using readline 5.1
> $ rpm -qa | grep -i mariadb | sort
> libmariadb3-3.0.2-4.2.x86_64
> libmariadb-devel-3.0.2-4.2.x86_64
> mariadb-10.2.12-1.1.x86_64
> mariadb-bench-10.2.12-1.1.x86_64
> mariadb-client-10.2.12-1.1.x86_64
> mariadb-connector-odbc-3.0.2-4.1.x86_64
> mariadb-errormessages-10.2.12-1.1.noarch
> mariadb-tools-10.2.12-1.1.x86_64
>
> $ perl -v | fgrep 5.2
> This is perl 5, version 26, subversion 0 (v5.26.0) built for x86_64-linux-thread-multi-ld
> $ perl -MV=DBI
> DBI
>          /pro/lib/perl5/site_perl/5.26.0/x86_64-linux-thread-multi-ld/DBI.pm: 1.639
>
> Linux 4.14.14-1-default [openSUSE Tumbleweed 20180122]  HP ZBook 15G3 Core(TM) i7-6820HQ CPU @ 2.70GHz/3411(8 cores) x86_64  15963 Mb
>
> Should I create a ticket?
>
> .cpan/build/DBD-mysql-4.044 509 > make
> "/data/pro/bin/perl5.26.0" -MExtUtils::Command::MM -e 'cp_nonempty' -- mysql.bs blib/arch/auto/DBD/mysql/mysql.bs 644
> cc -c  -I/pro/lib/perl5/site_perl/5.26.0/x86_64-linux-thread-multi-ld/auto/DBI -I/usr/include/mysql -I/usr/include/mysql/mariadb -DDBD_MYSQL_WITH_SSL -DDBD_MYSQL_INSERT_ID_IS_GOOD -g  -D_REENTRANT -D_GNU_SOURCE -fPIC -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/pro/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2   -DVERSION=\"4.044\" -DXS_VERSION=\"4.044\" -fPIC "-I/pro/lib/perl5/5.26.0/x86_64-linux-thread-multi-ld/CORE"   dbdimp.c
> dbdimp.c: In function ‘mysql_dr_connect’:
> dbdimp.c:1987:22: error: ‘SSL_MODE_PREFERRED’ undeclared (first use in this function); did you mean ‘SO_PEERCRED’?
>             ssl_mode = SSL_MODE_PREFERRED;
>                        ^~~~~~~~~~~~~~~~~~
>                        SO_PEERCRED
> dbdimp.c:1987:22: note: each undeclared identifier is reported only once for each function it appears in
> dbdimp.c:1989:19: error: ‘SSL_MODE_VERIFY_IDENTITY’ undeclared (first use in this function); did you mean ‘SSL_MODE_PREFERRED’?
>          ssl_mode = SSL_MODE_VERIFY_IDENTITY;
>                     ^~~~~~~~~~~~~~~~~~~~~~~~
>                     SSL_MODE_PREFERRED
> dbdimp.c:1991:19: error: ‘SSL_MODE_VERIFY_CA’ undeclared (first use in this function); did you mean ‘SSL_MODE_VERIFY_IDENTITY’?
>          ssl_mode = SSL_MODE_VERIFY_CA;
>                     ^~~~~~~~~~~~~~~~~~
>                     SSL_MODE_VERIFY_IDENTITY
> dbdimp.c:1993:19: error: ‘SSL_MODE_REQUIRED’ undeclared (first use in this function); did you mean ‘SSL_MODE_PREFERRED’?
>          ssl_mode = SSL_MODE_REQUIRED;
>                     ^~~~~~~~~~~~~~~~~
>                     SSL_MODE_PREFERRED
> dbdimp.c:1994:30: error: ‘MYSQL_OPT_SSL_MODE’ undeclared (first use in this function); did you mean ‘MYSQL_OPT_SSL_CRL’?
>        if (mysql_options(sock, MYSQL_OPT_SSL_MODE, &ssl_mode) != 0) {
>                                ^~~~~~~~~~~~~~~~~~
>                                MYSQL_OPT_SSL_CRL
> dbdimp.c:2072:30: error: ‘SSL_MODE_DISABLED’ undeclared (first use in this function); did you mean ‘SSL_MODE_REQUIRED’?
>        unsigned int ssl_mode = SSL_MODE_DISABLED;
>                                ^~~~~~~~~~~~~~~~~
>                                SSL_MODE_REQUIRED
> dbdimp.c:2125:13: error: ‘MYSQL {aka struct st_mysql}’ has no member named ‘reconnect’
>         result->reconnect=0;
>               ^~
> dbdimp.c: In function ‘mysql_describe’:
> dbdimp.c:3967:22: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
>         buffer->is_null= (my_bool*) &(fbh->is_null);
>                        ^
> dbdimp.c:3968:20: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
>         buffer->error= (my_bool*) &(fbh->error);
>                      ^
> make: *** [Makefile:353: dbdimp.o] Error 1
>
>> This release in particular contains a re-application of an earlier SSL
>> fix that was needed when we reverted a release last year.
>>
>> Per the Changelog:
>>
>> ---
>>
>>    Reapply https://github.com/perl5-dbi/DBD-mysql/pull/114 "Improve SSL
>> settings, reflect changes for BACKRONYM and Riddle vulnerabilities,
>> enforce SSL encryption when mysql_ssl=1 is set"
>>     Thank you to Pali Rohar, Daniël van Eeden, Booking.com, et al:w
>> * Fix parsing configure libs from mysql_config --libs output in Makefile.PL
>>     Libraries in mysql_config --libs output can be specified by library name
>>     with the -l prefix or by absolute path to library name without any
>> prefix.
>>     Parameters must start with a hyphen, so treat all options without leading
>>     hyphen in mysql_config --libs output as libraries with full path.
>>     Partially fixes bug https://rt.cpan.org/Public/Bug/Display.html?id=100898
>>     Fix by Pali Rohár.
>> * Return INTs with ZEROFILL as strings. Reported by Knarf, fix by Pali
>> Rohár.
>>      https://rt.cpan.org/Public/Bug/Display.html?id=118977
>> * Correct require on relative path for perl 5.26. Fix by Grinnz.
>>      https://github.com/perl5-dbi/DBD-mysql/pull/136
>>
>> This release has been made possible with the excellent work of Pali
>> Rohár, Daniël van Eeden (http://booking.com), Knarf, Grinnz, and my
>> co-maintainer, Michiel Beijen.
>>
>> Also, thanks for Reggie Burnett (who recently set up a slack room for
>> mysql), Matt Lord, Georg Richter, Paul Dubois, and other former MySQL
>> colleagues who have been helpful in establishing communications about
>> things that need to get done in the driver!
>>
>> I'm particularly please that this release also coincides with my 50th
>> birthday! I have been maintaining DBD::mysql since 2004 now, and look
>> forward to future releases containing further improvements as discussed
>> on the mailing lists and supporting new features in both MySQL and MariaDB.
>>
>> Thank  you!
>>
>> Patrick
>>
>> --
>>
>> Patrick M. Galbraith
>> Principal Platform Engineer, Oracle + Dyn
>> http://patg.net
>> [email protected]
>> [email protected]
>

-- 
--

Patrick M. Galbraith
Principal Platform Engineer, Oracle + Dyn
http://patg.net
[email protected]
[email protected]