在安装 DBD-mysql-4.007 make test 时出现的错误!
chinasjok
|
1#
chinasjok 发表于 2008-06-20 14:16
在安装 DBD-mysql-4.007 make test 时出现的错误!
[Copy to clipboard] [ - ]
CODE:
[root@localhost DBD-mysql-4.007]# perl Makefile.PL --testuser=root --testpassword='s3kr1t'
I will use the following settings for compiling and testing: cflags (mysql_config ) = -I/usr/include/mysql -g -pipe -m32 -march=i386 -mtune=pentium4 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing embedded (mysql_config ) = libs (mysql_config ) = -L/usr/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -L/usr/lib -lssl -lcrypto mysql_config (guessed ) = mysql_config nocatchstderr (default ) = 0 nofoundrows (default ) = 0 ssl (guessed ) = 1 testdb (default ) = test testhost (default ) = testpassword (User's choice) = s3kr1t testsocket (default ) = testuser (User's choice) = root To change these settings, see 'perl Makefile.PL --help' and 'perldoc INSTALL'. Checking if your kit is complete... Looks good Using DBI 1.605 (for perl 5.008008 on i686-linux) installed in /usr/local/lib/perl5/site_perl/5.8.8/i686-linux/auto/DBI/ Writing Makefile for DBD::mysql [root@localhost DBD-mysql-4.007]# 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/DBD/mysql/INSTALL.pod blib/lib/DBD/mysql/INSTALL.pod cp lib/Bundle/DBD/mysql.pm blib/lib/Bundle/DBD/mysql.pm cc -c -I/usr/local/lib/perl5/site_perl/5.8.8/i686-linux/auto/DBI -I/usr/include/mysql -g -pipe -m32 -march=i386 -mtune=pentium4 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -DDBD_MYSQL_WITH_SSL -DDBD_MYSQL_INSERT_ID_IS_GOOD -g -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -DVERSION=\"4.007\" -DXS_VERSION=\"4.007\" -fpic "-I/usr/local/lib/perl5/5.8.8/i686-linux/CORE" dbdimp.c /usr/local/bin/perl -p -e "s/~DRIVER~/mysql/g" /usr/local/lib/perl5/site_perl/5.8.8/i686-linux/auto/DBI/Driver.xst > mysql.xsi /usr/local/bin/perl /usr/local/lib/perl5/5.8.8/ExtUtils/xsubpp -typemap /usr/local/lib/perl5/5.8.8/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 612 cc -c -I/usr/local/lib/perl5/site_perl/5.8.8/i686-linux/auto/DBI -I/usr/include/mysql -g -pipe -m32 -march=i386 -mtune=pentium4 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -DDBD_MYSQL_WITH_SSL -DDBD_MYSQL_INSERT_ID_IS_GOOD -g -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -DVERSION=\"4.007\" -DXS_VERSION=\"4.007\" -fpic "-I/usr/local/lib/perl5/5.8.8/i686-linux/CORE" mysql.c Running Mkbootstrap for DBD::mysql () chmod 644 mysql.bs rm -f blib/arch/auto/DBD/mysql/mysql.so LD_RUN_PATH="/usr/lib/mysql:/usr/lib" /usr/local/bin/perl myld cc -shared -L/usr/local/lib dbdimp.o mysql.o -o blib/arch/auto/DBD/mysql/mysql.so \ -L/usr/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -L/usr/lib -lssl -lcrypto \ chmod 755 blib/arch/auto/DBD/mysql/mysql.so cp mysql.bs blib/arch/auto/DBD/mysql/mysql.bs chmod 644 blib/arch/auto/DBD/mysql/mysql.bs Manifying blib/man3/DBD::mysql.3 Manifying blib/man3/DBD::mysql::INSTALL.3 Manifying blib/man3/Bundle::DBD::mysql.3 [root@localhost DBD-mysql-4.007]# make test PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/00base....................ok t/10connect.................ok t/20createdrop..............ok t/25lockunlock..............ok t/29warnings................ok t/30insertfetch.............ok t/31insertid................ok t/32insert_error............ok t/35limit...................ok t/35prepare.................ok t/40bindparam...............ok t/40bindparam2..............ok t/40blobs...................ok t/40catalog.................ok 35/77 skipped: various reasons t/40keyinfo.................ok t/40listfields..............ok t/40nulls...................ok t/40numrows.................ok t/40server_prepare..........ok t/40server_prepare_error....ok t/40types...................ok 19/20 skipped: New Data types not supported by server t/41bindparam...............ok t/41blobs_prepare...........ok t/42bindparam...............ok t/50chopblanks..............NOK 15 # Failed test '$name should not have blanks chopped' # in t/50chopblanks.t at line 51. # got: '' # expected: ' ' t/50chopblanks..............NOK 22 # Failed test '$name should not have blanks chopped' # in t/50chopblanks.t at line 51. # got: ' a b c' # expected: ' a b c ' # Looks like you failed 2 tests of 29. t/50chopblanks..............dubious Test returned status 2 (wstat 512, 0x200) DIED. FAILED tests 15, 22 Failed 2/29 tests, 93.10% okay t/50commit..................ok t/55utf8....................skipped all skipped: SKIP TEST: You must have MySQL version 5.0 and greater for this test to run t/60leaks...................skipped all skipped: Skip $ENV{SLOW_TESTS} is not set t/65types...................ok t/70takeimp.................ok t/71impdata.................ok t/75supported_sql...........ok t/76multi_statement.........ok t/80procs...................skipped all skipped: SKIP TEST: You must have MySQL version 5.0 and greater for this test to run Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- t/50chopblanks.t 2 512 29 2 6.90% 15 22 3 tests and 54 subtests skipped. Failed 1/34 test scripts, 97.06% okay. 2/643 subtests failed, 99.69% okay. make: *** [test_dynamic] 错误 255 [root@localhost DBD-mysql-4.007]# 实在没办法了.多发两个 |