Problems with mysql/DBD-mysql-2.1028

Problems with mysql/DBD-mysql-2.1028

am 20.08.2003 14:16:08 von Jesus Laguna

------_=_NextPart_001_01C36714.D6114365
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hello,
=20
I'm trying to install this drivers in order to access a MySQL database =
server (4.0.14 Standard for Solaris 8 SPARC 64-bit) which is installed =
and running correctly. I've have created a database and a user and given =
it permissions too.
=20
The first step I've done is to install DBI-1.37 with no problems. I've =
used the Solaris8's make and the gnu or perl gcc version 2.95.3 =
20010315.=20
=20
Next step has been to try with DBD but I had the next errors at the =
"make test" step:
=20
# make test
PERL_DL_NONLAZY=3D1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-e" =
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00base...........install_driver(mysql) failed: Can't load =
'/mysql/DBD-mysql-2.1028/blib/arch/auto/DBD/mysql/mysql.so' for module =
DBD::mysql: ld.so.1: /usr/local/bin/perl: fatal: relocation error: file =
/mysql/DBD-mysql-2.1028/blib/arch/auto/DBD/mysql/mysql.so: symbol =
mysql_real_escape_string: 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........
=20
....and so on
=20
These are my previous commands:
=20
# perl Makefile.PL --testdb=3Dcsaenz_cadmoweb --testhost=3Dsuncadmo1 =
--testuser=3Dcsaenz --testpassword=3Dcsaenz =
--libs=3D"-L/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95 .3/libgcc.a =
-lgcc"
I will use the following settings for compiling and testing:
=20
cflags (mysql_config) =3D -I'/usr/local/mysql/include'
libs (Users choice) =3D =
-L/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/libgcc. a -lgcc
nocatchstderr (default ) =3D 0
ssl (guessed ) =3D 0
testdb (Users choice) =3D csaenz_cadmoweb
testhost (Users choice) =3D suncadmo1
testpassword (Users choice) =3D csaenz
testuser (Users choice) =3D csaenz
=20
To change these settings, see 'perl Makefile.PL --help' and
'perldoc INSTALL'.
=20
Note (probably harmless): No library found for -lgcc
Using DBI 1.37 installed in =
/usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/auto/DBI
Writing Makefile for DBD::mysql

# make
gcc -B/usr/ccs/bin/ -c =
-I/usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/auto/DBI =
-I'/usr/local/mysql/include' -fno-strict-aliasing -D_LARGEFILE_SOURCE =
-D_FILE_OFFSET_BITS=3D64 -O -DVERSION=3D\"2.1028\" =
-DXS_VERSION=3D\"2.1028\" -fPIC =
"-I/usr/local/lib/perl5/5.8.0/sun4-solaris/CORE" dbdimp.c
gcc -B/usr/ccs/bin/ -c =
-I/usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/auto/DBI =
-I'/usr/local/mysql/include' -fno-strict-aliasing -D_LARGEFILE_SOURCE =
-D_FILE_OFFSET_BITS=3D64 -O -DVERSION=3D\"2.1028\" =
-DXS_VERSION=3D\"2.1028\" -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=3D"" /usr/local/bin/perl myld gcc -B/usr/ccs/bin/ -G =
-L/usr/local/lib dbdimp.o mysql.o -o blib/arch/auto/DBD/mysql/mysql.so
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/Mysql.3
Manifying blib/man3/DBD::mysql::INSTALL.3
Manifying blib/man3/DBD::mysql.3
Manifying blib/man3/Bundle::DBD::mysql.3

I've probed without the --libs parameter with the same results. What is =
happening?
=20
Thanks for your attention.
=20
Best regards.
=20
_______________________________________________=20

Jes=FAs Jaime Laguna Mart=EDnez
Departamento de Sistemas y Comunicaciones
T 91 319 29 02=20
F 91 319 17 70

CADMO / conocimiento=20
Miguel Angel, 23, 1ยบ
28010 Madrid=20

Visite nuestra sede web: www.cadmoconocimiento.com=20
=BFQuiere convertirse en miembro de nuestra red de socios de negocio?: =
http://www.redcadmo.com =20
Conozca la escuela de ingl=E9s online m=E1s grande del mundo: =
http://ingles.cadmoweb.com =20

=BFDesea suscribirse a nuestro bolet=EDn electr=F3nico? =
http://www.cadmoconocimiento.com/es/utilidades/boletin.asp=2 0

=20

=20

------_=_NextPart_001_01C36714.D6114365--