DBD::mysql(Install on solaris10 SPARC 64 bit prob help)

"Arshad" <[email protected]> Mon, 7 Jul 2008 12:30:19 +0530
Newsgroups gmane.comp.db.mysql.perl
Message-ID <[email protected]>
 

Hello,

            I was trying to install DBD::mysql I did the following things

 

        Step 1  à   Build mysql from the source on solaris10 SPARC64 bit
using gcc 3.4.6  compiler

 

mysql> status

--------------

mysql  Ver 12.22 Distrib 4.0.24, for sun-solaris2.10 (sparc)

 

Connection id:          39

Current database:

Current user:           root@localhost

SSL:                    Not in use

Current pager:          stdout

Using outfile:          ''

Server version:         5.0.51b-log

Protocol version:       10

Connection:             Localhost via UNIX socket

Client characterset:    latin1

Server characterset:    latin1

UNIX socket:            /tmp/mysql.sock

Uptime:                 6 days 20 hours 3 min 18 sec

 

Threads: 1  Questions: 182  Slow queries: 0  Opens: 14  Flush tables: 2
Open tables: 2  Queries per second avg: 0.000

 

Step 2 àThen I tried to build DBI it was success.

 

Step 3 àThen I am installing DBD::mysql and I am getting this error please
help…. I am attaching err screem…please find time to mail me…

 

                Used this command                        

à perl Makefile.PL –localhost=127.0.0.1 -- --testdb=db
--libs="-L/usr/local/mysql/lib/mysql -lmysqlclient"
--cflags=/usr/local/bin/gcc  

  

 

cflags        (User's choice) = /usr/local/bin/gcc

  embedded      (mysql_config ) =

  libs          (User's choice) = -L/usr/local/mysql/lib/mysql -lmysqlclient

  mysql_config  (guessed      ) = mysql_config

  nocatchstderr (default      ) = 0

  nofoundrows   (default      ) = 0

  ssl           (guessed      ) = 0

  testdb        (User's choice) = db

  testhost      (User's choice) = 127.0.0.1

  testpassword  (default      ) =

  testsocket    (default      ) =

Use of uninitialized value in printf at Makefile.PL line 171, <PIPE> line
71.

Use of uninitialized value in printf at Makefile.PL line 171, <PIPE> line
71.

  testuser      (             ) =

 

To change these settings, see 'perl Makefile.PL --help' and

'perldoc INSTALL'.

 

Using DBI 1.605 (for perl 5.008008 on sun4-solaris) installed in
/usr/local/lib/perl5/site_perl/5.8.8/sun4-solaris/auto/DBI/

Writing Makefile for DBD::mysql

 

                                   

                                 I have used this command  à  perl
Makefile.PL --testhost=127.0.0.1 --

                                   

                                   

                                   dbdimp.c:3879: error: dereferencing
pointer to incomplete type

dbdimp.c:3882: error: `res' undeclared (first use in this function)

dbdimp.c:3947: error: `PRI_KEY_FLAG' undeclared (first use in this function)

dbdimp.c:3947: error: `UNIQUE_KEY_FLAG' undeclared (first use in this
function)

dbdimp.c:3947: error: `MULTIPLE_KEY_FLAG' undeclared (first use in this
function)

dbdimp.c:3974: error: dereferencing pointer to incomplete type

dbdimp.c: In function `mysql_st_FETCH_attrib':

dbdimp.c:4025: error: dereferencing pointer to incomplete type

dbdimp.c:4027: error: dereferencing pointer to incomplete type

dbdimp.c:4031: error: dereferencing pointer to incomplete type

dbdimp.c:4035: error: dereferencing pointer to incomplete type

dbdimp.c:4040: error: dereferencing pointer to incomplete type

dbdimp.c:4044: error: dereferencing pointer to incomplete type

dbdimp.c:4052: error: dereferencing pointer to incomplete type

dbdimp.c:4056: error: dereferencing pointer to incomplete type

dbdimp.c:4062: error: dereferencing pointer to incomplete type

dbdimp.c:4066: error: dereferencing pointer to incomplete type

dbdimp.c:4070: error: dereferencing pointer to incomplete type

dbdimp.c:4072: error: dereferencing pointer to incomplete type

dbdimp.c:4074: error: dereferencing pointer to incomplete type

dbdimp.c:4076: error: dereferencing pointer to incomplete type

dbdimp.c:4080: error: dereferencing pointer to incomplete type

dbdimp.c:4087: error: dereferencing pointer to incomplete type

dbdimp.c:4089: error: dereferencing pointer to incomplete type

dbdimp.c:4094: error: dereferencing pointer to incomplete type

dbdimp.c:4098: error: dereferencing pointer to incomplete type

dbdimp.c:4100: error: dereferencing pointer to incomplete type

dbdimp.c:4102: error: dereferencing pointer to incomplete type

dbdimp.c:4106: error: dereferencing pointer to incomplete type

dbdimp.c:4118: error: dereferencing pointer to incomplete type

dbdimp.c: In function `mysql_bind_ph':

dbdimp.c:4208: error: dereferencing pointer to incomplete type

dbdimp.c:4242: error: dereferencing pointer to incomplete type

dbdimp.c: In function `mysql_db_reconnect':

dbdimp.c:4362: error: `MYSQL' undeclared (first use in this function)

dbdimp.c:4362: error: syntax error before "save_socket"

dbdimp.c:4372: error: dereferencing pointer to incomplete type

dbdimp.c:4372: error: `CR_SERVER_GONE_ERROR' undeclared (first use in this
function)

dbdimp.c:4376: error: dereferencing pointer to incomplete type

dbdimp.c:4376: error: dereferencing pointer to incomplete type

dbdimp.c:4390: error: `save_socket' undeclared (first use in this function)

dbdimp.c:4390: error: dereferencing pointer to incomplete type

dbdimp.c:4391: error: dereferencing pointer to incomplete type

dbdimp.c:4392: error: dereferencing pointer to incomplete type

dbdimp.c:4392: error: dereferencing pointer to incomplete type

dbdimp.c:4396: error: dereferencing pointer to incomplete type

dbdimp.c:4396: error: dereferencing pointer to incomplete type

dbdimp.c:4397: warning: passing arg 3 of `mysql_dr_error' makes pointer from
integer without a cast

dbdimp.c:4398: error: dereferencing pointer to incomplete type

dbdimp.c:4399: error: dereferencing pointer to incomplete type

dbdimp.c:4402: error: dereferencing pointer to incomplete type

dbdimp.c: In function `mysql_db_quote':

dbdimp.c:4562: error: dereferencing pointer to incomplete type

dbdimp.c: In function `mysql_db_last_insert_id':

dbdimp.c:4585: error: dereferencing pointer to incomplete type

*** Error code 1

make: Fatal error: Command failed for target `dbdimp.o'

                                   

è  I AM STUCK HEARE PLEASE GUIDE ME!!!!!

 

 

Regards,
Mohammed Arshad