Fwd: Installing DBD::mysql fails in Solaris

Fwd: Installing DBD::mysql fails in Solaris

am 29.12.2003 10:38:08 von Leos Tovarek

--0-1779307177-1072690688=:52100
Content-Type: multipart/alternative; boundary="0-1263861212-1072690688=:52100"

--0-1263861212-1072690688=:52100
Content-Type: text/plain; charset=us-ascii

Sorry, I sent my question to incorrect e-mail, probably. :((



---------------------------------
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
--0-1263861212-1072690688=:52100
Content-Type: text/html; charset=us-ascii

Sorry, I sent my question to incorrect e-mail, probably. :((

 



Do you Yahoo!?


--0-1263861212-1072690688=:52100--
--0-1779307177-1072690688=:52100
Content-Type: message/rfc822

X-Apparently-To: ltovarek@yahoo.com via 216.109.118.185; Mon, 29 Dec 2003 01:33:56 -0800
Return-Path:
Received: from 216.109.118.188 (HELO web60405.mail.yahoo.com) (216.109.118.188)
by mta135.mail.scd.yahoo.com with SMTP; Mon, 29 Dec 2003 01:33:55 -0800
Received: from [213.189.83.103] by web60405.mail.yahoo.com via HTTP; Mon, 29 Dec 2003 01:33:55 PST
Date: Mon, 29 Dec 2003 01:33:55 -0800 (PST)
From: Leos Tovarek
Subject: Installing DBD::mysql fails in Solaris
To: msql-mysql-modules@lists.mysql.com
Cc: ltovarek@yahoo.com
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="0-1057794144-1072690435=:55011"
Content-Length: 1983

--0-1057794144-1072690435=:55011
Content-Type: text/plain; charset=us-ascii

Dear All,


Could anybody help me to install DBD::mysql in my Solaris box please ?

I have:
====================================================
# uname -a
SunOS aaa2 5.9 Generic_112233-07 sun4u sparc SUNW,Sun-Fire-280R

# perl -v
This is perl, v5.6.1 built for sun4-solaris-64int

# mysql --v
mysql Ver 12.22 Distrib 4.0.17, for sun-solaris2.9 (sparc)

# cc -V
cc: Sun C 5.5


I did:
====================================================
# cd DBD-mysql-2.9003
# 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) = -xarch=v9 -L/usr/local/mysql/lib -lmysqlclient -lposix4 -lcrypt -lgen -lsocket -lnsl -lm
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'.
Unrecognized argument in LIBS ignored: '-xarch=v9'
Using DBI 1.39 installed in /usr/perl5/site_perl/5.6.1/sun4-solaris-64int/auto/DBI
Writing Makefile for DBD::mysql

# make
cc -c -I/usr/perl5/site_perl/5.6.1/sun4-solaris-64int/auto/DBI -I/usr/local/mysql/include -Xa -xstrconst -mt -D_FORTEC_ -xarch=v9 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xO3 -xdepend -DVERSION=\"2.9003\" -DXS_VERSION=\"2.9003\" -KPIC "-I/usr/perl5/5.6.1/lib/sun4-solaris-64int/CORE" dbdimp.c
cc -c -I/usr/perl5/site_perl/5.6.1/sun4-solaris-64int/auto/DBI -I/usr/local/mysql/include -Xa -xstrconst -mt -D_FORTEC_ -xarch=v9 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xO3 -xdepend -DVERSION=\"2.9003\" -DXS_VERSION=\"2.9003\" -KPIC "-I/usr/perl5/5.6.1/lib/sun4-solaris-64int/CORE" mysql.c
"mysql.xs", line 351: 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="/lib" /usr/bin/perl myld cc -G 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
*** Error code 1
make: Fatal error: Command failed for target `blib/arch/auto/DBD/mysql/mysql.so'
#

====================================================

I don't understand why the loader doesn't like 64b module when (AFAIK) everything was created with 64b version. Couldn't it be due to unknown "-xarch=v9" or unavailable "is_prefix" function ?

I tried to install it both myself and with "cpan", I tried also "static" version as adviced in DBD html documentation but the results were the same.. :((

Could you help please ?

Thank you so much.

Regards,

Leos.




---------------------------------
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
--0-1057794144-1072690435=:55011
Content-Type: text/html; charset=us-ascii

Dear All,

 

 

Could anybody help me to install DBD::mysql in my Solaris box please ?

 

I have:

====================================================

# uname -a

SunOS aaa2 5.9 Generic_112233-07 sun4u sparc SUNW,Sun-Fire-280R

 

# perl -v

This is perl, v5.6.1 built for sun4-solaris-64int

 

# mysql --v

mysql  Ver 12.22 Distrib 4.0.17, for sun-solaris2.9 (sparc)

 

# cc -V

cc: Sun C 5.5

 

 

I did:

====================================================

# cd  DBD-mysql-2.9003

# 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) = -xarch=v9 -L/usr/local/mysql/lib -lmysqlclient -lposix4 -lcrypt -lgen -lsocket -lnsl -lm
  nocatchstderr (default     ) = 0
  nofoundrows   (default     ) = 0
  ssl           (guessed     ) = 0
  testdb        (default     ) = test
  testhost      (default     ) =
  testpassword  (default     ) =
  testuser      (default   &
nbsp; ) =

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

Unrecognized argument in LIBS ignored: '-xarch=v9'
Using DBI 1.39 installed in /usr/perl5/site_perl/5.6.1/sun4-solaris-64int/auto/DBI
Writing Makefile for DBD::mysql

 

# make

cc -c  -I/usr/perl5/site_perl/5.6.1/sun4-solaris-64int/auto/DBI -I/usr/local/mysql/include -Xa -xstrconst -mt -D_FORTEC_ -xarch=v9  -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xO3 -xdepend    -DVERSION=\"2.9003\"  -DXS_VERSION=\"2.9003\" -KPIC "-I/usr/perl5/5.6.1/lib/sun4-solaris-64int/CORE"   dbdimp.c
cc -c  -I/usr/perl5/site_perl/5.6.1/sun4-solaris-64int/auto/DBI -I/usr/local/mysql/include -Xa -xstrconst -mt -D_FORTEC_ -xarch=v9  -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xO3 -xdepend    -DVERSION=\"2.9003\"  -DXS_VERSION=\"2.9003\" -KPIC "-I/usr/perl5/5.6.1/lib/sun4-solaris-64int/CORE"   mysql.c
"mysql.xs", line 351: 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_R
UN_PATH="/lib" /usr/bin/perl myld cc  -G 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
*** Error code 1
make: Fatal error: Command failed for target `blib/arch/auto/DBD/mysql/mysql.so'
#

 

====================================================

 

I don't understand why the loader doesn't like 64b module when (AFAIK) everything was created with 64b version. Couldn't it be due to unknown "-xarch=v9" or unavailable "is_prefix" function ?

 

I tried to install it both myself and with "cpan", I tried also "static" version as adviced in DBD html documentation but the results were the same.. :((

 

Could you help please ?

 

Thank you so much.

 

Regards,

 

Leos.

 

 



Do you Yahoo!?


--0-1057794144-1072690435=:55011--

--0-1779307177-1072690688=:52100
Content-Type: text/plain; charset=us-ascii

--
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
--0-1779307177-1072690688=:52100--