Solaris 9 and DBD::Mysql installation torture.

"Alan Pierce" <[email protected]>
Newsgroups gmane.comp.db.mysql.perl
Message-ID <[email protected]>
Hi,
I'm using Perl 5.8.2 on Solaris 9 Sparc.  I'm trying to install bugzilla 
...and I can't get DBD::Mysql to install- I've looked through the archives 
and have not been able to find the answer.

Please help if you can.

-Alan
bash-2.05# perl Makefile.PL
I will use the following settings for compiling and testing:
  cflags        (mysql_config) = -I/usr/local/mysql/include -Xa -xstrconst 
-mt -D_FORTEC_ -xarch=v9
  libs          (mysql_config) = -L/usr/local/mysql/lib -lmysqlclient 
-lposix4 -lcrypt -lgen -lsocket -lnsl -lm  ../zlib/libz.la
  nocatchstderr (default     ) = 0
  nofoundrows   (default     ) = 0
  ssl           (guessed     ) = 0
  testdb        (default     ) = test
  testhost      (default     ) =
  testpassword  (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: '../zlib/libz.la'
Using DBI 1.46 (for perl 5.008002 on sun4-solaris-thread-multi) installed in 
/opt/csw/lib/perl/site_perl/auto/DBI/
Writing Makefile for DBD::mysql
bash-2.05#
======

bash-2.05# make
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/opt/csw/lib/perl/site_perl/auto/DBI/ -I/usr/local/mysql/include 
-Xa -xstrconst -mt -D_FORTEC_ -xarch=v9 -D_REENTRANT -I/opt/csw/include 
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O   -DVERSION=\"2.9004\" 
-DXS_VERSION=\"2.9004\" -KPIC "-I/opt/csw/lib/perl/5.8.2/CORE"   dbdimp.c
/opt/csw/bin/perl -p -e "s/~DRIVER~/mysql/g" 
/opt/csw/lib/perl/site_perl/auto/DBI//Driver.xst > mysql.xsi
/opt/csw/bin/perl /opt/csw/share/perl/5.8.2/ExtUtils/xsubpp  -typemap 
/opt/csw/share/perl/5.8.2/ExtUtils/typemap  mysql.xs > mysql.xsc && mv 
mysql.xsc mysql.c
Warning: duplicate function definition 'do' detected in mysql.xs, line 196
Warning: duplicate function definition 'rows' detected in mysql.xs, line 294
cc -c  -I/opt/csw/lib/perl/site_perl/auto/DBI/ -I/usr/local/mysql/include 
-Xa -xstrconst -mt -D_FORTEC_ -xarch=v9 -D_REENTRANT -I/opt/csw/include 
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O   -DVERSION=\"2.9004\" 
-DXS_VERSION=\"2.9004\" -KPIC "-I/opt/csw/lib/perl/5.8.2/CORE"   mysql.c
"mysql.xs", line 355: warning: implicit function declaration: is_prefix
Running Mkbootstrap for DBD::mysql ()
chmod 644 mysql.bs
rm -f blib/arch/auto/DBD/mysql/mysql.so
LD_RUN_PATH="/usr/lib" /opt/csw/bin/perl myld cc  -G -L/usr/lib 
-L/usr/ccs/lib -L/opt/forte8/SUNWspro/prod/lib -L/opt/csw/lib dbdimp.o 
mysql.o  -o blib/arch/auto/DBD/mysql/mysql.so   -L/usr/local/mysql/lib 
-lmysqlclient -lposix4 -lcrypt -lgen -lsocket -lnsl -lm
ld: fatal: file dbdimp.o: wrong ELF class: ELFCLASS64
ld: fatal: File processing errors. No output written to 
blib/arch/auto/DBD/mysql/mysql.so
chmod 755 blib/arch/auto/DBD/mysql/mysql.so
chmod: WARNING: can't access blib/arch/auto/DBD/mysql/mysql.so
make: *** [blib/arch/auto/DBD/mysql/mysql.so] Error 1
bash-2.05#

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar - get it now! 
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/


-- 
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe:    http://lists.mysql.com/[email protected]
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.