DBD::mysql will make but won't test on Solaris10...

Jake Peavy <[email protected]>
Newsgroups gmane.comp.db.mysql.perl
Message-ID <[email protected]>
Hey yall, I'm having all kinds of problems trying to install DBD::mysql on
my newly built Solaris 10 box.  I have installed the Sun CC compiler, and
DBI installed fine along with a number of other CPAN modules.  I have
installed mysql via the pkgadd package.

Here's the output (this is only the results from the first test.  none of
the tests passed 100% - there were TONS of failures.)

note that there are some warnings thrown by make - duplicate functions?
xarch=v9 not recognized?

also, libmtmalloc.so.1 is located in /usr/lib.

Thanks in advance,
-jp

  CPAN.pm: Going to build C/CA/CAPTTOFU/DBD-mysql-3.0002.tar.gz

I will use the following settings for compiling and testing:

  cflags        (mysql_config) = -I/opt/mysql/mysql/include -xO3 -mt
-D_FORTEC_ -xarch=v9 -xc99=none
  embedded      (mysql_config) =
  libs          (mysql_config) = -xarch=v9 -L/opt/mysql/mysql/lib
-lmysqlclient -lz -lposix4 -lcrypt -lgen -lsocket -lnsl -lm -lmtmalloc
  mysql_config  (guessed     ) = mysql_config
  nocatchstderr (default     ) = 0
  nofoundrows   (default     ) = 0
  ssl           (guessed     ) = 0
  testdb        (default     ) = test
  testhost      (default     ) =
  testpassword  (default     ) =
  testsocket    (default     ) =
  testuser      (default     ) =

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

Checking if your kit is complete...
Looks good
Unrecognized argument in LIBS ignored: '-xarch=v9'
Using DBI 1.48 (for perl 5.008004 on sun4-solaris-64int) installed in
/usr/perl5/site_perl/5.8.4/sun4-solaris-64int/auto/DBI/
Writing Makefile for DBD::mysql
cp lib/DBD/mysql.pm blib/lib/DBD/mysql.pm
cp lib/DBD/mysql/GetInfo.pm blib/lib/DBD/mysql/GetInfo.pm
cp lib/Mysql.pm blib/lib/Mysql.pm
cp lib/DBD/mysql/INSTALL.pod blib/lib/DBD/mysql/INSTALL.pod
cp lib/Mysql/Statement.pm blib/lib/Mysql/Statement.pm
cp lib/Bundle/DBD/mysql.pm blib/lib/Bundle/DBD/mysql.pm
cc -c  -I/usr/perl5/site_perl/5.8.4/sun4-solaris-64int/auto/DBI/
-I/opt/mysql/mysql/include -xO3 -mt -D_FORTEC_ -xarch=v9 -xc99=none
-DDBD_MYSQL_INSERT_ID_IS_G
OOD -g  -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xarch=v8 -D_TS_ERRNO
-xO3 -xspace -xildoff   -DVERSION=\"3.0002\" -DXS_VERSION=\"3.0002\" -KPIC
"-I/usr/per
l5/5.8.4/lib/sun4-solaris-64int/CORE"   dbdimp.c
/usr/bin/perl -p -e "s/~DRIVER~/mysql/g"
/usr/perl5/site_perl/5.8.4/sun4-solaris-64int/auto/DBI//Driver.xst >
mysql.xsi
/usr/bin/perl /usr/perl5/5.8.4/lib/ExtUtils/xsubpp  -typemap
/usr/perl5/5.8.4/lib/ExtUtils/typemap  mysql.xs > mysql.xsc && mv mysql.xsc
mysql.c
Warning: duplicate function definition 'do' detected in mysql.xs, line 224
Warning: duplicate function definition 'rows' detected in mysql.xs, line 559
cc -c  -I/usr/perl5/site_perl/5.8.4/sun4-solaris-64int/auto/DBI/
-I/opt/mysql/mysql/include -xO3 -mt -D_FORTEC_ -xarch=v9 -xc99=none
-DDBD_MYSQL_INSERT_ID_IS_G
OOD -g  -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xarch=v8 -D_TS_ERRNO
-xO3 -xspace -xildoff   -DVERSION=\"3.0002\" -DXS_VERSION=\"3.0002\" -KPIC
"-I/usr/per
l5/5.8.4/lib/sun4-solaris-64int/CORE"   mysql.c
Running Mkbootstrap for DBD::mysql ()
chmod 644 mysql.bs
rm -f blib/arch/auto/DBD/mysql/mysql.so
LD_RUN_PATH="/opt/mysql/mysql/lib:/lib:/usr/lib" /usr/bin/perl myld cc  -G
dbdimp.o mysql.o  -o blib/arch/auto/DBD/mysql/mysql.so
-L/opt/mysql/mysql/lib -lmy
sqlclient -lz -lposix4 -lcrypt -lgen -lsocket -lnsl -lm -lmtmalloc
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/DBD::mysql.3
Manifying blib/man3/DBD::mysql::INSTALL.3
Manifying blib/man3/Mysql.3
Manifying blib/man3/Bundle::DBD::mysql.3
  /usr/local/bin/make   -- OK
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00base.............install_driver(mysql) failed: Can't load
'/export/home/root/.cpan/build/DBD-mysql-3.0002/blib/arch/auto/DBD/mysql/mysql.so'
for module DBD
::mysql: ld.so.1: perl: fatal: libmtmalloc.so.1: DF_1_NOOPEN tagged object
may not be dlopen()'ed at
/usr/perl5/5.8.4/lib/sun4-solaris-64int/DynaLoader.pm line
 230.
 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
dubious
        Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 4-5
        Failed 2/5 tests, 60.00% okay
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.