Msql-Mysql-modules make problem with Red Hat Enterprise Linux ES

Msql-Mysql-modules make problem with Red Hat Enterprise Linux ES

am 19.12.2004 15:14:22 von pin

------=_NextPart_000_0023_01C4E618.17FA4DE0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

perl Makefile.PL works fine:

Do you want to install the MysqlPerl emulation? You might keep your old
Mysql module (to be distinguished from DBD::mysql!) if you are concerned
about compatibility to existing applications! [n] n
Where is your MySQL installed? Please tell me the directory that
contains the subdir 'include'. [/usr/local/mysql] /usr/local/mysql
Which database should I use for testing the MySQL drivers? [test] test
On which host is database test running (hostname, ip address
or host:port) [localhost] localhost
User name for connecting to database test? [undef]
Password for connecting to database test? [undef]
Creating files for MySQL ....................
WARNING: CAPI is not a known parameter.
WARNING: PL_FILES takes a hash reference not a array reference.
Please inform the author.
Checking if your kit is complete...
Looks good
Note (probably harmless): No library found for -lgz
Using DBI 1.46 (for perl 5.008 on i386-linux-thread-multi) installed in =
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/ DBI/
Writing Makefile for DBD::mysql
Writing Makefile for Msql-Mysql-modules

But when I type make, the following error appear:

Warning: duplicate function definition 'do' detected in mysql.xs, line =
281
Warning: duplicate function definition 'rows' detected in mysql.xs, line =
407
gcc -c =
-I/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/aut o/DBI =
-I/usr/local/mysql/include/mysql -I../dbd =
-I/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/aut o/DBI =
-I/usr/lib/perl5/5.8.0/i386-linux-thread-multi -D_REENTRANT =
-D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing =
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=3D64 =
-I/usr/include/gdbm -O2 -g -pipe -march=3Di386 -mcpu=3Di686 =
-DVERSION=3D\"2.0419\" -DXS_VERSION=3D\"2.0419\" -fPIC =
"-I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE" -DDBD_MYSQL =
mysql.c
mysql.xs: In function `XS_DBD__mysql__dr__ListDBs':
mysql.xs:98: warning: passing arg 3 of `mysql_dr_error' discards =
qualifiers from pointer target type
mysql.xs: In function `XS_DBD__mysql__dr__admin_internal':
mysql.xs:138: warning: passing arg 3 of `mysql_dr_error' discards =
qualifiers from pointer target type
mysql.xs:144: too few arguments to function `mysql_shutdown'
mysql.xs:186: warning: passing arg 3 of `mysql_dr_error' discards =
qualifiers from pointer target type
mysql.xs: In function `XS_DBD__mysql__db__ListDBs':
mysql.xs:250: warning: passing arg 3 of `mysql_dr_error' discards =
qualifiers from pointer target type
mysql.xs: In function `XS_DBD__mysql__db__ListTables':
mysql.xs:271: warning: passing arg 3 of `mysql_dr_error' discards =
qualifiers from pointer target type
make[1]: *** [mysql.o] Error 1
make[1]: Leaving directory `/usr/src/Msql-Mysql-modules-1.2219/mysql'
make: *** [subdirs] Error 2

I had tried searching the Internet for answer but couldn't find one. =
Anyone kind enough to guide?

Thank you

Pin

------=_NextPart_000_0023_01C4E618.17FA4DE0--

Re: Msql-Mysql-modules make problem with Red Hat Enterprise Linux ES

am 20.12.2004 08:50:04 von Jochen Wiedmann

On Sun, 19 Dec 2004 22:14:22 +0800, Pin~1.com.my wrote:

> make[1]: Leaving directory `/usr/src/Msql-Mysql-modules-1.2219/mysql'
> make: *** [subdirs] Error 2

If you do not have a specific reason, please use the latest version,
which comes under the name DBD-mysql-2.9003, or something similar.
Also note, that RHES most probably comes with a compiled RPM.


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

DBD-mysql make test error

am 22.12.2004 02:06:51 von pin

Thanks. The installation of DBD-mysql is successful in my RHES. I tried with
make test and get this result:

t/mysql2...........Had to create DBD::mysql::dr::imp_data_size unexpectedly
at /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/DBI.p m line 1161.
Use of uninitialized value in subroutine entry at
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/DBI.p m line 1161.
Can't locate object method "connect" via package "Mysql" at
/usr/src/DBD-mysql-2.9004/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 18 18 100.00% 1-18
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. 727/730 subtests failed, 0.41% okay.
make: *** [test_dynamic] Error 2


Not really sure if that it is working or not.

Earnpin Lee
----- Original Message -----
From: "Jochen Wiedmann"
To: "Pin~1.com.my"
Cc:
Sent: Monday, December 20, 2004 3:50 PM
Subject: Re: Msql-Mysql-modules make problem with Red Hat Enterprise Linux
ES


> On Sun, 19 Dec 2004 22:14:22 +0800, Pin~1.com.my wrote:
>
> > make[1]: Leaving directory `/usr/src/Msql-Mysql-modules-1.2219/mysql'
> > make: *** [subdirs] Error 2
>
> If you do not have a specific reason, please use the latest version,
> which comes under the name DBD-mysql-2.9003, or something similar.
> Also note, that RHES most probably comes with a compiled RPM.
>
>
> 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