[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


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 <suppressed> 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 <suppressed> 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 <suppressed> 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 <suppressed>
>> > Date: Nov 29, 2005 11:37 PM
>> > Subject: DBD::mysql will make but won't test on Solaris10...
>> > To: suppressed
>> >
>> > 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
>> >
>> >
>>
>>
>> --


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


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.