install problem with DBD-mysql-4.005 on Solaris 10

Robert Rombaut <[email protected]> Thu, 23 Aug 2007 10:16:23 -0400
Newsgroups gmane.comp.db.mysql.perl
Message-ID <[email protected]>
Hi,

I'm trying to install DBD-mysql-4.005 on Solaris 10.  I have  
previously installed mysql-5.0.41-solaris10-sparc and have it up and  
running.

When I run "perl Makefile.PL" the default options are set to ...

--cflags=-I/oudvmt/local_rt/mysql/include -mt -D_FORTEC_ -xarch=v8
--libs=-xarch=v8 -L/oudvmt/local_rt/mysql/lib -lmysqlclient -lz - 
lposix4 -lresolv -lgen -lsocket -lnsl -lm

Because -mt and xarch=v8 are not recognized by gcc, I pass in the  
following options instead ...

--cflags=--cflags "-I/oudvmt/local_rt/mysql/include"  --libs
--libs="-L/oudvmt/local_rt/mysql/lib -lmysqlclient -lz -lposix4 - 
lresolv -lgen -lsocket -lnsl -lm"

This seems to work for "perl Makefile.PL" and "make" except "make"  
has the following warnings ...

Warning: duplicate function definition 'do' detected in mysql.xs,  
line 225
Warning: duplicate function definition 'rows' detected in mysql.xs,  
line 612

I persevere ahead and run "make test" and get the following error for  
all tests ...

Can't load '/u/rrom/.cpan/build/DBD-mysql-4.005-pjWJWE/blib/arch/auto/ 
DBD/mysql/mysql.so' for module DBD::mysql: ld.so.1: perl: fatal:  
relocation error: file /u/rrom/.cpan/build/DBD-mysql-4.005-pjWJWE/ 
blib/arch/auto/DBD/mysql/mysql.so: symbol mysql_server_init:  
referenced symbol not found at /oudvmt/local_rt/lib/perl5/5.8.8/sun4- 
solaris/DynaLoader.pm line 230.
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/00base.t line 38

Appreciate any insight you might have.

Thanks,
-Bob





-- 
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe:    http://lists.mysql.com/[email protected]