Skip Menu |

This queue is for tickets about the DBD-mysql CPAN distribution.

Report information
The Basics
Id: 21562
Status: resolved
Priority: 0/
Queue: DBD-mysql

People
Owner: Nobody in particular
Requestors: john [...] johnlubotsky.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Apparent bug in 3.0007
Date: Mon, 18 Sep 2006 18:05:20 -0700
To: bug-DBD-mysql [...] rt.cpan.org
From: John Lubotsky <john [...] johnlubotsky.com>
Dear Folks: On FreeBSD 4.6.1, using Perl 5.8.8, make-ing DBD::mysql 3.0007 from the source found at fails, as below. Note that 3.0006 works beautifully. Let me know if other info is helpful. Best, John Lubotsky wasabi# pwd /usr/local/src/DBD-mysql-3.0007 wasabi# /usr/bin/perl5.8 Makefile.PL I will use the following settings for compiling and testing: cflags (mysql_config) = -I'/usr/local/include/mysql' embedded (guessed ) = libs (mysql_config) = -L/usr/local/lib/mysql -lmysqlclient -lz -lcrypt -lm mysql_config (guessed ) = mysql_config nocatchstderr (default ) = 0 nofoundrows (default ) = 0 ssl (guessed ) = 0 Use of uninitialized value in printf at Makefile.PL line 172, <PIPE> line 79. test_user ( ) = testdb (default ) = test testhost (default ) = testpassword (default ) = testsocket (default ) = testuser (default ) = To change these settings, see 'perl Makefile.PL --help' and 'perldoc INSTALL'. Checking if your kit is complete... Looks good Using DBI 1.52 (for perl 5.008008 on i386-freebsd) installed in /usr/local/lib/perl5/site_perl/5.8.8/i386-freebsd/auto/DBI/ Writing Makefile for DBD::mysql wasabi# make cp lib/DBD/mysql.pm blib/lib/DBD/mysql.pm cp lib/DBD/mysql/GetInfo.pm blib/lib/DBD/mysql/GetInfo.pm cp lib/Mysql.pm blib/lib/Mysql.pm cp lib/DBD/mysql/INSTALL.pod blib/lib/DBD/mysql/INSTALL.pod cp lib/Mysql/Statement.pm blib/lib/Mysql/Statement.pm cp lib/Bundle/DBD/mysql.pm blib/lib/Bundle/DBD/mysql.pm cc -c -I/usr/local/lib/perl5/site_perl/5.8.8/i386-freebsd/auto/DBI -I'/usr/local/include/mysql' -DDBD_MYSQL_INSERT_ID_IS_GOOD -g -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -I/usr/local/include -O -DVERSION=\"3.0007\" -DXS_VERSION=\"3.0007\" -DPIC -fPIC "-I/usr/local/lib/perl5/5.8.8/i386-freebsd/CORE" dbdimp.c dbdimp.c: In function `mysql_st_internal_execute': dbdimp.c:2390: syntax error before `rows' dbdimp.c:2467: `rows' undeclared (first use in this function) dbdimp.c:2467: (Each undeclared identifier is reported only once dbdimp.c:2467: for each function it appears in.) *** Error code 1 Stop in /usr/local/src/DBD-mysql-3.0007.
Subject: Re: [rt.cpan.org #21562]
Date: Mon, 18 Sep 2006 18:09:26 -0700
To: bug-DBD-mysql [...] rt.cpan.org
From: John Lubotsky <john [...] johnlubotsky.com>
Show quoted text
>Greetings, > >This message has been automatically generated in response to the >creation of a trouble ticket regarding: > "Apparent bug in 3.0007", >a summary of which appears below. > >There is no need to reply to this message right now. Your ticket has been >assigned an ID of [rt.cpan.org #21562]. Your ticket is accessible >on the web at: > > http://rt.cpan.org/Ticket/Display.html?id=21562 > >Please include the string: > > [rt.cpan.org #21562] > >in the subject line of all future correspondence about this issue. To do so, >you may reply to this message. > > Thank you, > bug-DBD-mysql@rt.cpan.org
Ack. Please remove my the un-obfusticated version of email address from the post, or delete it. Best, John Lubotsky
From: TYPESTER [...] cpan.org
On 月曜日 9月 18 21:05:43 2006, john@johnlubotsky.com wrote: Show quoted text
> Dear Folks: > > On FreeBSD 4.6.1, using Perl 5.8.8, make-ing DBD::mysql 3.0007 from > the source found at fails, as below. Note that 3.0006 works > beautifully. Let me know if other info is helpful. > > Best, > John Lubotsky > > wasabi# pwd > /usr/local/src/DBD-mysql-3.0007 > wasabi# /usr/bin/perl5.8 Makefile.PL > I will use the following settings for compiling and testing: > > cflags (mysql_config) = -I'/usr/local/include/mysql' > embedded (guessed ) = > libs (mysql_config) = -L/usr/local/lib/mysql -lmysqlclient > -lz -lcrypt -lm > mysql_config (guessed ) = mysql_config > nocatchstderr (default ) = 0 > nofoundrows (default ) = 0 > ssl (guessed ) = 0 > Use of uninitialized value in printf at Makefile.PL line 172, <PIPE> > line 79. > test_user ( ) = > testdb (default ) = test > testhost (default ) = > testpassword (default ) = > testsocket (default ) = > testuser (default ) = > > To change these settings, see 'perl Makefile.PL --help' and > 'perldoc INSTALL'. > > Checking if your kit is complete... > Looks good > Using DBI 1.52 (for perl 5.008008 on i386-freebsd) installed in > /usr/local/lib/perl5/site_perl/5.8.8/i386-freebsd/auto/DBI/ > Writing Makefile for DBD::mysql > wasabi# make > cp lib/DBD/mysql.pm blib/lib/DBD/mysql.pm > cp lib/DBD/mysql/GetInfo.pm blib/lib/DBD/mysql/GetInfo.pm > cp lib/Mysql.pm blib/lib/Mysql.pm > cp lib/DBD/mysql/INSTALL.pod blib/lib/DBD/mysql/INSTALL.pod > cp lib/Mysql/Statement.pm blib/lib/Mysql/Statement.pm > cp lib/Bundle/DBD/mysql.pm blib/lib/Bundle/DBD/mysql.pm > cc -c -I/usr/local/lib/perl5/site_perl/5.8.8/i386-freebsd/auto/DBI > -I'/usr/local/include/mysql' -DDBD_MYSQL_INSERT_ID_IS_GOOD -g > -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe > -I/usr/local/include -O -DVERSION=\"3.0007\" > -DXS_VERSION=\"3.0007\" -DPIC -fPIC > "-I/usr/local/lib/perl5/5.8.8/i386-freebsd/CORE" dbdimp.c > dbdimp.c: In function `mysql_st_internal_execute': > dbdimp.c:2390: syntax error before `rows' > dbdimp.c:2467: `rows' undeclared (first use in this function) > dbdimp.c:2467: (Each undeclared identifier is reported only once > dbdimp.c:2467: for each function it appears in.) > *** Error code 1 > > Stop in /usr/local/src/DBD-mysql-3.0007.
This is probably gcc version issue. I'm seeing same error with gcc 2.96. Here is the patch to fix it: --- dbdimp.c.old 2006-09-19 11:36:09.000000000 +0900 +++ dbdimp.c 2006-09-19 11:36:16.000000000 +0900 @@ -2347,6 +2347,8 @@ char *table; char *salloc; int htype; + my_ulonglong rows= 0; + /* thank you DBI.c for this info! */ D_imp_xxh(h); @@ -2387,8 +2389,6 @@ num_params, imp_dbh->bind_type_guessing); - my_ulonglong rows= 0; - if (dbis->debug >= 2) PerlIO_printf(DBILOGFP, "mysql_st_internal_execute\n");
Oops sorry, I've changed ticket's status.
CC: undisclosed-recipients:;
Subject: Re: [rt.cpan.org #21562] Apparent bug in 3.0007
Date: Fri, 22 Sep 2006 16:01:08 -0400
To: bug-DBD-mysql [...] rt.cpan.org
From: Patrick Galbraith <patg [...] mysql.com>
Thanks! I love patches! I was sick this week, and also had to fix some breakages in the federated storage engine. I'll get this into the code this coming week. Thank you so much! If you're interested in write-access to SVN DBD::mysql tree, I could set you up. I would just need to know your cpan id. Patrick via RT wrote: Show quoted text
> Queue: DBD-mysql > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=21562 > > >On 月曜日 9月 18 21:05:43 2006, john@johnlubotsky.com wrote: > >
>>Dear Folks: >> >>On FreeBSD 4.6.1, using Perl 5.8.8, make-ing DBD::mysql 3.0007 from >>the source found at fails, as below. Note that 3.0006 works >>beautifully. Let me know if other info is helpful. >> >>Best, >>John Lubotsky >> >>wasabi# pwd >>/usr/local/src/DBD-mysql-3.0007 >>wasabi# /usr/bin/perl5.8 Makefile.PL >>I will use the following settings for compiling and testing: >> >> cflags (mysql_config) = -I'/usr/local/include/mysql' >> embedded (guessed ) = >> libs (mysql_config) = -L/usr/local/lib/mysql -lmysqlclient >>-lz -lcrypt -lm >> mysql_config (guessed ) = mysql_config >> nocatchstderr (default ) = 0 >> nofoundrows (default ) = 0 >> ssl (guessed ) = 0 >>Use of uninitialized value in printf at Makefile.PL line 172, <PIPE> >>line 79. >> test_user ( ) = >> testdb (default ) = test >> testhost (default ) = >> testpassword (default ) = >> testsocket (default ) = >> testuser (default ) = >> >>To change these settings, see 'perl Makefile.PL --help' and >>'perldoc INSTALL'. >> >>Checking if your kit is complete... >>Looks good >>Using DBI 1.52 (for perl 5.008008 on i386-freebsd) installed in >>/usr/local/lib/perl5/site_perl/5.8.8/i386-freebsd/auto/DBI/ >>Writing Makefile for DBD::mysql >>wasabi# make >>cp lib/DBD/mysql.pm blib/lib/DBD/mysql.pm >>cp lib/DBD/mysql/GetInfo.pm blib/lib/DBD/mysql/GetInfo.pm >>cp lib/Mysql.pm blib/lib/Mysql.pm >>cp lib/DBD/mysql/INSTALL.pod blib/lib/DBD/mysql/INSTALL.pod >>cp lib/Mysql/Statement.pm blib/lib/Mysql/Statement.pm >>cp lib/Bundle/DBD/mysql.pm blib/lib/Bundle/DBD/mysql.pm >>cc -c -I/usr/local/lib/perl5/site_perl/5.8.8/i386-freebsd/auto/DBI >>-I'/usr/local/include/mysql' -DDBD_MYSQL_INSERT_ID_IS_GOOD -g >>-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe >>-I/usr/local/include -O -DVERSION=\"3.0007\" >>-DXS_VERSION=\"3.0007\" -DPIC -fPIC >>"-I/usr/local/lib/perl5/5.8.8/i386-freebsd/CORE" dbdimp.c >>dbdimp.c: In function `mysql_st_internal_execute': >>dbdimp.c:2390: syntax error before `rows' >>dbdimp.c:2467: `rows' undeclared (first use in this function) >>dbdimp.c:2467: (Each undeclared identifier is reported only once >>dbdimp.c:2467: for each function it appears in.) >>*** Error code 1 >> >>Stop in /usr/local/src/DBD-mysql-3.0007. >> >>
> >This is probably gcc version issue. I'm seeing same error with gcc 2.96. > >Here is the patch to fix it: > >--- dbdimp.c.old 2006-09-19 11:36:09.000000000 +0900 >+++ dbdimp.c 2006-09-19 11:36:16.000000000 +0900 >@@ -2347,6 +2347,8 @@ > char *table; > char *salloc; > int htype; >+ my_ulonglong rows= 0; >+ > > /* thank you DBI.c for this info! */ > D_imp_xxh(h); >@@ -2387,8 +2389,6 @@ > num_params, > imp_dbh->bind_type_guessing); > >- my_ulonglong rows= 0; >- > if (dbis->debug >= 2) > PerlIO_printf(DBILOGFP, "mysql_st_internal_execute\n"); > > > >
Subject: Re: [rt.cpan.org #21562] AutoReply: Apparent bug in 3.0007
Date: Mon, 2 Oct 2006 14:25:48 -0700
To: bug-DBD-mysql [...] rt.cpan.org
From: John Lubotsky <cpanspam [...] johnlubotsky.com>
Show quoted text
> >------------------------------------------------------------------------- >Dear Folks: > >On FreeBSD 4.6.1, using Perl 5.8.8, make-ing DBD::mysql 3.0007 from >the source found at fails, as below. Note that 3.0006 works >beautifully. Let me know if other info is helpful. > >Best, >John Lubotsky >
Whomever has the power to do so: please remove the email address --john-- --at-- --johnlubotsky-- --dot-- --com-- from this bug report; or, if necessary, delete it, and i'll repost it using a throwaway address. Cheers, John Lubotsky
I have a fix for this in 3.0008, which I hope to release later this week. Kind regards, Patrick On Mon Sep 18 21:05:43 2006, john@johnlubotsky.com wrote: Show quoted text
> Dear Folks: > > On FreeBSD 4.6.1, using Perl 5.8.8, make-ing DBD::mysql 3.0007 from > the source found at fails, as below. Note that 3.0006 works > beautifully. Let me know if other info is helpful. > > Best, > John Lubotsky > > wasabi# pwd > /usr/local/src/DBD-mysql-3.0007 > wasabi# /usr/bin/perl5.8 Makefile.PL > I will use the following settings for compiling and testing: > > cflags (mysql_config) = -I'/usr/local/include/mysql' > embedded (guessed ) = > libs (mysql_config) = -L/usr/local/lib/mysql -lmysqlclient > -lz -lcrypt -lm > mysql_config (guessed ) = mysql_config > nocatchstderr (default ) = 0 > nofoundrows (default ) = 0 > ssl (guessed ) = 0 > Use of uninitialized value in printf at Makefile.PL line 172, <PIPE> > line 79. > test_user ( ) = > testdb (default ) = test > testhost (default ) = > testpassword (default ) = > testsocket (default ) = > testuser (default ) = > > To change these settings, see 'perl Makefile.PL --help' and > 'perldoc INSTALL'. > > Checking if your kit is complete... > Looks good > Using DBI 1.52 (for perl 5.008008 on i386-freebsd) installed in > /usr/local/lib/perl5/site_perl/5.8.8/i386-freebsd/auto/DBI/ > Writing Makefile for DBD::mysql > wasabi# make > cp lib/DBD/mysql.pm blib/lib/DBD/mysql.pm > cp lib/DBD/mysql/GetInfo.pm blib/lib/DBD/mysql/GetInfo.pm > cp lib/Mysql.pm blib/lib/Mysql.pm > cp lib/DBD/mysql/INSTALL.pod blib/lib/DBD/mysql/INSTALL.pod > cp lib/Mysql/Statement.pm blib/lib/Mysql/Statement.pm > cp lib/Bundle/DBD/mysql.pm blib/lib/Bundle/DBD/mysql.pm > cc -c -I/usr/local/lib/perl5/site_perl/5.8.8/i386-freebsd/auto/DBI > -I'/usr/local/include/mysql' -DDBD_MYSQL_INSERT_ID_IS_GOOD -g > -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe > -I/usr/local/include -O -DVERSION=\"3.0007\" > -DXS_VERSION=\"3.0007\" -DPIC -fPIC > "-I/usr/local/lib/perl5/5.8.8/i386-freebsd/CORE" dbdimp.c > dbdimp.c: In function `mysql_st_internal_execute': > dbdimp.c:2390: syntax error before `rows' > dbdimp.c:2467: `rows' undeclared (first use in this function) > dbdimp.c:2467: (Each undeclared identifier is reported only once > dbdimp.c:2467: for each function it appears in.) > *** Error code 1 > > Stop in /usr/local/src/DBD-mysql-3.0007.
Please try 3.0007_2, which fixes this compile error.