Problem about DBD

Problem about DBD

am 22.09.2003 05:37:48 von linar

------=_NextPart_000_000E_01C38106.545D1880
Content-Type: text/plain;
charset="ks_c_5601-1987"
Content-Transfer-Encoding: base64

SGVsbG8gcGVvcGxlLA0KDQp0aGUgc2l0dWF0aW9uIGlzIHRoZSBmb2xsb3dp bmc6IEkgY29tcGls
ZWQgUGVybCA1LjguMCwNCm15c3FsIDQuMC4xNSwgREJJIDEuMzgsIGFuZCBE QkQtMi45MDAzXzEu
DQpBbmQgSSdtIHVzaW5nIFNvbGFyaXMgOCAoU1VOX09TIDUuOCkuDQoNCkV2 ZXRoaW5nIHdhcyBv
aywgZXhjZXB0IERCRCwgdGhhdCBmYWlscyBvbiB0aGUgJ21ha2UNCnRlc3Qn IHN0ZXAuDQoNClRo
ZW4sIEkgbWFkZSBhIHNpbXBsZSBzY3JpcHQgaW4gcGVybCB0byBzaG93IHRo ZQ0KZHJpdmVzIGFu
ZCBjb25uZWN0IHdpdGggdGhlIGRhdGFiYXNlIGJ5IERCSTpteXNxbC4gQW5k DQp0aGUgbWVzc2Fn
ZSBJIHJlY2VpdmVkIHdhczoNCg0KaW5zdGFsbF9kcml2ZXIobXlzcWwpIGZh aWxlZDogQ2FuJ3Qg
bG9hZCAnL2hvbWUvcW1zL2Rvd24vREJELW15c3FsLTIuOTAwM18xL2JsaWIv YXJjaC9hdXRvL0RC
RC9teXNxbC9teXNxbC5zbycgZm9yIG1vZHVsZSBEQkQ6Om15c3FsOiBsZC5z by4xOiAvdXNyL2Jp
bi9wZXJsOiBmYXRhbDogcmVsb2NhdGlvbiBlcnJvcjogZmlsZSAvaG9tZS9x bXMvZG93bi9EQkQt
bXlzcWwtMi45MDAzXzEvYmxpYi9hcmNoL2F1dG8vREJEL215c3FsL215c3Fs LnNvOiBzeW1ib2wg
bmV0X2J1ZmZlcl9sZW5ndGg6IHJlZmVyZW5jZWQgc3ltYm9sIG5vdCBmb3Vu ZCBhdCAvdXNyL2xv
Y2FsL2xpYi9wZXJsNS81LjguMC9zdW40LXNvbGFyaXMvRHluYUxvYWRlci5w bSBsaW5lIDIyOS4N
Cg0KQ2FuIHNvbWVvbmUgaGVscCBtZSBmaW5kaW5nIHdoZXJlaXMgdGhlIGVy cm9yID8/DQpwbGVh
c2UgaGVscCBtZX4NCg0KTWFueSB0aGFua3MuDQo=

------=_NextPart_000_000E_01C38106.545D1880--

Re: Problem about DBD

am 22.09.2003 07:03:19 von Jochen Wiedmann

ÇѼ÷°æ wrote:

> install_driver(mysql) failed: Can't load '/home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/ mysql.so' for module DBD::mysql: ld.so.1: /usr/bin/perl: fatal: relocation error: file /home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/m ysql.so: symbol net_buffer_length: referenced symbol not found at /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.

Get yourself the latest version of the driver (2.9003_1, from the directory
authors/R/RU/RUDY) and retry with that. Most probably you will get a
meaningful error message using this version.


Jochen


--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/perl?unsub=gcdmp-msql-mysql-modules@m .gmane.org

Re: Problem about DBD

am 22.09.2003 07:03:19 von Jochen Wiedmann

ÇѼ÷°æ wrote:

> install_driver(mysql) failed: Can't load '/home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/ mysql.so' for module DBD::mysql: ld.so.1: /usr/bin/perl: fatal: relocation error: file /home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/m ysql.so: symbol net_buffer_length: referenced symbol not found at /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.

Get yourself the latest version of the driver (2.9003_1, from the directory
authors/R/RU/RUDY) and retry with that. Most probably you will get a
meaningful error message using this version.


Jochen


--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/perl?unsub=gcdmp-msql-mysql-modules@m .gmane.org

Re: Problem about DBD

am 22.09.2003 09:51:16 von Jochen Wiedmann

What are the contents of /usr/local/mysql/lib?


ÇѼ÷°æ wrote:

> "perl Makefile.PL"
> ->
> rm -rf mysql.c *.xsi ./blib Makefile.aperl blib/arch/auto/DBD/mysql/extralibs.all perlmain.c tmon.out mon.out so_locations pm_to_blib *.o *.a perl.exe perl perl mysql.bs mysql.bso mysql.def libmysql.def mysql.exp mysql.x core core.*perl.*.? *perl.core
> mv Makefile Makefile.old > /dev/null 2>&1
> [slaweb:/home/qms/down/DBD-mysql-2.9003_1] perl Makefile.PL
> Can't exec "mysql_config": No such file or directory at Makefile.PL line 174.
> readline() on closed filehandle PIPE at Makefile.PL line 176.
> Can't exec "mysql_config": No such file or directory at Makefile.PL line 174.
> readline() on closed filehandle PIPE at Makefile.PL line 176.
> Can't exec "mysql_config": No such file or directory at Makefile.PL line 174.
> readline() on closed filehandle PIPE at Makefile.PL line 176.
> Can't exec "mysql_config": No such file or directory at Makefile.PL line 174.
> readline() on closed filehandle PIPE at Makefile.PL line 176.
> Can't exec "mysql_config": No such file or directory at Makefile.PL line 174.
> readline() on closed filehandle PIPE at Makefile.PL line 176.
> Can't exec "mysql_config": No such file or directory at Makefile.PL line 174.
> readline() on closed filehandle PIPE at Makefile.PL line 176.
> Can't exec "mysql_config": No such file or directory at Makefile.PL line 174.
> readline() on closed filehandle PIPE at Makefile.PL line 176.
> Can't exec "mysql_config": No such file or directory at Makefile.PL line 174.
> readline() on closed filehandle PIPE at Makefile.PL line 176.
> Can't exec "mysql_config": No such file or directory at Makefile.PL line 174.
> readline() on closed filehandle PIPE at Makefile.PL line 176.
> I will use the following settings for compiling and testing:
>
> cflags (guessed) = -I/usr/local/mysql/include
> libs (guessed) = -L/usr/local/mysql/lib -lmysqlclient -lz -lgz
> nocatchstderr (default) = 0
> nofoundrows (default) = 0
> ssl (guessed) = 0
> testdb (default) = test
> testhost (default) =
> testpassword (default) =
> testuser (default) =
>
> To change these settings, see 'perl Makefile.PL --help' and
> 'perldoc INSTALL'.
>
> Checking if your kit is complete...
> Looks good
> Note (probably harmless): No library found for -lgz
> Using DBI 1.38 installed in /usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/auto/DBI
> Writing Makefile for DBD::mysql
>
>
> "make"
> ->
> cp lib/DBD/mysql/GetInfo.pm blib/lib/DBD/mysql/GetInfo.pm
> cp lib/DBD/mysql.pm blib/lib/DBD/mysql.pm
> cp lib/DBD/mysql/INSTALL.pod blib/lib/DBD/mysql/INSTALL.pod
> cp lib/Mysql.pm blib/lib/Mysql.pm
> cp lib/Mysql/Statement.pm blib/lib/Mysql/Statement.pm
> cp lib/Bundle/DBD/mysql.pm blib/lib/Bundle/DBD/mysql.pm
> gcc -c -I/usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/auto/DBI -I/usr/local/mysql/include -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"2.9003_1\" -DXS_VERSION=\"2.9003_1\" -fPIC "-I/usr/local/lib/perl5/5.8.0/sun4-solaris/CORE" dbdimp.c
> /usr/bin/perl -p -e "s/~DRIVER~/mysql/g" /usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/auto/DBI/D river.xst > mysql.xsi
> /usr/bin/perl /usr/local/lib/perl5/5.8.0/ExtUtils/xsubpp -typemap /usr/local/lib/perl5/5.8.0/ExtUtils/typemap mysql.xs > mysql.xsc && mv mysql.xsc mysql.c
> Warning: duplicate function definition 'do' detected in mysql.xs, line 193
> Warning: duplicate function definition 'rows' detected in mysql.xs, line 291
> gcc -c -I/usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/auto/DBI -I/usr/local/mysql/include -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"2.9003_1\" -DXS_VERSION=\"2.9003_1\" -fPIC "-I/usr/local/lib/perl5/5.8.0/sun4-solaris/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/local/mysql/lib:/usr/local/lib" /usr/bin/perl myld gcc -G -L/
> usr/local/lib dbdimp.o mysql.o -o blib/arch/auto/DBD/mysql/mysql.so -L/usr/local/mysql/lib -lmysqlclient -lz
> 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/Mysql.3
> Manifying blib/man3/DBD::mysql::INSTALL.3
> Manifying blib/man3/Bundle::DBD::mysql.3
>
>
> "make test"
> ->
> PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0,
> 'blib/lib', 'blib/arch')" t/*.t
> t/00base...........install_driver(mysql) failed: Can't load '/home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/ mysql.so' for module DBD::mysql: ld.so.1: /usr/bin/perl: fatal: relocation error: file /home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/m ysql.so: symbol net_buffer_length: referenced symbol not found at /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.
> at (eval 1) line 3
> Compilation failed in require at (eval 1) line 3.
> Perhaps a required shared library or dll isn't installed where expected
> at t/00base.t line 38
> t/00base...........dubious
> Test returned status 255 (wstat 65280, 0xff00)
> DIED. FAILED tests 4-5
> Failed 2/5 tests, 60.00% okay
> t/10dsnlist........install_driver(mysql) failed: Can't load '/home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/ mysql.so' for module DBD::mysql: ld.so.1: /usr/bin/perl: fatal: relocation error: file /home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/m ysql.so: symbol net_buffer_length: referenced symbol not found at /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.
> at (eval 1) line 3
> Compilation failed in require at (eval 1) line 3.
> Perhaps a required shared library or dll isn't installed where expected
> at t/10dsnlist.t line 45
> t/10dsnlist........dubious
> Test returned status 255 (wstat 65280, 0xff00)
> DIED. FAILED tests 1-9
> Failed 9/9 tests, 0.00% okay
> t/20createdrop.....install_driver(mysql) failed: Can't load '/home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/ mysql.so' for module DBD::mysql: ld.so.1: /usr/bin/perl: fatal: relocation error: file /home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/m ysql.so: symbol net_buffer_length: referenced symbol not found at /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.
> at (eval 1) line 3
> Compilation failed in require at (eval 1) line 3.
> Perhaps a required shared library or dll isn't installed where expected
> at t/20createdrop.t line 45
> t/20createdrop.....dubious
> Test returned status 255 (wstat 65280, 0xff00)
> DIED. FAILED tests 1-5
> Failed 5/5 tests, 0.00% okay
> t/30insertfetch....install_driver(mysql) failed: Can't load '/home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/ mysql.so' for module DBD::mysql: ld.so.1: /usr/bin/perl: fatal: relocation error: file /home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/m ysql.so: symbol net_buffer_length: referenced symbol not found at /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.
> at (eval 1) line 3
> Compilation failed in require at (eval 1) line 3.
> Perhaps a required shared library or dll isn't installed where expected
> at t/30insertfetch.t line 48
> t/30insertfetch....dubious
> Test returned status 255 (wstat 65280, 0xff00)
> DIED. FAILED tests 1-11
> Failed 11/11 tests, 0.00% okay
> t/40bindparam......install_driver(mysql) failed: Can't load '/home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/ mysql.so' for module DBD::mysql: ld.so.1: /usr/bin/perl: fatal: relocation error: file /home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/m ysql.so: symbol net_buffer_length: referenced symbol not found at /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.
> at (eval 3) line 3
> Compilation failed in require at (eval 3) line 3.
> Perhaps a required shared library or dll isn't installed where expected
> at t/40bindparam.t line 64
> t/40bindparam......dubious
> Test returned status 255 (wstat 65280, 0xff00)
> DIED. FAILED tests 1-28
> Failed 28/28 tests, 0.00% okay
> t/40blobs..........install_driver(mysql) failed: Can't load '/home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/ mysql.so' for module DBD::mysql: ld.so.1: /usr/bin/perl: fatal: relocation error: file /home/qms/down/DBD-mysql-2.9003_1
> /blib/arch/auto/DBD/mysql/mysql.so: symbol net_buffer_length: referenced symbol not found at /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.
> at (eval 1) line 3
> Compilation failed in require at (eval 1) line 3.
> Perhaps a required shared library or dll isn't installed where expected
> at t/40blobs.t line 68
> t/40blobs..........dubious
> Test returned status 255 (wstat 65280, 0xff00)
> DIED. FAILED tests 1-11
> Failed 11/11 tests, 0.00% okay
> t/40listfields.....install_driver(mysql) failed: Can't load '/home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/ mysql.so' for module DBD::mysql: ld.so.1: /usr/bin/perl: fatal: relocation error: file /home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/m ysql.so: symbol net_buffer_length: referenced symbol not found at /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.
> at (eval 1) line 3
> Compilation failed in require at (eval 1) line 3.
> Perhaps a required shared library or dll isn't installed where expected
> at t/40listfields.t line 57
> t/40listfields.....dubious
> Test returned status 255 (wstat 65280, 0xff00)
> DIED. FAILED tests 1-16
> Failed 16/16 tests, 0.00% okay
> t/40nulls..........install_driver(mysql) failed: Can't load '/home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/ mysql.so' for module DBD::mysql: ld.so.1: /usr/bin/perl: fatal: relocation error: file /home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/m ysql.so: symbol net_buffer_length: referenced symbol not found at /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.
> at (eval 1) line 3
> Compilation failed in require at (eval 1) line 3.
> Perhaps a required shared library or dll isn't installed where expected
> at t/40nulls.t line 50
> t/40nulls..........dubious
> Test returned status 255 (wstat 65280, 0xff00)
> DIED. FAILED tests 1-11
> Failed 11/11 tests, 0.00% okay
> t/40numrows........install_driver(mysql) failed: Can't load '/home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/ mysql.so' for module DBD::mysql: ld.so.1: /usr/bin/perl: fatal: relocation error: file /home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/m ysql.so: symbol net_buffer_length: referenced symbol not found at /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.
> at (eval 1) line 3
> Compilation failed in require at (eval 1) line 3.
> Perhaps a required shared library or dll isn't installed where expected
> at t/40numrows.t line 59
> t/40numrows........dubious
> Test returned status 255 (wstat 65280, 0xff00)
> DIED. FAILED tests 1-25
> Failed 25/25 tests, 0.00% okay
> t/50chopblanks.....install_driver(mysql) failed: Can't load '/home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/ mysql.so' for module DBD::mysql: ld.so.1: /usr/bin/perl: fatal: relocation error: file /home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/m ysql.so: symbol net_buffer_length: referenced symbol not found at /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.
> at (eval 1) line 3
> Compilation failed in require at (eval 1) line 3.
> Perhaps a required shared library or dll isn't installed where expected
> at t/50chopblanks.t line 57
> t/50chopblanks.....dubious
> Test returned status 255 (wstat 65280, 0xff00)
> DIED. FAILED tests 1-35
> Failed 35/35 tests, 0.00% okay
> t/50commit.........install_driver(mysql) failed: Can't load '/home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/ mysql.so' for module DBD::mysql: ld.so.1: /usr/bin/perl: fatal: relocation error: file /home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/m ysql.so: symbol net_buffer_length: referenced symbol not found at /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.
> at (eval 1) line 3
> Compilation failed in require at (eval 1) line 3.
> Perhaps a required shared library or dll isn't installed where expected
> at t/50commit.t line 64
> t/50commit.........dubious
> Test returned status 255 (wstat 65280, 0xff00)
> DIED. FAILED tests 1-30
> Failed 30/30 tests, 0.00% okay
> t/60leaks..........skipped
> all skipped: $ENV{SLOW_TESTS} is not set or Proc::ProcessTable not installed
> t/ak-dbd...........install_driver(mysql) failed: Can't load '/home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/ mysql.so' for module DBD::mysql: ld.so.1: /usr/bin/perl: fatal: relocation error: file /home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/m ysql.so: symbol net_buffer_length: referenced symbol not found at /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.
> at (eval 1) line 3
> Compilation failed in require at (eval 1) line 3.
> Perhaps a required shared library or dll isn't installed where expected
> at t/ak-dbd.t line 59
> t/ak-dbd...........dubious
> Test returned status 255 (wstat 65280, 0xff00)
> DIED. FAILED tests 1-90
> Failed 90/90 tests, 0.00% okay
> t/akmisc...........Had to create DBD::mysql::dr::imp_data_size unexpectedly at /usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/DBI.pm line 1057.
> Can't locate object method "connect" via package "Mysql" at /home/qms/down/DBD-m
> ysql-2.9003_1/blib/lib/Mysql.pm line 71.
> t/akmisc...........dubious
> Test returned status 255 (wstat 65280, 0xff00)
> DIED. FAILED tests 1-351
> Failed 351/351 tests, 0.00% okay
> t/dbdadmin.........install_driver(mysql) failed: Can't load '/home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/ mysql.so' for module DBD::mysql: ld.so.1: /usr/bin/perl: fatal: relocation error: file /home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/m ysql.so: symbol net_buffer_length: referenced symbol not found at /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.
> at (eval 1) line 3
> Compilation failed in require at (eval 1) line 3.
> Perhaps a required shared library or dll isn't installed where expected
> at t/dbdadmin.t line 74
> t/dbdadmin.........dubious
> Test returned status 255 (wstat 65280, 0xff00)
> DIED. FAILED tests 1-21
> Failed 21/21 tests, 0.00% okay
> t/insertid.........install_driver(mysql) failed: Can't load '/home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/ mysql.so' for module DBD::mysql: ld.so.1: /usr/bin/perl: fatal: relocation error: file /home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/m ysql.so: symbol net_buffer_length: referenced symbol not found at /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.
> at (eval 1) line 3
> Compilation failed in require at (eval 1) line 3.
> Perhaps a required shared library or dll isn't installed where expected
> at t/insertid.t line 13
> t/insertid.........dubious
> Test returned status 255 (wstat 65280, 0xff00)
> DIED. FAILED tests 1-12
> Failed 12/12 tests, 0.00% okay
> t/mysql............Can't load '/home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/ mysql.so' for module DBD::mysql: ld.so.1: /usr/bin/perl: fatal: relocation error: file /home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/m ysql.so: symbol net_buffer_length: referenced symbol not found at /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.
> at /home/qms/down/DBD-mysql-2.9003_1/blib/lib/Mysql.pm line 13
> Compilation failed in require at /home/qms/down/DBD-mysql-2.9003_1/blib/lib/Mysql.pm line 13.
> Compilation failed in require at t/mysql.t line 34.
> BEGIN failed--compilation aborted at t/mysql.t line 34.
> t/mysql............dubious
> Test returned status 255 (wstat 65280, 0xff00)
> DIED. FAILED tests 1-68
> Failed 68/68 tests, 0.00% okay
> t/mysql2...........Had to create DBD::mysql::dr::imp_data_size unexpectedly at /usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/DBI.pm line 1057.
> Use of uninitialized value in subroutine entry at /usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/DBI.pm line 1057.
> Can't locate object method "connect" via package "Mysql" at /home/qms/down/DBD-mysql-2.9003_1/blib/lib/Mysql.pm line 71.
> t/mysql2...........dubious
> Test returned status 255 (wstat 65280, 0xff00)
> Failed Test Stat Wstat Total Fail Failed List of Failed
> ------------------------------------------------------------ -------------------
> t/00base.t 255 65280 5 2 40.00% 4-5
> t/10dsnlist.t 255 65280 9 9 100.00% 1-9
> t/20createdrop.t 255 65280 5 5 100.00% 1-5
> t/30insertfetch.t 255 65280 11 11 100.00% 1-11
> t/40bindparam.t 255 65280 28 28 100.00% 1-28
> t/40blobs.t 255 65280 11 11 100.00% 1-11
> t/40listfields.t 255 65280 16 16 100.00% 1-16
> t/40nulls.t 255 65280 11 11 100.00% 1-11
> t/40numrows.t 255 65280 25 25 100.00% 1-25
> t/50chopblanks.t 255 65280 35 35 100.00% 1-35
> t/50commit.t 255 65280 30 30 100.00% 1-30
> t/ak-dbd.t 255 65280 90 90 100.00% 1-90
> t/akmisc.t 255 65280 351 351 100.00% 1-351
> t/dbdadmin.t 255 65280 21 21 100.00% 1-21
> t/insertid.t 255 65280 12 12 100.00% 1-12
> t/mysql.t 255 65280 68 68 100.00% 1-68
> t/mysql2.t 255 65280 ?? ?? % ??
> 1 test skipped.
> Failed 17/18 test scripts, 5.56% okay. 725/728 subtests failed, 0.41% okay.
> make: *** [test_dynamic] Error 2
>
>
> ----- Original Message -----
> From: "Jochen Wiedmann"
> To: "ÇѼ÷°æ"
> Sent: Monday, September 22, 2003 3:58 PM
> Subject: Re: Problem about DBD
>
>
>
>>A complete log of "perl Makefile.PL", "make", and "make test" is required.
>>
>>
>>ÇѼ÷°æ wrote:
>>
>>
>>>Hello~
>>>
>>>the situation is the following: I compiled Perl 5.8.0,
>>>mysql 4.0.15, DBI 1.38, and DBD-2.9003_1.
>>>And I'm using Solaris 8 (SUN_OS 5.8).
>>>
>>>Evething was ok, except DBD, that fails on the 'make
>>>test' step.
>>>
>>>Then, I made a simple script in perl to show the
>>>drives and connect with the database by DBI:mysql. And
>>>the message I received was:
>>>
>>>install_driver(mysql) failed: Can't load '/home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/ mysql.so' for module DBD::mysql: ld.so.1: /usr/bin/perl: fatal: relocation error: file /home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/m ysql.so: symbol net_buffer_length: referenced symbol not found at /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.
>>>
>>>Can someone help me finding whereis the error ??
>>>please help me~
>>>
>>>Many thanks
>>>----- Original Message -----
>>>From: "Jochen Wiedmann"
>>>To: "ÇѼ÷°æ"
>>>Cc:
>>>Sent: Monday, September 22, 2003 2:03 PM
>>>Subject: Re: Problem about DBD
>>>
>>>
>>>
>>>
>>>>ÇѼ÷°æ wrote:
>>>>
>>>>
>>>>
>>>>>install_driver(mysql) failed: Can't load '/home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/ mysql.so' for module DBD::mysql: ld.so.1: /usr/bin/perl: fatal: relocation error: file /home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/m ysql.so: symbol net_buffer_length: referenced symbol not found at /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.
>>>>
>>>>Get yourself the latest version of the driver (2.9003_1, from the directory
>>>>authors/R/RU/RUDY) and retry with that. Most probably you will get a
>>>>meaningful error message using this version.
>>>>
>>>>
>>>>Jochen
>>>>
>>



--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/perl?unsub=gcdmp-msql-mysql-modules@m .gmane.org

Re: Problem about DBD

am 22.09.2003 09:51:16 von Jochen Wiedmann

What are the contents of /usr/local/mysql/lib?


ÇѼ÷°æ wrote:

> "perl Makefile.PL"
> ->
> rm -rf mysql.c *.xsi ./blib Makefile.aperl blib/arch/auto/DBD/mysql/extralibs.all perlmain.c tmon.out mon.out so_locations pm_to_blib *.o *.a perl.exe perl perl mysql.bs mysql.bso mysql.def libmysql.def mysql.exp mysql.x core core.*perl.*.? *perl.core
> mv Makefile Makefile.old > /dev/null 2>&1
> [slaweb:/home/qms/down/DBD-mysql-2.9003_1] perl Makefile.PL
> Can't exec "mysql_config": No such file or directory at Makefile.PL line 174.
> readline() on closed filehandle PIPE at Makefile.PL line 176.
> Can't exec "mysql_config": No such file or directory at Makefile.PL line 174.
> readline() on closed filehandle PIPE at Makefile.PL line 176.
> Can't exec "mysql_config": No such file or directory at Makefile.PL line 174.
> readline() on closed filehandle PIPE at Makefile.PL line 176.
> Can't exec "mysql_config": No such file or directory at Makefile.PL line 174.
> readline() on closed filehandle PIPE at Makefile.PL line 176.
> Can't exec "mysql_config": No such file or directory at Makefile.PL line 174.
> readline() on closed filehandle PIPE at Makefile.PL line 176.
> Can't exec "mysql_config": No such file or directory at Makefile.PL line 174.
> readline() on closed filehandle PIPE at Makefile.PL line 176.
> Can't exec "mysql_config": No such file or directory at Makefile.PL line 174.
> readline() on closed filehandle PIPE at Makefile.PL line 176.
> Can't exec "mysql_config": No such file or directory at Makefile.PL line 174.
> readline() on closed filehandle PIPE at Makefile.PL line 176.
> Can't exec "mysql_config": No such file or directory at Makefile.PL line 174.
> readline() on closed filehandle PIPE at Makefile.PL line 176.
> I will use the following settings for compiling and testing:
>
> cflags (guessed) = -I/usr/local/mysql/include
> libs (guessed) = -L/usr/local/mysql/lib -lmysqlclient -lz -lgz
> nocatchstderr (default) = 0
> nofoundrows (default) = 0
> ssl (guessed) = 0
> testdb (default) = test
> testhost (default) =
> testpassword (default) =
> testuser (default) =
>
> To change these settings, see 'perl Makefile.PL --help' and
> 'perldoc INSTALL'.
>
> Checking if your kit is complete...
> Looks good
> Note (probably harmless): No library found for -lgz
> Using DBI 1.38 installed in /usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/auto/DBI
> Writing Makefile for DBD::mysql
>
>
> "make"
> ->
> cp lib/DBD/mysql/GetInfo.pm blib/lib/DBD/mysql/GetInfo.pm
> cp lib/DBD/mysql.pm blib/lib/DBD/mysql.pm
> cp lib/DBD/mysql/INSTALL.pod blib/lib/DBD/mysql/INSTALL.pod
> cp lib/Mysql.pm blib/lib/Mysql.pm
> cp lib/Mysql/Statement.pm blib/lib/Mysql/Statement.pm
> cp lib/Bundle/DBD/mysql.pm blib/lib/Bundle/DBD/mysql.pm
> gcc -c -I/usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/auto/DBI -I/usr/local/mysql/include -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"2.9003_1\" -DXS_VERSION=\"2.9003_1\" -fPIC "-I/usr/local/lib/perl5/5.8.0/sun4-solaris/CORE" dbdimp.c
> /usr/bin/perl -p -e "s/~DRIVER~/mysql/g" /usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/auto/DBI/D river.xst > mysql.xsi
> /usr/bin/perl /usr/local/lib/perl5/5.8.0/ExtUtils/xsubpp -typemap /usr/local/lib/perl5/5.8.0/ExtUtils/typemap mysql.xs > mysql.xsc && mv mysql.xsc mysql.c
> Warning: duplicate function definition 'do' detected in mysql.xs, line 193
> Warning: duplicate function definition 'rows' detected in mysql.xs, line 291
> gcc -c -I/usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/auto/DBI -I/usr/local/mysql/include -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"2.9003_1\" -DXS_VERSION=\"2.9003_1\" -fPIC "-I/usr/local/lib/perl5/5.8.0/sun4-solaris/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/local/mysql/lib:/usr/local/lib" /usr/bin/perl myld gcc -G -L/
> usr/local/lib dbdimp.o mysql.o -o blib/arch/auto/DBD/mysql/mysql.so -L/usr/local/mysql/lib -lmysqlclient -lz
> 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/Mysql.3
> Manifying blib/man3/DBD::mysql::INSTALL.3
> Manifying blib/man3/Bundle::DBD::mysql.3
>
>
> "make test"
> ->
> PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0,
> 'blib/lib', 'blib/arch')" t/*.t
> t/00base...........install_driver(mysql) failed: Can't load '/home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/ mysql.so' for module DBD::mysql: ld.so.1: /usr/bin/perl: fatal: relocation error: file /home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/m ysql.so: symbol net_buffer_length: referenced symbol not found at /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.
> at (eval 1) line 3
> Compilation failed in require at (eval 1) line 3.
> Perhaps a required shared library or dll isn't installed where expected
> at t/00base.t line 38
> t/00base...........dubious
> Test returned status 255 (wstat 65280, 0xff00)
> DIED. FAILED tests 4-5
> Failed 2/5 tests, 60.00% okay
> t/10dsnlist........install_driver(mysql) failed: Can't load '/home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/ mysql.so' for module DBD::mysql: ld.so.1: /usr/bin/perl: fatal: relocation error: file /home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/m ysql.so: symbol net_buffer_length: referenced symbol not found at /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.
> at (eval 1) line 3
> Compilation failed in require at (eval 1) line 3.
> Perhaps a required shared library or dll isn't installed where expected
> at t/10dsnlist.t line 45
> t/10dsnlist........dubious
> Test returned status 255 (wstat 65280, 0xff00)
> DIED. FAILED tests 1-9
> Failed 9/9 tests, 0.00% okay
> t/20createdrop.....install_driver(mysql) failed: Can't load '/home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/ mysql.so' for module DBD::mysql: ld.so.1: /usr/bin/perl: fatal: relocation error: file /home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/m ysql.so: symbol net_buffer_length: referenced symbol not found at /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.
> at (eval 1) line 3
> Compilation failed in require at (eval 1) line 3.
> Perhaps a required shared library or dll isn't installed where expected
> at t/20createdrop.t line 45
> t/20createdrop.....dubious
> Test returned status 255 (wstat 65280, 0xff00)
> DIED. FAILED tests 1-5
> Failed 5/5 tests, 0.00% okay
> t/30insertfetch....install_driver(mysql) failed: Can't load '/home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/ mysql.so' for module DBD::mysql: ld.so.1: /usr/bin/perl: fatal: relocation error: file /home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/m ysql.so: symbol net_buffer_length: referenced symbol not found at /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.
> at (eval 1) line 3
> Compilation failed in require at (eval 1) line 3.
> Perhaps a required shared library or dll isn't installed where expected
> at t/30insertfetch.t line 48
> t/30insertfetch....dubious
> Test returned status 255 (wstat 65280, 0xff00)
> DIED. FAILED tests 1-11
> Failed 11/11 tests, 0.00% okay
> t/40bindparam......install_driver(mysql) failed: Can't load '/home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/ mysql.so' for module DBD::mysql: ld.so.1: /usr/bin/perl: fatal: relocation error: file /home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/m ysql.so: symbol net_buffer_length: referenced symbol not found at /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.
> at (eval 3) line 3
> Compilation failed in require at (eval 3) line 3.
> Perhaps a required shared library or dll isn't installed where expected
> at t/40bindparam.t line 64
> t/40bindparam......dubious
> Test returned status 255 (wstat 65280, 0xff00)
> DIED. FAILED tests 1-28
> Failed 28/28 tests, 0.00% okay
> t/40blobs..........install_driver(mysql) failed: Can't load '/home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/ mysql.so' for module DBD::mysql: ld.so.1: /usr/bin/perl: fatal: relocation error: file /home/qms/down/DBD-mysql-2.9003_1
> /blib/arch/auto/DBD/mysql/mysql.so: symbol net_buffer_length: referenced symbol not found at /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.
> at (eval 1) line 3
> Compilation failed in require at (eval 1) line 3.
> Perhaps a required shared library or dll isn't installed where expected
> at t/40blobs.t line 68
> t/40blobs..........dubious
> Test returned status 255 (wstat 65280, 0xff00)
> DIED. FAILED tests 1-11
> Failed 11/11 tests, 0.00% okay
> t/40listfields.....install_driver(mysql) failed: Can't load '/home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/ mysql.so' for module DBD::mysql: ld.so.1: /usr/bin/perl: fatal: relocation error: file /home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/m ysql.so: symbol net_buffer_length: referenced symbol not found at /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.
> at (eval 1) line 3
> Compilation failed in require at (eval 1) line 3.
> Perhaps a required shared library or dll isn't installed where expected
> at t/40listfields.t line 57
> t/40listfields.....dubious
> Test returned status 255 (wstat 65280, 0xff00)
> DIED. FAILED tests 1-16
> Failed 16/16 tests, 0.00% okay
> t/40nulls..........install_driver(mysql) failed: Can't load '/home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/ mysql.so' for module DBD::mysql: ld.so.1: /usr/bin/perl: fatal: relocation error: file /home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/m ysql.so: symbol net_buffer_length: referenced symbol not found at /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.
> at (eval 1) line 3
> Compilation failed in require at (eval 1) line 3.
> Perhaps a required shared library or dll isn't installed where expected
> at t/40nulls.t line 50
> t/40nulls..........dubious
> Test returned status 255 (wstat 65280, 0xff00)
> DIED. FAILED tests 1-11
> Failed 11/11 tests, 0.00% okay
> t/40numrows........install_driver(mysql) failed: Can't load '/home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/ mysql.so' for module DBD::mysql: ld.so.1: /usr/bin/perl: fatal: relocation error: file /home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/m ysql.so: symbol net_buffer_length: referenced symbol not found at /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.
> at (eval 1) line 3
> Compilation failed in require at (eval 1) line 3.
> Perhaps a required shared library or dll isn't installed where expected
> at t/40numrows.t line 59
> t/40numrows........dubious
> Test returned status 255 (wstat 65280, 0xff00)
> DIED. FAILED tests 1-25
> Failed 25/25 tests, 0.00% okay
> t/50chopblanks.....install_driver(mysql) failed: Can't load '/home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/ mysql.so' for module DBD::mysql: ld.so.1: /usr/bin/perl: fatal: relocation error: file /home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/m ysql.so: symbol net_buffer_length: referenced symbol not found at /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.
> at (eval 1) line 3
> Compilation failed in require at (eval 1) line 3.
> Perhaps a required shared library or dll isn't installed where expected
> at t/50chopblanks.t line 57
> t/50chopblanks.....dubious
> Test returned status 255 (wstat 65280, 0xff00)
> DIED. FAILED tests 1-35
> Failed 35/35 tests, 0.00% okay
> t/50commit.........install_driver(mysql) failed: Can't load '/home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/ mysql.so' for module DBD::mysql: ld.so.1: /usr/bin/perl: fatal: relocation error: file /home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/m ysql.so: symbol net_buffer_length: referenced symbol not found at /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.
> at (eval 1) line 3
> Compilation failed in require at (eval 1) line 3.
> Perhaps a required shared library or dll isn't installed where expected
> at t/50commit.t line 64
> t/50commit.........dubious
> Test returned status 255 (wstat 65280, 0xff00)
> DIED. FAILED tests 1-30
> Failed 30/30 tests, 0.00% okay
> t/60leaks..........skipped
> all skipped: $ENV{SLOW_TESTS} is not set or Proc::ProcessTable not installed
> t/ak-dbd...........install_driver(mysql) failed: Can't load '/home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/ mysql.so' for module DBD::mysql: ld.so.1: /usr/bin/perl: fatal: relocation error: file /home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/m ysql.so: symbol net_buffer_length: referenced symbol not found at /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.
> at (eval 1) line 3
> Compilation failed in require at (eval 1) line 3.
> Perhaps a required shared library or dll isn't installed where expected
> at t/ak-dbd.t line 59
> t/ak-dbd...........dubious
> Test returned status 255 (wstat 65280, 0xff00)
> DIED. FAILED tests 1-90
> Failed 90/90 tests, 0.00% okay
> t/akmisc...........Had to create DBD::mysql::dr::imp_data_size unexpectedly at /usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/DBI.pm line 1057.
> Can't locate object method "connect" via package "Mysql" at /home/qms/down/DBD-m
> ysql-2.9003_1/blib/lib/Mysql.pm line 71.
> t/akmisc...........dubious
> Test returned status 255 (wstat 65280, 0xff00)
> DIED. FAILED tests 1-351
> Failed 351/351 tests, 0.00% okay
> t/dbdadmin.........install_driver(mysql) failed: Can't load '/home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/ mysql.so' for module DBD::mysql: ld.so.1: /usr/bin/perl: fatal: relocation error: file /home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/m ysql.so: symbol net_buffer_length: referenced symbol not found at /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.
> at (eval 1) line 3
> Compilation failed in require at (eval 1) line 3.
> Perhaps a required shared library or dll isn't installed where expected
> at t/dbdadmin.t line 74
> t/dbdadmin.........dubious
> Test returned status 255 (wstat 65280, 0xff00)
> DIED. FAILED tests 1-21
> Failed 21/21 tests, 0.00% okay
> t/insertid.........install_driver(mysql) failed: Can't load '/home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/ mysql.so' for module DBD::mysql: ld.so.1: /usr/bin/perl: fatal: relocation error: file /home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/m ysql.so: symbol net_buffer_length: referenced symbol not found at /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.
> at (eval 1) line 3
> Compilation failed in require at (eval 1) line 3.
> Perhaps a required shared library or dll isn't installed where expected
> at t/insertid.t line 13
> t/insertid.........dubious
> Test returned status 255 (wstat 65280, 0xff00)
> DIED. FAILED tests 1-12
> Failed 12/12 tests, 0.00% okay
> t/mysql............Can't load '/home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/ mysql.so' for module DBD::mysql: ld.so.1: /usr/bin/perl: fatal: relocation error: file /home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/m ysql.so: symbol net_buffer_length: referenced symbol not found at /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.
> at /home/qms/down/DBD-mysql-2.9003_1/blib/lib/Mysql.pm line 13
> Compilation failed in require at /home/qms/down/DBD-mysql-2.9003_1/blib/lib/Mysql.pm line 13.
> Compilation failed in require at t/mysql.t line 34.
> BEGIN failed--compilation aborted at t/mysql.t line 34.
> t/mysql............dubious
> Test returned status 255 (wstat 65280, 0xff00)
> DIED. FAILED tests 1-68
> Failed 68/68 tests, 0.00% okay
> t/mysql2...........Had to create DBD::mysql::dr::imp_data_size unexpectedly at /usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/DBI.pm line 1057.
> Use of uninitialized value in subroutine entry at /usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/DBI.pm line 1057.
> Can't locate object method "connect" via package "Mysql" at /home/qms/down/DBD-mysql-2.9003_1/blib/lib/Mysql.pm line 71.
> t/mysql2...........dubious
> Test returned status 255 (wstat 65280, 0xff00)
> Failed Test Stat Wstat Total Fail Failed List of Failed
> ------------------------------------------------------------ -------------------
> t/00base.t 255 65280 5 2 40.00% 4-5
> t/10dsnlist.t 255 65280 9 9 100.00% 1-9
> t/20createdrop.t 255 65280 5 5 100.00% 1-5
> t/30insertfetch.t 255 65280 11 11 100.00% 1-11
> t/40bindparam.t 255 65280 28 28 100.00% 1-28
> t/40blobs.t 255 65280 11 11 100.00% 1-11
> t/40listfields.t 255 65280 16 16 100.00% 1-16
> t/40nulls.t 255 65280 11 11 100.00% 1-11
> t/40numrows.t 255 65280 25 25 100.00% 1-25
> t/50chopblanks.t 255 65280 35 35 100.00% 1-35
> t/50commit.t 255 65280 30 30 100.00% 1-30
> t/ak-dbd.t 255 65280 90 90 100.00% 1-90
> t/akmisc.t 255 65280 351 351 100.00% 1-351
> t/dbdadmin.t 255 65280 21 21 100.00% 1-21
> t/insertid.t 255 65280 12 12 100.00% 1-12
> t/mysql.t 255 65280 68 68 100.00% 1-68
> t/mysql2.t 255 65280 ?? ?? % ??
> 1 test skipped.
> Failed 17/18 test scripts, 5.56% okay. 725/728 subtests failed, 0.41% okay.
> make: *** [test_dynamic] Error 2
>
>
> ----- Original Message -----
> From: "Jochen Wiedmann"
> To: "ÇѼ÷°æ"
> Sent: Monday, September 22, 2003 3:58 PM
> Subject: Re: Problem about DBD
>
>
>
>>A complete log of "perl Makefile.PL", "make", and "make test" is required.
>>
>>
>>ÇѼ÷°æ wrote:
>>
>>
>>>Hello~
>>>
>>>the situation is the following: I compiled Perl 5.8.0,
>>>mysql 4.0.15, DBI 1.38, and DBD-2.9003_1.
>>>And I'm using Solaris 8 (SUN_OS 5.8).
>>>
>>>Evething was ok, except DBD, that fails on the 'make
>>>test' step.
>>>
>>>Then, I made a simple script in perl to show the
>>>drives and connect with the database by DBI:mysql. And
>>>the message I received was:
>>>
>>>install_driver(mysql) failed: Can't load '/home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/ mysql.so' for module DBD::mysql: ld.so.1: /usr/bin/perl: fatal: relocation error: file /home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/m ysql.so: symbol net_buffer_length: referenced symbol not found at /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.
>>>
>>>Can someone help me finding whereis the error ??
>>>please help me~
>>>
>>>Many thanks
>>>----- Original Message -----
>>>From: "Jochen Wiedmann"
>>>To: "ÇѼ÷°æ"
>>>Cc:
>>>Sent: Monday, September 22, 2003 2:03 PM
>>>Subject: Re: Problem about DBD
>>>
>>>
>>>
>>>
>>>>ÇѼ÷°æ wrote:
>>>>
>>>>
>>>>
>>>>>install_driver(mysql) failed: Can't load '/home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/ mysql.so' for module DBD::mysql: ld.so.1: /usr/bin/perl: fatal: relocation error: file /home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/m ysql.so: symbol net_buffer_length: referenced symbol not found at /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.
>>>>
>>>>Get yourself the latest version of the driver (2.9003_1, from the directory
>>>>authors/R/RU/RUDY) and retry with that. Most probably you will get a
>>>>meaningful error message using this version.
>>>>
>>>>
>>>>Jochen
>>>>
>>



--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/perl?unsub=gcdmp-msql-mysql-modules@m .gmane.org

Re: Problem about DBD

am 22.09.2003 10:10:14 von Jochen Wiedmann

Looks excellent. :-(

Please add the --nocatchstderr flag to "perl Makefile.PL". Rerun "perl
Makefile.PL", "make", and "make test", and send the full output again.

Jochen


ÇѼ÷°æ wrote:

> drwxr-xr-x 2 mysql mysql 512 Sep 6 18:05 ./
> drwxr-xr-x 13 mysql mysql 512 Sep 22 12:23 ../
> -rw-r--r-- 1 mysql mysql 29856 Sep 6 16:37 libdbug.a
> -rw-r--r-- 1 mysql mysql 723648 Jun 19 20:57 libmygcc.a
> -rw-r--r-- 1 mysql mysql 446188 Sep 6 16:34 libmysqlclient.a
> -rw-r--r-- 1 mysql mysql 457004 Sep 6 16:28 libmysqlclient_r.a
> -rw-r--r-- 1 mysql mysql 10156828 Sep 6 18:04 libmysqld.a
> -rw-r--r-- 1 mysql mysql 136140 Sep 6 16:37 libmystrings.a
> -rw-r--r-- 1 mysql mysql 357560 Sep 6 16:39 libmysys.a
>
> ----- Original Message -----
> From: "Jochen Wiedmann"
> To: "ÇѼ÷°æ"
> Cc:
> Sent: Monday, September 22, 2003 4:51 PM
> Subject: Re: Problem about DBD
>
>
>
>>What are the contents of /usr/local/mysql/lib?
>>
>>
>>ÇѼ÷°æ wrote:
>>
>>
>>>"perl Makefile.PL"
>>>->
>>>rm -rf mysql.c *.xsi ./blib Makefile.aperl blib/arch/auto/DBD/mysql/extralibs.all perlmain.c tmon.out mon.out so_locations pm_to_blib *.o *.a perl.exe perl perl mysql.bs mysql.bso mysql.def libmysql.def mysql.exp mysql.x core core.*perl.*.? *perl.core
>>>mv Makefile Makefile.old > /dev/null 2>&1
>>>[slaweb:/home/qms/down/DBD-mysql-2.9003_1] perl Makefile.PL
>>>Can't exec "mysql_config": No such file or directory at Makefile.PL line 174.
>>>readline() on closed filehandle PIPE at Makefile.PL line 176.
>>>Can't exec "mysql_config": No such file or directory at Makefile.PL line 174.
>>>readline() on closed filehandle PIPE at Makefile.PL line 176.
>>>Can't exec "mysql_config": No such file or directory at Makefile.PL line 174.
>>>readline() on closed filehandle PIPE at Makefile.PL line 176.
>>>Can't exec "mysql_config": No such file or directory at Makefile.PL line 174.
>>>readline() on closed filehandle PIPE at Makefile.PL line 176.
>>>Can't exec "mysql_config": No such file or directory at Makefile.PL line 174.
>>>readline() on closed filehandle PIPE at Makefile.PL line 176.
>>>Can't exec "mysql_config": No such file or directory at Makefile.PL line 174.
>>>readline() on closed filehandle PIPE at Makefile.PL line 176.
>>>Can't exec "mysql_config": No such file or directory at Makefile.PL line 174.
>>>readline() on closed filehandle PIPE at Makefile.PL line 176.
>>>Can't exec "mysql_config": No such file or directory at Makefile.PL line 174.
>>>readline() on closed filehandle PIPE at Makefile.PL line 176.
>>>Can't exec "mysql_config": No such file or directory at Makefile.PL line 174.
>>>readline() on closed filehandle PIPE at Makefile.PL line 176.
>>>I will use the following settings for compiling and testing:
>>>
>>> cflags (guessed) = -I/usr/local/mysql/include
>>> libs (guessed) = -L/usr/local/mysql/lib -lmysqlclient -lz -lgz
>>> nocatchstderr (default) = 0
>>> nofoundrows (default) = 0
>>> ssl (guessed) = 0
>>> testdb (default) = test
>>> testhost (default) =
>>> testpassword (default) =
>>> testuser (default) =
>>>
>>>To change these settings, see 'perl Makefile.PL --help' and
>>>'perldoc INSTALL'.
>>>
>>>Checking if your kit is complete...
>>>Looks good
>>>Note (probably harmless): No library found for -lgz
>>>Using DBI 1.38 installed in /usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/auto/DBI
>>>Writing Makefile for DBD::mysql
>>>
>>>
>>>"make"
>>>->
>>>cp lib/DBD/mysql/GetInfo.pm blib/lib/DBD/mysql/GetInfo.pm
>>>cp lib/DBD/mysql.pm blib/lib/DBD/mysql.pm
>>>cp lib/DBD/mysql/INSTALL.pod blib/lib/DBD/mysql/INSTALL.pod
>>>cp lib/Mysql.pm blib/lib/Mysql.pm
>>>cp lib/Mysql/Statement.pm blib/lib/Mysql/Statement.pm
>>>cp lib/Bundle/DBD/mysql.pm blib/lib/Bundle/DBD/mysql.pm
>>>gcc -c -I/usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/auto/DBI -I/usr/local/mysql/include -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"2.9003_1\" -DXS_VERSION=\"2.9003_1\" -fPIC "-I/usr/local/lib/perl5/5.8.0/sun4-solaris/CORE" dbdimp.c
>>>/usr/bin/perl -p -e "s/~DRIVER~/mysql/g" /usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/auto/DBI/D river.xst > mysql.xsi
>>>/usr/bin/perl /usr/local/lib/perl5/5.8.0/ExtUtils/xsubpp -typemap /usr/local/lib/perl5/5.8.0/ExtUtils/typemap mysql.xs > mysql.xsc && mv mysql.xsc mysql.c
>>>Warning: duplicate function definition 'do' detected in mysql.xs, line 193
>>>Warning: duplicate function definition 'rows' detected in mysql.xs, line 291
>>>gcc -c -I/usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/auto/DBI -I/usr/local/mysql/include -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"2.9003_1\" -DXS_VERSION=\"2.9003_1\" -fPIC "-I/usr/local/lib/perl5/5.8.0/sun4-solaris/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/local/mysql/lib:/usr/local/lib" /usr/bin/perl myld gcc -G -L/
>>>usr/local/lib dbdimp.o mysql.o -o blib/arch/auto/DBD/mysql/mysql.so -L/usr/local/mysql/lib -lmysqlclient -lz
>>>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/Mysql.3
>>>Manifying blib/man3/DBD::mysql::INSTALL.3
>>>Manifying blib/man3/Bundle::DBD::mysql.3
>>>
>>>
>>>"make test"
>>>->
>>>PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0,
>>>'blib/lib', 'blib/arch')" t/*.t
>>>t/00base...........install_driver(mysql) failed: Can't load '/home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/ mysql.so' for module DBD::mysql: ld.so.1: /usr/bin/perl: fatal: relocation error: file /home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/m ysql.so: symbol net_buffer_length: referenced symbol not found at /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.
>>> at (eval 1) line 3
>>>Compilation failed in require at (eval 1) line 3.
>>>Perhaps a required shared library or dll isn't installed where expected
>>> at t/00base.t line 38
>>>t/00base...........dubious
>>> Test returned status 255 (wstat 65280, 0xff00)
>>>DIED. FAILED tests 4-5
>>> Failed 2/5 tests, 60.00% okay
>>>t/10dsnlist........install_driver(mysql) failed: Can't load '/home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/ mysql.so' for module DBD::mysql: ld.so.1: /usr/bin/perl: fatal: relocation error: file /home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/m ysql.so: symbol net_buffer_length: referenced symbol not found at /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.
>>> at (eval 1) line 3
>>>Compilation failed in require at (eval 1) line 3.
>>>Perhaps a required shared library or dll isn't installed where expected
>>> at t/10dsnlist.t line 45
>>>t/10dsnlist........dubious
>>> Test returned status 255 (wstat 65280, 0xff00)
>>>DIED. FAILED tests 1-9
>>> Failed 9/9 tests, 0.00% okay
>>>t/20createdrop.....install_driver(mysql) failed: Can't load '/home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/ mysql.so' for module DBD::mysql: ld.so.1: /usr/bin/perl: fatal: relocation error: file /home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/m ysql.so: symbol net_buffer_length: referenced symbol not found at /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.
>>> at (eval 1) line 3
>>>Compilation failed in require at (eval 1) line 3.
>>>Perhaps a required shared library or dll isn't installed where expected
>>> at t/20createdrop.t line 45
>>>t/20createdrop.....dubious
>>> Test returned status 255 (wstat 65280, 0xff00)
>>>DIED. FAILED tests 1-5
>>> Failed 5/5 tests, 0.00% okay
>>>t/30insertfetch....install_driver(mysql) failed: Can't load '/home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/ mysql.so' for module DBD::mysql: ld.so.1: /usr/bin/perl: fatal: relocation error: file /home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/m ysql.so: symbol net_buffer_length: referenced symbol not found at /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.
>>> at (eval 1) line 3
>>>Compilation failed in require at (eval 1) line 3.
>>>Perhaps a required shared library or dll isn't installed where expected
>>> at t/30insertfetch.t line 48
>>>t/30insertfetch....dubious
>>> Test returned status 255 (wstat 65280, 0xff00)
>>>DIED. FAILED tests 1-11
>>> Failed 11/11 tests, 0.00% okay
>>>t/40bindparam......install_driver(mysql) failed: Can't load '/home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/ mysql.so' for module DBD::mysql: ld.so.1: /usr/bin/perl: fatal: relocation error: file /home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/m ysql.so: symbol net_buffer_length: referenced symbol not found at /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.
>>> at (eval 3) line 3
>>>Compilation failed in require at (eval 3) line 3.
>>>Perhaps a required shared library or dll isn't installed where expected
>>> at t/40bindparam.t line 64
>>>t/40bindparam......dubious
>>> Test returned status 255 (wstat 65280, 0xff00)
>>>DIED. FAILED tests 1-28
>>> Failed 28/28 tests, 0.00% okay
>>>t/40blobs..........install_driver(mysql) failed: Can't load '/home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/ mysql.so' for module DBD::mysql: ld.so.1: /usr/bin/perl: fatal: relocation error: file /home/qms/down/DBD-mysql-2.9003_1
>>>/blib/arch/auto/DBD/mysql/mysql.so: symbol net_buffer_length: referenced symbol not found at /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.
>>> at (eval 1) line 3
>>>Compilation failed in require at (eval 1) line 3.
>>>Perhaps a required shared library or dll isn't installed where expected
>>> at t/40blobs.t line 68
>>>t/40blobs..........dubious
>>> Test returned status 255 (wstat 65280, 0xff00)
>>>DIED. FAILED tests 1-11
>>> Failed 11/11 tests, 0.00% okay
>>>t/40listfields.....install_driver(mysql) failed: Can't load '/home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/ mysql.so' for module DBD::mysql: ld.so.1: /usr/bin/perl: fatal: relocation error: file /home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/m ysql.so: symbol net_buffer_length: referenced symbol not found at /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.
>>> at (eval 1) line 3
>>>Compilation failed in require at (eval 1) line 3.
>>>Perhaps a required shared library or dll isn't installed where expected
>>> at t/40listfields.t line 57
>>>t/40listfields.....dubious
>>> Test returned status 255 (wstat 65280, 0xff00)
>>>DIED. FAILED tests 1-16
>>> Failed 16/16 tests, 0.00% okay
>>>t/40nulls..........install_driver(mysql) failed: Can't load '/home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/ mysql.so' for module DBD::mysql: ld.so.1: /usr/bin/perl: fatal: relocation error: file /home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/m ysql.so: symbol net_buffer_length: referenced symbol not found at /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.
>>> at (eval 1) line 3
>>>Compilation failed in require at (eval 1) line 3.
>>>Perhaps a required shared library or dll isn't installed where expected
>>> at t/40nulls.t line 50
>>>t/40nulls..........dubious
>>> Test returned status 255 (wstat 65280, 0xff00)
>>>DIED. FAILED tests 1-11
>>> Failed 11/11 tests, 0.00% okay
>>>t/40numrows........install_driver(mysql) failed: Can't load '/home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/ mysql.so' for module DBD::mysql: ld.so.1: /usr/bin/perl: fatal: relocation error: file /home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/m ysql.so: symbol net_buffer_length: referenced symbol not found at /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.
>>> at (eval 1) line 3
>>>Compilation failed in require at (eval 1) line 3.
>>>Perhaps a required shared library or dll isn't installed where expected
>>> at t/40numrows.t line 59
>>>t/40numrows........dubious
>>> Test returned status 255 (wstat 65280, 0xff00)
>>>DIED. FAILED tests 1-25
>>> Failed 25/25 tests, 0.00% okay
>>>t/50chopblanks.....install_driver(mysql) failed: Can't load '/home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/ mysql.so' for module DBD::mysql: ld.so.1: /usr/bin/perl: fatal: relocation error: file /home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/m ysql.so: symbol net_buffer_length: referenced symbol not found at /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.
>>> at (eval 1) line 3
>>>Compilation failed in require at (eval 1) line 3.
>>>Perhaps a required shared library or dll isn't installed where expected
>>> at t/50chopblanks.t line 57
>>>t/50chopblanks.....dubious
>>> Test returned status 255 (wstat 65280, 0xff00)
>>>DIED. FAILED tests 1-35
>>> Failed 35/35 tests, 0.00% okay
>>>t/50commit.........install_driver(mysql) failed: Can't load '/home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/ mysql.so' for module DBD::mysql: ld.so.1: /usr/bin/perl: fatal: relocation error: file /home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/m ysql.so: symbol net_buffer_length: referenced symbol not found at /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.
>>> at (eval 1) line 3
>>>Compilation failed in require at (eval 1) line 3.
>>>Perhaps a required shared library or dll isn't installed where expected
>>> at t/50commit.t line 64
>>>t/50commit.........dubious
>>> Test returned status 255 (wstat 65280, 0xff00)
>>>DIED. FAILED tests 1-30
>>> Failed 30/30 tests, 0.00% okay
>>>t/60leaks..........skipped
>>> all skipped: $ENV{SLOW_TESTS} is not set or Proc::ProcessTable not installed
>>>t/ak-dbd...........install_driver(mysql) failed: Can't load '/home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/ mysql.so' for module DBD::mysql: ld.so.1: /usr/bin/perl: fatal: relocation error: file /home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/m ysql.so: symbol net_buffer_length: referenced symbol not found at /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.
>>> at (eval 1) line 3
>>>Compilation failed in require at (eval 1) line 3.
>>>Perhaps a required shared library or dll isn't installed where expected
>>> at t/ak-dbd.t line 59
>>>t/ak-dbd...........dubious
>>> Test returned status 255 (wstat 65280, 0xff00)
>>>DIED. FAILED tests 1-90
>>> Failed 90/90 tests, 0.00% okay
>>>t/akmisc...........Had to create DBD::mysql::dr::imp_data_size unexpectedly at /usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/DBI.pm line 1057.
>>>Can't locate object method "connect" via package "Mysql" at /home/qms/down/DBD-m
>>>ysql-2.9003_1/blib/lib/Mysql.pm line 71.
>>>t/akmisc...........dubious
>>> Test returned status 255 (wstat 65280, 0xff00)
>>>DIED. FAILED tests 1-351
>>> Failed 351/351 tests, 0.00% okay
>>>t/dbdadmin.........install_driver(mysql) failed: Can't load '/home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/ mysql.so' for module DBD::mysql: ld.so.1: /usr/bin/perl: fatal: relocation error: file /home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/m ysql.so: symbol net_buffer_length: referenced symbol not found at /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.
>>> at (eval 1) line 3
>>>Compilation failed in require at (eval 1) line 3.
>>>Perhaps a required shared library or dll isn't installed where expected
>>> at t/dbdadmin.t line 74
>>>t/dbdadmin.........dubious
>>> Test returned status 255 (wstat 65280, 0xff00)
>>>DIED. FAILED tests 1-21
>>> Failed 21/21 tests, 0.00% okay
>>>t/insertid.........install_driver(mysql) failed: Can't load '/home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/ mysql.so' for module DBD::mysql: ld.so.1: /usr/bin/perl: fatal: relocation error: file /home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/m ysql.so: symbol net_buffer_length: referenced symbol not found at /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.
>>> at (eval 1) line 3
>>>Compilation failed in require at (eval 1) line 3.
>>>Perhaps a required shared library or dll isn't installed where expected
>>> at t/insertid.t line 13
>>>t/insertid.........dubious
>>> Test returned status 255 (wstat 65280, 0xff00)
>>>DIED. FAILED tests 1-12
>>> Failed 12/12 tests, 0.00% okay
>>>t/mysql............Can't load '/home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/ mysql.so' for module DBD::mysql: ld.so.1: /usr/bin/perl: fatal: relocation error: file /home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/m ysql.so: symbol net_buffer_length: referenced symbol not found at /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.
>>> at /home/qms/down/DBD-mysql-2.9003_1/blib/lib/Mysql.pm line 13
>>>Compilation failed in require at /home/qms/down/DBD-mysql-2.9003_1/blib/lib/Mysql.pm line 13.
>>>Compilation failed in require at t/mysql.t line 34.
>>>BEGIN failed--compilation aborted at t/mysql.t line 34.
>>>t/mysql............dubious
>>> Test returned status 255 (wstat 65280, 0xff00)
>>>DIED. FAILED tests 1-68
>>> Failed 68/68 tests, 0.00% okay
>>>t/mysql2...........Had to create DBD::mysql::dr::imp_data_size unexpectedly at /usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/DBI.pm line 1057.
>>>Use of uninitialized value in subroutine entry at /usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/DBI.pm line 1057.
>>>Can't locate object method "connect" via package "Mysql" at /home/qms/down/DBD-mysql-2.9003_1/blib/lib/Mysql.pm line 71.
>>>t/mysql2...........dubious
>>> Test returned status 255 (wstat 65280, 0xff00)
>>>Failed Test Stat Wstat Total Fail Failed List of Failed
>>>--------------------------------------------------------- ----------------------
>>>t/00base.t 255 65280 5 2 40.00% 4-5
>>>t/10dsnlist.t 255 65280 9 9 100.00% 1-9
>>>t/20createdrop.t 255 65280 5 5 100.00% 1-5
>>>t/30insertfetch.t 255 65280 11 11 100.00% 1-11
>>>t/40bindparam.t 255 65280 28 28 100.00% 1-28
>>>t/40blobs.t 255 65280 11 11 100.00% 1-11
>>>t/40listfields.t 255 65280 16 16 100.00% 1-16
>>>t/40nulls.t 255 65280 11 11 100.00% 1-11
>>>t/40numrows.t 255 65280 25 25 100.00% 1-25
>>>t/50chopblanks.t 255 65280 35 35 100.00% 1-35
>>>t/50commit.t 255 65280 30 30 100.00% 1-30
>>>t/ak-dbd.t 255 65280 90 90 100.00% 1-90
>>>t/akmisc.t 255 65280 351 351 100.00% 1-351
>>>t/dbdadmin.t 255 65280 21 21 100.00% 1-21
>>>t/insertid.t 255 65280 12 12 100.00% 1-12
>>>t/mysql.t 255 65280 68 68 100.00% 1-68
>>>t/mysql2.t 255 65280 ?? ?? % ??
>>>1 test skipped.
>>>Failed 17/18 test scripts, 5.56% okay. 725/728 subtests failed, 0.41% okay.
>>>make: *** [test_dynamic] Error 2
>>>
>>>
>>>----- Original Message -----
>>>From: "Jochen Wiedmann"
>>>To: "ÇѼ÷°æ"
>>>Sent: Monday, September 22, 2003 3:58 PM
>>>Subject: Re: Problem about DBD
>>>
>>>
>>>
>>>
>>>>A complete log of "perl Makefile.PL", "make", and "make test" is required.
>>>>
>>>>
>>>>ÇѼ÷°æ wrote:
>>>>
>>>>
>>>>
>>>>>Hello~
>>>>>
>>>>>the situation is the following: I compiled Perl 5.8.0,
>>>>>mysql 4.0.15, DBI 1.38, and DBD-2.9003_1.
>>>>>And I'm using Solaris 8 (SUN_OS 5.8).
>>>>>
>>>>>Evething was ok, except DBD, that fails on the 'make
>>>>>test' step.
>>>>>
>>>>>Then, I made a simple script in perl to show the
>>>>>drives and connect with the database by DBI:mysql. And
>>>>>the message I received was:
>>>>>
>>>>>install_driver(mysql) failed: Can't load '/home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/ mysql.so' for module DBD::mysql: ld.so.1: /usr/bin/perl: fatal: relocation error: file /home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/m ysql.so: symbol net_buffer_length: referenced symbol not found at /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.
>>>>>
>>>>>Can someone help me finding whereis the error ??
>>>>>please help me~
>>>>>
>>>>>Many thanks
>>>>>----- Original Message -----
>>>>>From: "Jochen Wiedmann"
>>>>>To: "ÇѼ÷°æ"
>>>>>Cc:
>>>>>Sent: Monday, September 22, 2003 2:03 PM
>>>>>Subject: Re: Problem about DBD
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>>ÇѼ÷°æ wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>>install_driver(mysql) failed: Can't load '/home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/ mysql.so' for module DBD::mysql: ld.so.1: /usr/bin/perl: fatal: relocation error: file /home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/m ysql.so: symbol net_buffer_length: referenced symbol not found at /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.
>>>>>>
>>>>>>Get yourself the latest version of the driver (2.9003_1, from the directory
>>>>>>authors/R/RU/RUDY) and retry with that. Most probably you will get a
>>>>>>meaningful error message using this version.
>>>>>>
>>>>>>
>>>>>>Jochen
>>>>>>
>>>>



--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/perl?unsub=gcdmp-msql-mysql-modules@m .gmane.org

Re: Problem about DBD

am 22.09.2003 10:10:14 von Jochen Wiedmann

Looks excellent. :-(

Please add the --nocatchstderr flag to "perl Makefile.PL". Rerun "perl
Makefile.PL", "make", and "make test", and send the full output again.

Jochen


ÇѼ÷°æ wrote:

> drwxr-xr-x 2 mysql mysql 512 Sep 6 18:05 ./
> drwxr-xr-x 13 mysql mysql 512 Sep 22 12:23 ../
> -rw-r--r-- 1 mysql mysql 29856 Sep 6 16:37 libdbug.a
> -rw-r--r-- 1 mysql mysql 723648 Jun 19 20:57 libmygcc.a
> -rw-r--r-- 1 mysql mysql 446188 Sep 6 16:34 libmysqlclient.a
> -rw-r--r-- 1 mysql mysql 457004 Sep 6 16:28 libmysqlclient_r.a
> -rw-r--r-- 1 mysql mysql 10156828 Sep 6 18:04 libmysqld.a
> -rw-r--r-- 1 mysql mysql 136140 Sep 6 16:37 libmystrings.a
> -rw-r--r-- 1 mysql mysql 357560 Sep 6 16:39 libmysys.a
>
> ----- Original Message -----
> From: "Jochen Wiedmann"
> To: "ÇѼ÷°æ"
> Cc:
> Sent: Monday, September 22, 2003 4:51 PM
> Subject: Re: Problem about DBD
>
>
>
>>What are the contents of /usr/local/mysql/lib?
>>
>>
>>ÇѼ÷°æ wrote:
>>
>>
>>>"perl Makefile.PL"
>>>->
>>>rm -rf mysql.c *.xsi ./blib Makefile.aperl blib/arch/auto/DBD/mysql/extralibs.all perlmain.c tmon.out mon.out so_locations pm_to_blib *.o *.a perl.exe perl perl mysql.bs mysql.bso mysql.def libmysql.def mysql.exp mysql.x core core.*perl.*.? *perl.core
>>>mv Makefile Makefile.old > /dev/null 2>&1
>>>[slaweb:/home/qms/down/DBD-mysql-2.9003_1] perl Makefile.PL
>>>Can't exec "mysql_config": No such file or directory at Makefile.PL line 174.
>>>readline() on closed filehandle PIPE at Makefile.PL line 176.
>>>Can't exec "mysql_config": No such file or directory at Makefile.PL line 174.
>>>readline() on closed filehandle PIPE at Makefile.PL line 176.
>>>Can't exec "mysql_config": No such file or directory at Makefile.PL line 174.
>>>readline() on closed filehandle PIPE at Makefile.PL line 176.
>>>Can't exec "mysql_config": No such file or directory at Makefile.PL line 174.
>>>readline() on closed filehandle PIPE at Makefile.PL line 176.
>>>Can't exec "mysql_config": No such file or directory at Makefile.PL line 174.
>>>readline() on closed filehandle PIPE at Makefile.PL line 176.
>>>Can't exec "mysql_config": No such file or directory at Makefile.PL line 174.
>>>readline() on closed filehandle PIPE at Makefile.PL line 176.
>>>Can't exec "mysql_config": No such file or directory at Makefile.PL line 174.
>>>readline() on closed filehandle PIPE at Makefile.PL line 176.
>>>Can't exec "mysql_config": No such file or directory at Makefile.PL line 174.
>>>readline() on closed filehandle PIPE at Makefile.PL line 176.
>>>Can't exec "mysql_config": No such file or directory at Makefile.PL line 174.
>>>readline() on closed filehandle PIPE at Makefile.PL line 176.
>>>I will use the following settings for compiling and testing:
>>>
>>> cflags (guessed) = -I/usr/local/mysql/include
>>> libs (guessed) = -L/usr/local/mysql/lib -lmysqlclient -lz -lgz
>>> nocatchstderr (default) = 0
>>> nofoundrows (default) = 0
>>> ssl (guessed) = 0
>>> testdb (default) = test
>>> testhost (default) =
>>> testpassword (default) =
>>> testuser (default) =
>>>
>>>To change these settings, see 'perl Makefile.PL --help' and
>>>'perldoc INSTALL'.
>>>
>>>Checking if your kit is complete...
>>>Looks good
>>>Note (probably harmless): No library found for -lgz
>>>Using DBI 1.38 installed in /usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/auto/DBI
>>>Writing Makefile for DBD::mysql
>>>
>>>
>>>"make"
>>>->
>>>cp lib/DBD/mysql/GetInfo.pm blib/lib/DBD/mysql/GetInfo.pm
>>>cp lib/DBD/mysql.pm blib/lib/DBD/mysql.pm
>>>cp lib/DBD/mysql/INSTALL.pod blib/lib/DBD/mysql/INSTALL.pod
>>>cp lib/Mysql.pm blib/lib/Mysql.pm
>>>cp lib/Mysql/Statement.pm blib/lib/Mysql/Statement.pm
>>>cp lib/Bundle/DBD/mysql.pm blib/lib/Bundle/DBD/mysql.pm
>>>gcc -c -I/usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/auto/DBI -I/usr/local/mysql/include -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"2.9003_1\" -DXS_VERSION=\"2.9003_1\" -fPIC "-I/usr/local/lib/perl5/5.8.0/sun4-solaris/CORE" dbdimp.c
>>>/usr/bin/perl -p -e "s/~DRIVER~/mysql/g" /usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/auto/DBI/D river.xst > mysql.xsi
>>>/usr/bin/perl /usr/local/lib/perl5/5.8.0/ExtUtils/xsubpp -typemap /usr/local/lib/perl5/5.8.0/ExtUtils/typemap mysql.xs > mysql.xsc && mv mysql.xsc mysql.c
>>>Warning: duplicate function definition 'do' detected in mysql.xs, line 193
>>>Warning: duplicate function definition 'rows' detected in mysql.xs, line 291
>>>gcc -c -I/usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/auto/DBI -I/usr/local/mysql/include -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"2.9003_1\" -DXS_VERSION=\"2.9003_1\" -fPIC "-I/usr/local/lib/perl5/5.8.0/sun4-solaris/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/local/mysql/lib:/usr/local/lib" /usr/bin/perl myld gcc -G -L/
>>>usr/local/lib dbdimp.o mysql.o -o blib/arch/auto/DBD/mysql/mysql.so -L/usr/local/mysql/lib -lmysqlclient -lz
>>>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/Mysql.3
>>>Manifying blib/man3/DBD::mysql::INSTALL.3
>>>Manifying blib/man3/Bundle::DBD::mysql.3
>>>
>>>
>>>"make test"
>>>->
>>>PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0,
>>>'blib/lib', 'blib/arch')" t/*.t
>>>t/00base...........install_driver(mysql) failed: Can't load '/home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/ mysql.so' for module DBD::mysql: ld.so.1: /usr/bin/perl: fatal: relocation error: file /home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/m ysql.so: symbol net_buffer_length: referenced symbol not found at /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.
>>> at (eval 1) line 3
>>>Compilation failed in require at (eval 1) line 3.
>>>Perhaps a required shared library or dll isn't installed where expected
>>> at t/00base.t line 38
>>>t/00base...........dubious
>>> Test returned status 255 (wstat 65280, 0xff00)
>>>DIED. FAILED tests 4-5
>>> Failed 2/5 tests, 60.00% okay
>>>t/10dsnlist........install_driver(mysql) failed: Can't load '/home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/ mysql.so' for module DBD::mysql: ld.so.1: /usr/bin/perl: fatal: relocation error: file /home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/m ysql.so: symbol net_buffer_length: referenced symbol not found at /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.
>>> at (eval 1) line 3
>>>Compilation failed in require at (eval 1) line 3.
>>>Perhaps a required shared library or dll isn't installed where expected
>>> at t/10dsnlist.t line 45
>>>t/10dsnlist........dubious
>>> Test returned status 255 (wstat 65280, 0xff00)
>>>DIED. FAILED tests 1-9
>>> Failed 9/9 tests, 0.00% okay
>>>t/20createdrop.....install_driver(mysql) failed: Can't load '/home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/ mysql.so' for module DBD::mysql: ld.so.1: /usr/bin/perl: fatal: relocation error: file /home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/m ysql.so: symbol net_buffer_length: referenced symbol not found at /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.
>>> at (eval 1) line 3
>>>Compilation failed in require at (eval 1) line 3.
>>>Perhaps a required shared library or dll isn't installed where expected
>>> at t/20createdrop.t line 45
>>>t/20createdrop.....dubious
>>> Test returned status 255 (wstat 65280, 0xff00)
>>>DIED. FAILED tests 1-5
>>> Failed 5/5 tests, 0.00% okay
>>>t/30insertfetch....install_driver(mysql) failed: Can't load '/home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/ mysql.so' for module DBD::mysql: ld.so.1: /usr/bin/perl: fatal: relocation error: file /home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/m ysql.so: symbol net_buffer_length: referenced symbol not found at /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.
>>> at (eval 1) line 3
>>>Compilation failed in require at (eval 1) line 3.
>>>Perhaps a required shared library or dll isn't installed where expected
>>> at t/30insertfetch.t line 48
>>>t/30insertfetch....dubious
>>> Test returned status 255 (wstat 65280, 0xff00)
>>>DIED. FAILED tests 1-11
>>> Failed 11/11 tests, 0.00% okay
>>>t/40bindparam......install_driver(mysql) failed: Can't load '/home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/ mysql.so' for module DBD::mysql: ld.so.1: /usr/bin/perl: fatal: relocation error: file /home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/m ysql.so: symbol net_buffer_length: referenced symbol not found at /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.
>>> at (eval 3) line 3
>>>Compilation failed in require at (eval 3) line 3.
>>>Perhaps a required shared library or dll isn't installed where expected
>>> at t/40bindparam.t line 64
>>>t/40bindparam......dubious
>>> Test returned status 255 (wstat 65280, 0xff00)
>>>DIED. FAILED tests 1-28
>>> Failed 28/28 tests, 0.00% okay
>>>t/40blobs..........install_driver(mysql) failed: Can't load '/home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/ mysql.so' for module DBD::mysql: ld.so.1: /usr/bin/perl: fatal: relocation error: file /home/qms/down/DBD-mysql-2.9003_1
>>>/blib/arch/auto/DBD/mysql/mysql.so: symbol net_buffer_length: referenced symbol not found at /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.
>>> at (eval 1) line 3
>>>Compilation failed in require at (eval 1) line 3.
>>>Perhaps a required shared library or dll isn't installed where expected
>>> at t/40blobs.t line 68
>>>t/40blobs..........dubious
>>> Test returned status 255 (wstat 65280, 0xff00)
>>>DIED. FAILED tests 1-11
>>> Failed 11/11 tests, 0.00% okay
>>>t/40listfields.....install_driver(mysql) failed: Can't load '/home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/ mysql.so' for module DBD::mysql: ld.so.1: /usr/bin/perl: fatal: relocation error: file /home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/m ysql.so: symbol net_buffer_length: referenced symbol not found at /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.
>>> at (eval 1) line 3
>>>Compilation failed in require at (eval 1) line 3.
>>>Perhaps a required shared library or dll isn't installed where expected
>>> at t/40listfields.t line 57
>>>t/40listfields.....dubious
>>> Test returned status 255 (wstat 65280, 0xff00)
>>>DIED. FAILED tests 1-16
>>> Failed 16/16 tests, 0.00% okay
>>>t/40nulls..........install_driver(mysql) failed: Can't load '/home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/ mysql.so' for module DBD::mysql: ld.so.1: /usr/bin/perl: fatal: relocation error: file /home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/m ysql.so: symbol net_buffer_length: referenced symbol not found at /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.
>>> at (eval 1) line 3
>>>Compilation failed in require at (eval 1) line 3.
>>>Perhaps a required shared library or dll isn't installed where expected
>>> at t/40nulls.t line 50
>>>t/40nulls..........dubious
>>> Test returned status 255 (wstat 65280, 0xff00)
>>>DIED. FAILED tests 1-11
>>> Failed 11/11 tests, 0.00% okay
>>>t/40numrows........install_driver(mysql) failed: Can't load '/home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/ mysql.so' for module DBD::mysql: ld.so.1: /usr/bin/perl: fatal: relocation error: file /home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/m ysql.so: symbol net_buffer_length: referenced symbol not found at /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.
>>> at (eval 1) line 3
>>>Compilation failed in require at (eval 1) line 3.
>>>Perhaps a required shared library or dll isn't installed where expected
>>> at t/40numrows.t line 59
>>>t/40numrows........dubious
>>> Test returned status 255 (wstat 65280, 0xff00)
>>>DIED. FAILED tests 1-25
>>> Failed 25/25 tests, 0.00% okay
>>>t/50chopblanks.....install_driver(mysql) failed: Can't load '/home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/ mysql.so' for module DBD::mysql: ld.so.1: /usr/bin/perl: fatal: relocation error: file /home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/m ysql.so: symbol net_buffer_length: referenced symbol not found at /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.
>>> at (eval 1) line 3
>>>Compilation failed in require at (eval 1) line 3.
>>>Perhaps a required shared library or dll isn't installed where expected
>>> at t/50chopblanks.t line 57
>>>t/50chopblanks.....dubious
>>> Test returned status 255 (wstat 65280, 0xff00)
>>>DIED. FAILED tests 1-35
>>> Failed 35/35 tests, 0.00% okay
>>>t/50commit.........install_driver(mysql) failed: Can't load '/home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/ mysql.so' for module DBD::mysql: ld.so.1: /usr/bin/perl: fatal: relocation error: file /home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/m ysql.so: symbol net_buffer_length: referenced symbol not found at /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.
>>> at (eval 1) line 3
>>>Compilation failed in require at (eval 1) line 3.
>>>Perhaps a required shared library or dll isn't installed where expected
>>> at t/50commit.t line 64
>>>t/50commit.........dubious
>>> Test returned status 255 (wstat 65280, 0xff00)
>>>DIED. FAILED tests 1-30
>>> Failed 30/30 tests, 0.00% okay
>>>t/60leaks..........skipped
>>> all skipped: $ENV{SLOW_TESTS} is not set or Proc::ProcessTable not installed
>>>t/ak-dbd...........install_driver(mysql) failed: Can't load '/home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/ mysql.so' for module DBD::mysql: ld.so.1: /usr/bin/perl: fatal: relocation error: file /home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/m ysql.so: symbol net_buffer_length: referenced symbol not found at /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.
>>> at (eval 1) line 3
>>>Compilation failed in require at (eval 1) line 3.
>>>Perhaps a required shared library or dll isn't installed where expected
>>> at t/ak-dbd.t line 59
>>>t/ak-dbd...........dubious
>>> Test returned status 255 (wstat 65280, 0xff00)
>>>DIED. FAILED tests 1-90
>>> Failed 90/90 tests, 0.00% okay
>>>t/akmisc...........Had to create DBD::mysql::dr::imp_data_size unexpectedly at /usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/DBI.pm line 1057.
>>>Can't locate object method "connect" via package "Mysql" at /home/qms/down/DBD-m
>>>ysql-2.9003_1/blib/lib/Mysql.pm line 71.
>>>t/akmisc...........dubious
>>> Test returned status 255 (wstat 65280, 0xff00)
>>>DIED. FAILED tests 1-351
>>> Failed 351/351 tests, 0.00% okay
>>>t/dbdadmin.........install_driver(mysql) failed: Can't load '/home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/ mysql.so' for module DBD::mysql: ld.so.1: /usr/bin/perl: fatal: relocation error: file /home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/m ysql.so: symbol net_buffer_length: referenced symbol not found at /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.
>>> at (eval 1) line 3
>>>Compilation failed in require at (eval 1) line 3.
>>>Perhaps a required shared library or dll isn't installed where expected
>>> at t/dbdadmin.t line 74
>>>t/dbdadmin.........dubious
>>> Test returned status 255 (wstat 65280, 0xff00)
>>>DIED. FAILED tests 1-21
>>> Failed 21/21 tests, 0.00% okay
>>>t/insertid.........install_driver(mysql) failed: Can't load '/home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/ mysql.so' for module DBD::mysql: ld.so.1: /usr/bin/perl: fatal: relocation error: file /home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/m ysql.so: symbol net_buffer_length: referenced symbol not found at /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.
>>> at (eval 1) line 3
>>>Compilation failed in require at (eval 1) line 3.
>>>Perhaps a required shared library or dll isn't installed where expected
>>> at t/insertid.t line 13
>>>t/insertid.........dubious
>>> Test returned status 255 (wstat 65280, 0xff00)
>>>DIED. FAILED tests 1-12
>>> Failed 12/12 tests, 0.00% okay
>>>t/mysql............Can't load '/home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/ mysql.so' for module DBD::mysql: ld.so.1: /usr/bin/perl: fatal: relocation error: file /home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/m ysql.so: symbol net_buffer_length: referenced symbol not found at /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.
>>> at /home/qms/down/DBD-mysql-2.9003_1/blib/lib/Mysql.pm line 13
>>>Compilation failed in require at /home/qms/down/DBD-mysql-2.9003_1/blib/lib/Mysql.pm line 13.
>>>Compilation failed in require at t/mysql.t line 34.
>>>BEGIN failed--compilation aborted at t/mysql.t line 34.
>>>t/mysql............dubious
>>> Test returned status 255 (wstat 65280, 0xff00)
>>>DIED. FAILED tests 1-68
>>> Failed 68/68 tests, 0.00% okay
>>>t/mysql2...........Had to create DBD::mysql::dr::imp_data_size unexpectedly at /usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/DBI.pm line 1057.
>>>Use of uninitialized value in subroutine entry at /usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/DBI.pm line 1057.
>>>Can't locate object method "connect" via package "Mysql" at /home/qms/down/DBD-mysql-2.9003_1/blib/lib/Mysql.pm line 71.
>>>t/mysql2...........dubious
>>> Test returned status 255 (wstat 65280, 0xff00)
>>>Failed Test Stat Wstat Total Fail Failed List of Failed
>>>--------------------------------------------------------- ----------------------
>>>t/00base.t 255 65280 5 2 40.00% 4-5
>>>t/10dsnlist.t 255 65280 9 9 100.00% 1-9
>>>t/20createdrop.t 255 65280 5 5 100.00% 1-5
>>>t/30insertfetch.t 255 65280 11 11 100.00% 1-11
>>>t/40bindparam.t 255 65280 28 28 100.00% 1-28
>>>t/40blobs.t 255 65280 11 11 100.00% 1-11
>>>t/40listfields.t 255 65280 16 16 100.00% 1-16
>>>t/40nulls.t 255 65280 11 11 100.00% 1-11
>>>t/40numrows.t 255 65280 25 25 100.00% 1-25
>>>t/50chopblanks.t 255 65280 35 35 100.00% 1-35
>>>t/50commit.t 255 65280 30 30 100.00% 1-30
>>>t/ak-dbd.t 255 65280 90 90 100.00% 1-90
>>>t/akmisc.t 255 65280 351 351 100.00% 1-351
>>>t/dbdadmin.t 255 65280 21 21 100.00% 1-21
>>>t/insertid.t 255 65280 12 12 100.00% 1-12
>>>t/mysql.t 255 65280 68 68 100.00% 1-68
>>>t/mysql2.t 255 65280 ?? ?? % ??
>>>1 test skipped.
>>>Failed 17/18 test scripts, 5.56% okay. 725/728 subtests failed, 0.41% okay.
>>>make: *** [test_dynamic] Error 2
>>>
>>>
>>>----- Original Message -----
>>>From: "Jochen Wiedmann"
>>>To: "ÇѼ÷°æ"
>>>Sent: Monday, September 22, 2003 3:58 PM
>>>Subject: Re: Problem about DBD
>>>
>>>
>>>
>>>
>>>>A complete log of "perl Makefile.PL", "make", and "make test" is required.
>>>>
>>>>
>>>>ÇѼ÷°æ wrote:
>>>>
>>>>
>>>>
>>>>>Hello~
>>>>>
>>>>>the situation is the following: I compiled Perl 5.8.0,
>>>>>mysql 4.0.15, DBI 1.38, and DBD-2.9003_1.
>>>>>And I'm using Solaris 8 (SUN_OS 5.8).
>>>>>
>>>>>Evething was ok, except DBD, that fails on the 'make
>>>>>test' step.
>>>>>
>>>>>Then, I made a simple script in perl to show the
>>>>>drives and connect with the database by DBI:mysql. And
>>>>>the message I received was:
>>>>>
>>>>>install_driver(mysql) failed: Can't load '/home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/ mysql.so' for module DBD::mysql: ld.so.1: /usr/bin/perl: fatal: relocation error: file /home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/m ysql.so: symbol net_buffer_length: referenced symbol not found at /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.
>>>>>
>>>>>Can someone help me finding whereis the error ??
>>>>>please help me~
>>>>>
>>>>>Many thanks
>>>>>----- Original Message -----
>>>>>From: "Jochen Wiedmann"
>>>>>To: "ÇѼ÷°æ"
>>>>>Cc:
>>>>>Sent: Monday, September 22, 2003 2:03 PM
>>>>>Subject: Re: Problem about DBD
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>>ÇѼ÷°æ wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>>install_driver(mysql) failed: Can't load '/home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/ mysql.so' for module DBD::mysql: ld.so.1: /usr/bin/perl: fatal: relocation error: file /home/qms/down/DBD-mysql-2.9003_1/blib/arch/auto/DBD/mysql/m ysql.so: symbol net_buffer_length: referenced symbol not found at /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.
>>>>>>
>>>>>>Get yourself the latest version of the driver (2.9003_1, from the directory
>>>>>>authors/R/RU/RUDY) and retry with that. Most probably you will get a
>>>>>>meaningful error message using this version.
>>>>>>
>>>>>>
>>>>>>Jochen
>>>>>>
>>>>



--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/perl?unsub=gcdmp-msql-mysql-modules@m .gmane.org

Re: Problem about DBD

am 23.09.2003 08:04:37 von Jochen Wiedmann

Rudy Lippan wrote:

> I'd like to find a way to test for this early on? Like checking defines
> for both libs or something. Thoughts?

I would think, that this is too difficult to detect, in particular among
architectures. (Solaris is not the only operating system around. :-)

My original idea, which I still find good, is that the "myld" script should
be able to parse the linker output for messages like the above and give
hints. IMO that's completely sufficient.


> I see that, but I don't see why, off hand. I am going to need to start
> digging.. Maybe ld is still returning 0 in this case? Wait... Looking at
> the message above again, I just noticed that it is a warning message, so I
> am going to assume that ld is not returining a non-zero status, and
> therefore, myld does not know that there is a problem.

Most probably you are right, and the "myld" script should change its
behaviour to forwarding all output immediately to stdout and only printing a
final diagnostic message, if that seems to make sense.


Jochen


--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/perl?unsub=gcdmp-msql-mysql-modules@m .gmane.org

Re: Problem about DBD

am 23.09.2003 08:04:37 von Jochen Wiedmann

Rudy Lippan wrote:

> I'd like to find a way to test for this early on? Like checking defines
> for both libs or something. Thoughts?

I would think, that this is too difficult to detect, in particular among
architectures. (Solaris is not the only operating system around. :-)

My original idea, which I still find good, is that the "myld" script should
be able to parse the linker output for messages like the above and give
hints. IMO that's completely sufficient.


> I see that, but I don't see why, off hand. I am going to need to start
> digging.. Maybe ld is still returning 0 in this case? Wait... Looking at
> the message above again, I just noticed that it is a warning message, so I
> am going to assume that ld is not returining a non-zero status, and
> therefore, myld does not know that there is a problem.

Most probably you are right, and the "myld" script should change its
behaviour to forwarding all output immediately to stdout and only printing a
final diagnostic message, if that seems to make sense.


Jochen


--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/perl?unsub=gcdmp-msql-mysql-modules@m .gmane.org