DBD::mysql 4.048 fails to build / fails tests after patch on TW + MariaDB-10.2.18

--Sig_/vid=5J0Dwyhkh/.bj=BZ_3O
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Linux 4.18.12-1-default [openSUSE Tumbleweed 20181012]
i7-6820HQ CPU @ 2.70GHz/3358(8 cores) x86_64  15960 Mb

This is perl 5, version 28, subversion 0 (v5.28.0) built for x86_64-linux-t=
hread-multi-ld

gcc (SUSE Linux) 8.2.1 20180831 [gcc-8-branch revision 264010]

DBI 1.641

mysql  Ver 15.1 Distrib 10.2.18-MariaDB, for Linux (x86_64) using readline =
5.1

mariadb-10.2.18-1.2.x86_64
mariadb-bench-10.2.18-1.2.x86_64
mariadb-client-10.2.18-1.2.x86_64
mariadb-connector-odbc-3.0.3-2.1.x86_64
mariadb-errormessages-10.2.18-1.2.noarch
mariadb-tools-10.2.18-1.2.x86_64

It needs
https://github.com/dveeden/DBD-mysql/commit/dbfdeb418193a6da0dc57b7c3bf8232=
b2ae0cd1f

..cpan/build/DBD-mysql-4.048-0 > make
cp lib/DBD/mysql/INSTALL.pod blib/lib/DBD/mysql/INSTALL.pod
cp lib/DBD/mysql.pm blib/lib/DBD/mysql.pm
cp lib/DBD/mysql/GetInfo.pm blib/lib/DBD/mysql/GetInfo.pm
cp lib/Bundle/DBD/mysql.pm blib/lib/Bundle/DBD/mysql.pm
Running Mkbootstrap for mysql ()
chmod 644 "mysql.bs"
"/data/pro/bin/perl5.28.0" -MExtUtils::Command::MM -e 'cp_nonempty' -- mysq=
l.bs blib/arch/auto/DBD/mysql/mysql.bs 644
cc -c  -I/pro/lib/perl5/site_perl/5.28.0/x86_64-linux-thread-multi-ld/auto/=
DBI -I/usr/include/mysql -I/usr/include/mysql/mariadb -DDBD_MYSQL_WITH_SSL =
-g  -D_REENTRANT -D_GNU_SOURCE -fPIC -fwrapv -fno-strict-aliasing -pipe -fs=
tack-protector-strong -I/pro/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFS=
ET_BITS=3D64 -O2   -DVERSION=3D\"4.048\" -DXS_VERSION=3D\"4.048\" -fPIC "-I=
/pro/lib/perl5/5.28.0/x86_64-linux-thread-multi-ld/CORE"   dbdimp.c
In file included from /pro/lib/perl5/site_perl/5.28.0/x86_64-linux-thread-m=
ulti-ld/auto/DBI/DBIXS.h:38,
                 from dbdimp.h:20,
                 from dbdimp.c:15:
/pro/lib/perl5/site_perl/5.28.0/x86_64-linux-thread-multi-ld/auto/DBI/dbipp=
ort.h:4471: warning: "WIDEST_UTYPE" redefined
 #  define WIDEST_UTYPE U64TYPE

In file included from /pro/lib/perl5/5.28.0/x86_64-linux-thread-multi-ld/CO=
RE/perl.h:2465,
                 from /pro/lib/perl5/site_perl/5.28.0/x86_64-linux-thread-m=
ulti-ld/auto/DBI/DBIXS.h:23,
                 from dbdimp.h:20,
                 from dbdimp.c:15:
/pro/lib/perl5/5.28.0/x86_64-linux-thread-multi-ld/CORE/handy.h:1064: note:=
 this is the location of the previous definition
 #   define WIDEST_UTYPE U64

In file included from /usr/include/mysql/mysql.h:60,
                 from dbdimp.h:21,
                 from dbdimp.c:15:
dbdimp.c: In function =E2=80=98mysql_dr_connect=E2=80=99:
/usr/include/mysql/mariadb_version.h:14:31: error: token ""mariadb-10.3"" i=
s not valid in preprocessor expressions
 #define MARIADB_BASE_VERSION  "mariadb-10.3"
                               ^~~~~~~~~~~~~~
/usr/include/mysql/mariadb_version.h:14:31: note: in definition of macro =
=E2=80=98MARIADB_BASE_VERSION=E2=80=99
 #define MARIADB_BASE_VERSION  "mariadb-10.3"
                               ^~~~~~~~~~~~~~
/usr/include/mysql/mariadb_version.h:14:31: error: token ""mariadb-10.3"" i=
s not valid in preprocessor expressions
 #define MARIADB_BASE_VERSION  "mariadb-10.3"
                               ^~~~~~~~~~~~~~
/usr/include/mysql/mariadb_version.h:14:31: note: in definition of macro =
=E2=80=98MARIADB_BASE_VERSION=E2=80=99
 #define MARIADB_BASE_VERSION  "mariadb-10.3"
                               ^~~~~~~~~~~~~~
dbdimp.c: In function =E2=80=98mysql_st_prepare=E2=80=99:
dbdimp.c:3200:24: warning: assignment to =E2=80=98my_bool *=E2=80=99 {aka =
=E2=80=98char *=E2=80=99} from incompatible pointer type =E2=80=98_Bool *=
=E2=80=99 [-Wincompatible-pointer-types]
           bind->is_null=3D      (_Bool*) &(fbind->is_null);
                        ^
make: *** [Makefile:355: dbdimp.o] Error 1

With the beforementioned patch, it compiles, but tests fail:

Test Summary Report
-------------------
t/15reconnect.t                       (Wstat: 139 Tests: 14 Failed: 0)
  Non-zero wait status: 139
  Parse errors: Bad plan.  You planned 16 tests but ran 14.
t/rt118977-zerofill.t                 (Wstat: 256 Tests: 8 Failed: 1)
  Failed test:  8
  Non-zero exit status: 1
Files=3D73, Tests=3D2292, 63 wallclock secs ( 0.75 usr  0.11 sys +  6.91 cu=
sr  0.85 csys =3D  8.62 CPU)
Result: FAIL
Failed 2/73 test programs. 1/2292 subtests failed.

With https://github.com/dveeden/DBD-mysql/commit/cf752cd10fdd5d8c59f9baff7d=
e6ac651323430e
applied

Test Summary Report
-------------------
t/rt118977-zerofill.t                 (Wstat: 256 Tests: 8 Failed: 1)
  Failed test:  8
  Non-zero exit status: 1
Files=3D73, Tests=3D2294, 63 wallclock secs ( 0.69 usr  0.14 sys +  6.96 cu=
sr  0.75 csys =3D  8.54 CPU)
Result: FAIL
Failed 1/73 test programs. 1/2294 subtests failed.

..cpan/build/DBD-mysql-4.048-0 > prove -I. -Ilib -vwb t/rt118977-zerofill.t
t/rt118977-zerofill.t ..
1..8
ok 1
ok 2
ok 3
ok 4
ok 5
ok 6
ok 7
not ok 8
#   Failed test at t/rt118977-zerofill.t line 22.
#          got: '1'
#     expected: '00001'
# Looks like you failed 1 test of 8.
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/8 subtests

Test Summary Report
-------------------
t/rt118977-zerofill.t (Wstat: 256 Tests: 8 Failed: 1)
  Failed test:  8
  Non-zero exit status: 1
Files=3D1, Tests=3D8,  0 wallclock secs ( 0.02 usr  0.01 sys +  0.08 cusr  =
0.00 csys =3D  0.11 CPU)
Result: FAIL

--=20
H.Merijn Brand  http://tux.nl   Perl Monger  http://amsterdam.pm.org/
using perl5.00307 .. 5.29   porting perl5 on HP-UX, AIX, and openSUSE
http://mirrors.develooper.com/hpux/        http://www.test-smoke.org/
http://qa.perl.org   http://www.goldmark.org/jeff/stupid-disclaimers/

--Sig_/vid=5J0Dwyhkh/.bj=BZ_3O
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBAgAGBQJbyYZnAAoJEAOhR6E+XcCYBuQIALE+fJ0gEB1UwbasoqhJKJ1f
6eVgRcY7YGT9wCQbZXm/KcKVd+ln9ndpFM7liQsifSWCLeoTLLIe5CfYjOtGBZei
gGk2JkR0MwU0ZhE5meL06VxJnDhqs21/ejarihCH3HYEiSpGj5k78Y+aH1cxviYj
WXDXqDNhZSZpE5ATyuY80o8nCYhyAfHZ+lYiyi2mCpqVDbQTHe7GX4vTv3prmE6I
6KcAN7o9HzZf56FZlnpOoa73uViluDv1o7WjVyMzXhaWDhXwSB4AwjqYDnT81KiZ
gEus+gG2Gu+qPWYg4ySYSZNzQxchzbHNxJ1SG0hKtRNWIJCkjf1enZ0eG67KZIo=
=kHlF
-----END PGP SIGNATURE-----

--Sig_/vid=5J0Dwyhkh/.bj=BZ_3O--
0
h
10/19/2018 7:23:13 AM
perl.dbi.dev 1960 articles. 0 followers. Follow

0 Replies
284 Views

Similar Articles

[PageSpeed] 25

Reply: