I actually read the readme for DBD ;) and found what looks like the cause of
the problem below:
The Error means... that your linker doesn't include libgcc.a. You have
the following options:

a) Either recompile Perl or Mysql, it doesn't matter which.
The important thing is that you use the same
compiler for both. This is definitely the
recommended solution in the long term.

b)A simple workaround is to include libgcc.a manually. Do
a "make clean" and "make" and in the output wait for
a line like

LD_RUN_PATH="/usr/lib/mysql:/lib" egcs -o
../blib/arch/auto/DBD/mysql/mysql.so  -shared -L/usr/local/lib
dbdimp.o mysql.o -L/usr/lib/mysql -L/usr/lib/mysql -lmys qlclient -lm

Repeat the same line in the shell by adding

-L/usr/lib/gcc-lib/i386-redhat-linux/gcc-2.7.2.3 -lgcc

***QUESTION:
I'll opt for the recompile Mysql.  Perl was intalled from the RedHat install
CD, Mysql I installed from the tar.gz file.  I beleive I'll recompile
Mysql - do I use and rpm to do this?  In other words, how do I re-compile
Mysql to have it use the same compiler as Perl?

Thanks in advance.

Chris B

-----Original Message-----
From: Chris Becker [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 30, 2001 2:07 PM
To: [EMAIL PROTECTED]
Subject: perl DBD make test errors??? Please Help



RedHat 6.2 on Intel, ...36 MySQL, and perl5, DBI installed correctly.

I ran perl Makefile.PL, seemed to run ok, no errors seen.
Ran make, same thing.
Then the following from make tets:

/perlmods/DBD10>make test
make[1]: Entering directory `/perlmods/Msql-Mysql-modules-1.2210/mysql'
make[1]: Leaving directory `/perlmods/Msql-Mysql-modules-1.2210/mysql'
make[1]: Entering directory `/perlmods/Msql-Mysql-modules-1.2210/mysql'
PERL_DL_NONLAZY=1
/usr/bin/perl -I../blib/arch -I../blib/lib -I/usr/lib/perl5/5.00
503/i386-linux -I/usr/lib/perl5/5.00503 -e 'use Test::Harness qw(&runtests
$verbos
e); $verbose=0; runtests @ARGV;' t/*.t
t/00base............install_driver(mysql) failed: Can't load
'../blib/arch/auto/DB
D/mysql/mysql.so' for module DBD::mysql:
../blib/arch/auto/DBD/mysql/mysql.so: und
efined symbol: uncompress at /usr/lib/perl5/5.00503/i386-linux/DynaLoader.pm
line
169.

 at (eval 1) line 3

 at t/00base.t line 38
dubious
        Test returned status 255 (wstat 65280, 0xff00)
Undefined subroutine &Test::Harness::WCOREDUMP called at
/usr/lib/perl5/5.00503/Te
st/Harness.pm line 288.
make[1]: *** [test_dynamic] Error 255
make[1]: Leaving directory `/perlmods/Msql-Mysql-modules-1.2210/mysql'
make: *** [test] Error 2


Please Help - am I installing DBD in the wrong directory?  MySQL is
installed in /usr/local/mysql - should I be running this make file there???

Thank in advance,

Chris Becker
MCSE MCDBA
=======================
Idysys
http://www.idysys.com
[EMAIL PROTECTED]
=======================


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to