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

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

am 30.11.2005 07:37:48 von Jake Peavy

------=_Part_34279_21504534.1133332668069
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

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=3Dv9 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) =3D -I/opt/mysql/mysql/include -xO3 -mt
-D_FORTEC_ -xarch=3Dv9 -xc99=3Dnone
embedded (mysql_config) =3D
libs (mysql_config) =3D -xarch=3Dv9 -L/opt/mysql/mysql/lib
-lmysqlclient -lz -lposix4 -lcrypt -lgen -lsocket -lnsl -lm -lmtmalloc
mysql_config (guessed ) =3D mysql_config
nocatchstderr (default ) =3D 0
nofoundrows (default ) =3D 0
ssl (guessed ) =3D 0
testdb (default ) =3D test
testhost (default ) =3D
testpassword (default ) =3D
testsocket (default ) =3D
testuser (default ) =3D

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=3Dv9'
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=3Dv9 -xc99=3Dnone
-DDBD_MYSQL_INSERT_ID_IS_G
OOD -g -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=3D64 -xarch=3Dv8 -D_TS_ERRN=
O
-xO3 -xspace -xildoff -DVERSION=3D\"3.0002\" -DXS_VERSION=3D\"3.0002\" -K=
PIC
"-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//Driv er.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 55=
9
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=3Dv9 -xc99=3Dnone
-DDBD_MYSQL_INSERT_ID_IS_G
OOD -g -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=3D64 -xarch=3Dv8 -D_TS_ERRN=
O
-xO3 -xspace -xildoff -DVERSION=3D\"3.0002\" -DXS_VERSION=3D\"3.0002\" -K=
PIC
"-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=3D"/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=3D1 /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/au to/DBD/mysql/my=
sql.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

------=_Part_34279_21504534.1133332668069--

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

am 07.12.2005 19:51:19 von Jake Peavy

------=_Part_4179_19137900.1133981479771
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Since I didn't get a response from the perl list, and since Daryn received
some responses to his similar question I thought I might see if you guys ha=
d
any ideas on why I can't make test for DBD::mysql on Solaris.

TIA,
F

---------- Forwarded message ----------
From: Jake Peavy
Date: Nov 29, 2005 11:37 PM
Subject: DBD::mysql will make but won't test on Solaris10...
To: perl@lists.mysql.com

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=3Dv9 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) =3D -I/opt/mysql/mysql/include -xO3 -mt
-D_FORTEC_ -xarch=3Dv9 -xc99=3Dnone
embedded (mysql_config) =3D
libs (mysql_config) =3D -xarch=3Dv9 -L/opt/mysql/mysql/lib
-lmysqlclient -lz -lposix4 -lcrypt -lgen -lsocket -lnsl -lm -lmtmalloc
mysql_config (guessed ) =3D mysql_config
nocatchstderr (default ) =3D 0
nofoundrows (default ) =3D 0
ssl (guessed ) =3D 0
testdb (default ) =3D test
testhost (default ) =3D
testpassword (default ) =3D
testsocket (default ) =3D
testuser (default ) =3D

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=3Dv9'
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=3Dv9 -xc99=3Dnone
-DDBD_MYSQL_INSERT_ID_IS_G
OOD -g -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=3D64 -xarch=3Dv8 -D_TS_ERRN=
O
-xO3 -xspace -xildoff -DVERSION=3D\" 3.0002\" -DXS_VERSION=3D\"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//Driv er.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 55=
9
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=3Dv9 -xc99=3Dnone
-DDBD_MYSQL_INSERT_ID_IS_G
OOD -g -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=3D64 -xarch=3Dv8 -D_TS_ERRN=
O
-xO3 -xspace -xildoff -DVERSION=3D\" 3.0002\" -DXS_VERSION=3D\"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=3D"/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=3D1 /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

------=_Part_4179_19137900.1133981479771--

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

am 07.12.2005 21:31:10 von Jake Peavy

------=_Part_6277_17017255.1133987470996
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Yep, the objects appear to be ok including the offending libmtmalloc.so.1..=
..

# ldd /export/home/root/.cpan/build/DBD-mysql-3.0002
/blib/arch/auto/DBD/mysql/mysql.so
librt.so.1 =3D> /lib/librt.so.1
libcrypt_i.so.1 =3D> /usr/lib/libcrypt_i.so.1
libgen.so.1 =3D> /lib/libgen.so.1
libsocket.so.1 =3D> /lib/libsocket.so.1
libnsl.so.1 =3D> /lib/libnsl.so.1
libm.so.2 =3D> /lib/libm.so.2
libmtmalloc.so.1 =3D> /usr/lib/libmtmalloc.so.1
libc.so.1 =3D> /lib/libc.so.1
libaio.so.1 =3D> /lib/libaio.so.1
libmd5.so.1 =3D> /lib/libmd5.so.1
libmp.so.2 =3D> /lib/libmp.so.2
libscf.so.1 =3D> /lib/libscf.so.1
libdoor.so.1 =3D> /lib/libdoor.so.1
libuutil.so.1 =3D> /lib/libuutil.so.1
/platform/SUNW,Ultra-80/lib/libc_psr.so.1
/platform/SUNW,Ultra-80/lib/libmd5_psr.so.1




On 12/7/05, Mir Islam wrote:
>
> hmm it appears that the module got compiled fine. Try doing:
> ldd /export/home/root/.cpan/build/DBD-mysql-3.0002
> /blib/arch/auto/DBD/mysql/mysql.so
>
> and see if all of the referenced objects are loading fine
>
> On 12/7/05, Jake Peavy wrote:
> >
> > Since I didn't get a response from the perl list, and since Daryn
> > received
> > some responses to his similar question I thought I might see if you guy=
s
> > had
> > any ideas on why I can't make test for DBD::mysql on Solaris.
> >
> > TIA,
> > F
> >
> > ---------- Forwarded message ----------
> > From: Jake Peavy
> > Date: Nov 29, 2005 11:37 PM
> > Subject: DBD::mysql will make but won't test on Solaris10...
> > To: perl@lists.mysql.com
> >
> > 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=3Dv9 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) =3D -I/opt/mysql/mysql/include -xO3 -mt
> > -D_FORTEC_ -xarch=3Dv9 -xc99=3Dnone
> > embedded (mysql_config) =3D
> > libs (mysql_config) =3D -xarch=3Dv9 -L/opt/mysql/mysql/lib
> > -lmysqlclient -lz -lposix4 -lcrypt -lgen -lsocket -lnsl -lm -lmtmalloc
> > mysql_config (guessed ) =3D mysql_config
> > nocatchstderr (default ) =3D 0
> > nofoundrows (default ) =3D 0
> > ssl (guessed ) =3D 0
> > testdb (default ) =3D test
> > testhost (default ) =3D
> > testpassword (default ) =3D
> > testsocket (default ) =3D
> > testuser (default ) =3D
> >
> > 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=3Dv9'
> > 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=3Dv9 -xc99=3Dnone
> > -DDBD_MYSQL_INSERT_ID_IS_G
> > OOD -g -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=3D64 -xarch=3Dv8 -D_TS_=
ERRNO
> > -xO3 -xspace -xildoff -DVERSION=3D\" 3.0002\" -DXS_VERSION=3D\"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//Driv er.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, lin=
e
> > 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=3Dv9 -xc99=3Dnone
> > -DDBD_MYSQL_INSERT_ID_IS_G
> > OOD -g -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=3D64 -xarch=3Dv8 -D_TS_=
ERRNO
> > -xO3 -xspace -xildoff -DVERSION=3D\" 3.0002\" -DXS_VERSION=3D\"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=3D"/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=3D1 /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
> >
> >
>
>
> --
>
> http://chatter.mirislam.com/

------=_Part_6277_17017255.1133987470996--

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

am 07.12.2005 22:47:27 von Gleb Paharenko

Hello.



I'm not a Solaris or DBD guru, so I could be wrong, but ldd output

doesn't show that mysql.so loads libmysqlclient (however, it can be

statically linked). There could be some problems with compiling

MySQL clients which described more in detail at:

http://dev.mysql.com/doc/refman/5.0/en/solaris.html

http://dev.mysql.com/doc/refman/5.0/en/perl-support-problems .html





I've found a bit similar issue related to building php-mysql extension

on MySQL forums. The person declares that he has solve the problem. May

be it will help you:

http://forums.mysql.com/read.php?52,55559,55559,quote=1`









Jake Peavy wrote:

>Yep, the objects appear to be ok including the offending libmtmalloc.so.1...

>

># ldd /export/home/root/.cpan/build/DBD-mysql-3.0002

>/blib/arch/auto/DBD/mysql/mysql.so

> librt.so.1 => /lib/librt.so.1

> libcrypt_i.so.1 => /usr/lib/libcrypt_i.so.1

> libgen.so.1 => /lib/libgen.so.1

> libsocket.so.1 => /lib/libsocket.so.1

> libnsl.so.1 => /lib/libnsl.so.1

> libm.so.2 => /lib/libm.so.2

> libmtmalloc.so.1 => /usr/lib/libmtmalloc.so.1

> libc.so.1 => /lib/libc.so.1

> libaio.so.1 => /lib/libaio.so.1

> libmd5.so.1 => /lib/libmd5.so.1

> libmp.so.2 => /lib/libmp.so.2

> libscf.so.1 => /lib/libscf.so.1

> libdoor.so.1 => /lib/libdoor.so.1

> libuutil.so.1 => /lib/libuutil.so.1

> /platform/SUNW,Ultra-80/lib/libc_psr.so.1

> /platform/SUNW,Ultra-80/lib/libmd5_psr.so.1

>

>

>

>

>On 12/7/05, Mir Islam wrote:

>>

>> hmm it appears that the module got compiled fine. Try doing:

>> ldd /export/home/root/.cpan/build/DBD-mysql-3.0002

>> /blib/arch/auto/DBD/mysql/mysql.so

>>

>> and see if all of the referenced objects are loading fine

>>

>> On 12/7/05, Jake Peavy wrote:

>> >

>> > Since I didn't get a response from the perl list, and since Daryn

>> > received

>> > some responses to his similar question I thought I might see if you guys

>> > had

>> > any ideas on why I can't make test for DBD::mysql on Solaris.

>> >

>> > TIA,

>> > F

>> >

>> > ---------- Forwarded message ----------

>> > From: Jake Peavy

>> > Date: Nov 29, 2005 11:37 PM

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

>> > To: perl@stripped

>> >

>> > 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//Driv er.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

>> >

>> >

>>

>>

>> --



--
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.NET http://www.ensita.net/
__ ___ ___ ____ __
/ |/ /_ __/ __/ __ \/ / Gleb Paharenko
/ /|_/ / // /\ \/ /_/ / /__ Gleb.Paharenko@ensita.net
/_/ /_/\_, /___/\___\_\___/ MySQL AB / Ensita.NET
<___/ www.mysql.com




--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql?unsub=gcdmg-mysql@m.gmane.org

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

am 08.12.2005 18:47:25 von Jake Peavy

------=_Part_2479_28417776.1134064045919
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Well I tried removing -lmtmalloc from the LIBS line. Like before, I was
able to make but not make test. This time I just get a different error
after "test".

I could look into solving this error, but is this just treating the symptom=
s
though?

Ideas welcome,
TIA,
F

# /usr/local/bin/make test
PERL_DL_NONLAZY=3D1 /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/au to/DBD/mysql/my=
sql.so'
for module DBD::mysql: ld.so.1: perl: fatal: relocation error: file
/export/home/root/.cpan/build/DBD-mysql-3.0002/blib/arch/aut o/DBD/mysql/mys=
ql.so:
symbol mysql_real_escape_string: referenced symbol not found 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
t/00base.............dubious

Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 4-5
Failed 2/5 tests, 60.00% okay





On 12/7/05, Gleb Paharenko wrote:
>
> Hello.
>
>
>
> I'm not a Solaris or DBD guru, so I could be wrong, but ldd output
>
> doesn't show that mysql.so loads libmysqlclient (however, it can be
>
> statically linked). There could be some problems with compiling
>
> MySQL clients which described more in detail at:
>
> http://dev.mysql.com/doc/refman/5.0/en/solaris.html
>
> http://dev.mysql.com/doc/refman/5.0/en/perl-support-problems .html
>
>
>
>
>
> I've found a bit similar issue related to building php-mysql extension
>
> on MySQL forums. The person declares that he has solve the problem. May
>
> be it will help you:
>
> http://forums.mysql.com/read.php?52,55559,55559,quote=3D1`
>
>
>
>
>
>
>
>
>
> Jake Peavy wrote:
>
> >Yep, the objects appear to be ok including the offending
> libmtmalloc.so.1...
>
> >
>
> ># ldd /export/home/root/.cpan/build/DBD-mysql-3.0002
>
> >/blib/arch/auto/DBD/mysql/mysql.so
>
> > librt.so.1 =3D> /lib/librt.so.1
>
> > libcrypt_i.so.1 =3D> /usr/lib/libcrypt_i.so.1
>
> > libgen.so.1 =3D> /lib/libgen.so.1
>
> > libsocket.so.1 =3D> /lib/libsocket.so.1
>
> > libnsl.so.1 =3D> /lib/libnsl.so.1
>
> > libm.so.2 =3D> /lib/libm.so.2
>
> > libmtmalloc.so.1 =3D> /usr/lib/libmtmalloc.so.1
>
> > libc.so.1 =3D> /lib/libc.so.1
>
> > libaio.so.1 =3D> /lib/libaio.so.1
>
> > libmd5.so.1 =3D> /lib/libmd5.so.1
>
> > libmp.so.2 =3D> /lib/libmp.so.2
>
> > libscf.so.1 =3D> /lib/libscf.so.1
>
> > libdoor.so.1 =3D> /lib/libdoor.so.1
>
> > libuutil.so.1 =3D> /lib/libuutil.so.1
>
> > /platform/SUNW,Ultra-80/lib/libc_psr.so.1
>
> > /platform/SUNW,Ultra-80/lib/libmd5_psr.so.1
>
> >
>
> >
>
> >
>
> >
>
> >On 12/7/05, Mir Islam wrote:
>
> >>
>
> >> hmm it appears that the module got compiled fine. Try doing:
>
> >> ldd /export/home/root/.cpan/build/DBD-mysql-3.0002
>
> >> /blib/arch/auto/DBD/mysql/mysql.so
>
> >>
>
> >> and see if all of the referenced objects are loading fine
>
> >>
>
> >> On 12/7/05, Jake Peavy wrote:
>
> >> >
>
> >> > Since I didn't get a response from the perl list, and since Daryn
>
> >> > received
>
> >> > some responses to his similar question I thought I might see if you
> guys
>
> >> > had
>
> >> > any ideas on why I can't make test for DBD::mysql on Solaris.
>
> >> >
>
> >> > TIA,
>
> >> > F
>
> >> >
>
> >> > ---------- Forwarded message ----------
>
> >> > From: Jake Peavy
>
> >> > Date: Nov 29, 2005 11:37 PM
>
> >> > Subject: DBD::mysql will make but won't test on Solaris10...
>
> >> > To: perl@stripped
>
> >> >
>
> >> > 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 hav=
e
>
> >> > 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=3Dv9 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) =3D -I/opt/mysql/mysql/include -xO3 -=
mt
>
> >> > -D_FORTEC_ -xarch=3Dv9 -xc99=3Dnone
>
> >> > embedded (mysql_config) =3D
>
> >> > libs (mysql_config) =3D -xarch=3Dv9 -L/opt/mysql/mysql/li=
b
>
> >> > -lmysqlclient -lz -lposix4 -lcrypt -lgen -lsocket -lnsl -lm
> -lmtmalloc
>
> >> > mysql_config (guessed ) =3D mysql_config
>
> >> > nocatchstderr (default ) =3D 0
>
> >> > nofoundrows (default ) =3D 0
>
> >> > ssl (guessed ) =3D 0
>
> >> > testdb (default ) =3D test
>
> >> > testhost (default ) =3D
>
> >> > testpassword (default ) =3D
>
> >> > testsocket (default ) =3D
>
> >> > testuser (default ) =3D
>
> >> >
>
> >> > 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=3Dv9'
>
> >> > Using DBI 1.48 (for perl 5.008004 on sun4-solaris-64int) installed i=
n
>
> >> > /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=3Dv9 -xc99=3Dn=
one
>
> >> > -DDBD_MYSQL_INSERT_ID_IS_G
>
> >> > OOD -g -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=3D64 -xarch=3Dv8
> -D_TS_ERRNO
>
> >> > -xO3 -xspace -xildoff -DVERSION=3D\" 3.0002\" -DXS_VERSION=3D\"3.0=
002\"
>
> >> > -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//Driv er.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=3Dv9 -xc99=3Dn=
one
>
> >> > -DDBD_MYSQL_INSERT_ID_IS_G
>
> >> > OOD -g -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=3D64 -xarch=3Dv8
> -D_TS_ERRNO
>
> >> > -xO3 -xspace -xildoff -DVERSION=3D\" 3.0002\" -DXS_VERSION=3D\"3.0=
002\"
>
> >> > -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=3D"/opt/mysql/mysql/lib:/lib:/usr/lib" /usr/bin/perl myl=
d
>
> >> > 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=3D1 /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
>
> >> >
>
> >> >
>
> >>
>
> >>
>
> >> --
>
>
>
> --
> For technical support contracts, goto https://order.mysql.com/?ref=3Densi=
ta
> This email is sponsored by Ensita.NET http://www.ensita.net/
> __ ___ ___ ____ __
> / |/ /_ __/ __/ __ \/ / Gleb Paharenko
> / /|_/ / // /\ \/ /_/ / /__ Gleb.Paharenko@ensita.net
> /_/ /_/\_, /___/\___\_\___/ MySQL AB / Ensita.NET
> <___/ www.mysql.com
>
>
>
>
> --
> MySQL General Mailing List
> For list archives: http://lists.mysql.com/mysql
> To unsubscribe: http://lists.mysql.com/mysql?unsub=3Ddjstunks@gmail.co=
m
>
>

------=_Part_2479_28417776.1134064045919--