Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 364491 - <dev-perl/DBD-mysql-4.19.0 broken on Perl 5.14
Summary: <dev-perl/DBD-mysql-4.19.0 broken on Perl 5.14
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Gentoo Perl team
URL: https://rt.cpan.org/Ticket/Display.ht...
Whiteboard:
Keywords:
Depends on:
Blocks: perl-5.14.0
  Show dependency tree
 
Reported: 2011-04-22 15:40 UTC by Kent Fredric (IRC: kent\n) (RETIRED)
Modified: 2011-05-12 17:24 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2011-04-22 15:40:03 UTC
Also RT https://rt.cpan.org/Ticket/Display.html?id=60085

cp lib/Bundle/DBD/mysql.pm blib/lib/Bundle/DBD/mysql.pm
Running Mkbootstrap for DBD::mysql ()
chmod 644 mysql.bs
cp mysql.bs blib/arch/auto/DBD/mysql/mysql.bs
chmod 644 blib/arch/auto/DBD/mysql/mysql.bs
/usr/bin/perl5.14.0 /usr/lib64/perl5/vendor_perl/5.14/ExtUtils/xsubpp  -typemap /usr/lib64/perl5/5.14/ExtUtils/typemap  mysql.xs > mysql.xsc && mv mysql.xsc mysql.c
Warning: duplicate function definition 'do' detected in mysql.xs, line 225
Warning: duplicate function definition 'rows' detected in mysql.xs, line 650
x86_64-pc-linux-gnu-gcc -c  -I/usr/lib64/perl5/vendor_perl/5.14/x86_64-linux-thread-multi/auto/DBI -I/usr/include/mysql -DHAVE_ERRNO_AS_DEFINE=1 -DUNIV_LINUX -DUNIV_LINUX -DDBD_MYSQL_WITH_SSL -DDBD_MYSQL_INSERT_ID_IS_GOOD -g  -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -march=native -mtune=native -O2 -pipe --param l2-cache-size=3040 -mfpmath=sse -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -msahf -pg   -DVERSION=\"4.018\" -DXS_VERSION=\"4.018\" -fPIC "-I/usr/lib64/perl5/5.14/x86_64-linux-thread-multi/CORE"   mysql.c
dbdimp.c: In function 'mysql_db_FETCH_attrib':
dbdimp.c:2447:64: error: 'sv_undef' undeclared (first use in this function)
dbdimp.c:2447:64: note: each undeclared identifier is reported only once for each function it appears in
dbdimp.c: In function 'mysql_st_internal_execute41':
dbdimp.c:3298:19: warning: format '%d' expects type 'int', but argument 3 has type 'my_ulonglong'
dbdimp.c: In function 'mysql_describe':
dbdimp.c:3517:23: warning: format '%d' expects type 'int', but argument 5 has type 'long unsigned int'
dbdimp.c:3521:23: warning: format '%d' expects type 'int', but argument 3 has type 'long unsigned int'
dbdimp.c: In function 'mysql_st_fetch':
dbdimp.c:3738:27: warning: format '%d' expects type 'int', but argument 3 has type 'long int'
dbdimp.c:3780:7: warning: format '%08lx' expects type 'long unsigned int', but argument 3 has type 'struct MYSQL_RES *'
dbdimp.c:3782:21: warning: format '%llu' expects type 'long long unsigned int', but argument 3 has type 'unsigned int'
dbdimp.c: In function 'mysql_st_FETCH_attrib':
dbdimp.c:4365:11: warning: format '%d' expects type 'int', but argument 3 has type 'my_ulonglong'
dbdimp.c: In function 'mysql_bind_ph':
dbdimp.c:4571:27: warning: format '%d' expects type 'int', but argument 3 has type 'IV'
dbdimp.c:4583:27: warning: format '%d' expects type 'int', but argument 3 has type 'IV'
dbdimp.c:4595:27: warning: format '%d' expects type 'int', but argument 3 has type 'IV'
dbdimp.c:4609:25: warning: format '%d' expects type 'int', but argument 3 has type 'IV'
dbdimp.c:4630:25: warning: format '%d' expects type 'int', but argument 5 has type 'IV'
make: *** [dbdimp.o] Error 1
Comment 1 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2011-05-09 21:32:43 UTC
http://search.cpan.org/~capttofu/DBD-mysql-4.019/ Appears to solve the compilation errors for me ( at least with the stock version on CPAN ) 

I've only tested it locally with tar/make/make test, but it seems to work. ( Only one test failed and it was due to not being able to connect to the database due to privelage control, ie: probably because I was running it as a user or something trivial ) 

Would love to see this on Gentoo =)
Comment 2 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2011-05-11 08:13:36 UTC
Bumped on ::perl-experimental for impatient people to test.

http://git.overlays.gentoo.org/gitweb/?p=proj/perl-overlay.git;a=commit;h=dafb37e95c895e5ec3c3ad85b22ecde41dd4b429
Comment 3 Torsten Veller (RETIRED) gentoo-dev 2011-05-12 17:24:33 UTC
dev-perl/DBD-mysql-4.19.0 is in the tree.

Thanks