Bug #31250 "testport" key missing in DBD::mysql Makefile.PL
Submitted: 27 Sep 2007 17:23 Modified: 20 Feb 2013 22:24
Reporter: Harry Berggren Email Updates:
Status: Unsupported Impact on me:
None 
Category:Connectors: DBD::mysql ( Perl ) Severity:S3 (Non-critical)
Version:DBD-mysql-4.005 OS:Solaris
Assigned to: CPU Architecture:Any
Tags: testport --testport Makefile.PL

[27 Sep 2007 17:23] Harry Berggren
Description:
Although "--testport" is a documented option, the key value "testport" is missing from the list of key values, at line 88, in Makefile.PL.  The result is that if --testport is given during the configuration step (i.e. perl Makefile.PL --testport=3309), perl throws an "unitialized value" warning.

How to repeat:
This can be repeated by configuring DBD::mysql with:

   perl Makefile.PL --testport=<port>

Suggested fix:
Add the string "testport" to the list of key values at line 88, so that $opt->{'testport'} is defined.
[30 Oct 2007 16:36] Sveta Smirnova
Thank you for the report.

Verified as described:

$perl Makefile.PL --testport=3309
I will use the following settings for compiling and testing:

  cflags        (mysql_config) = -I/usr/sfw/include/mysql -xstrconst -mt
  embedded      (mysql_config) = 
  libs          (mysql_config) = -R/usr/sfw/lib -R/usr/sfw/lib/mysql -L/usr/sfw/lib -L/usr/sfw/lib/mysql -lmysqlclient -lz -lposix4 -lcrypt -lgen -lsocket -lnsl -lm
  mysql_config  (guessed     ) = mysql_config
  nocatchstderr (default     ) = 0
  nofoundrows   (default     ) = 0
  ssl           (guessed     ) = 0
  testdb        (default     ) = test
  testhost      (default     ) = 
  testpassword  (default     ) = 
Use of uninitialized value in printf at Makefile.PL line 171, <PIPE> line 93.
  testport      (            ) = 3309
  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.54 (for perl 5.008004 on sun4-solaris-64int) installed in /users/ssmirnova/lib/site_perl/5.8.4/sun4-solaris-64int/auto/DBI/
Writing Makefile for DBD::mysql
[20 Feb 2013 22:24] Sveta Smirnova
Thank you for the report.

We don't work on DBD::mysql bugs anymore. All its bugs should go to CPAN: https://rt.cpan.org/Public/Dist/Display.html?Name=DBD-mysql

I re-submitted your report to https://rt.cpan.org/Public/Bug/Display.html?id=83492
Please subscribe to the new report on CPAN and work with DBD::mysql developers in case if they need additional details.