Réf. : Re: compile dbi in aix with gcc

[email protected]
Newsgroups perl.dbi.users
Message-ID <OF3CED117E.1C9E34FB-ON85257822.006B55BD-85257822.006B9729@muhc.mcgill.ca>
Dear Jonathan,

Thank you for your help.

I grab the last perl: 5.12.3
compiled it without thread: ok

compiled:
ExtUtils-MakeMaker-6.56 = ok
Text-SimpleTable-2.03 = ok
DBI-1.616 = ok, make test is ok, I did make install = ok

I will try to compile perl with thread.

Regards,

Yves





Pour :  <[email protected]>
cc :    <[email protected]> 

Objet : Re: compile dbi in aix with gcc

On Mon, Jan 24, 2011 at 07:09, <[email protected]> wrote:

>
> Dear,
>
> I try to compile the dbi module on aix but I got an error (see the
> build.log).
>
> I am not a perl expert (I do not know this language), I have to migrate 
an
> application using perl+dbi::mysql
>
> Version:
> DBI-1.616
> ExtUtils-MakeMaker-6.57_06
> Text-SimpleTable-2.03
>
> perl5 (revision 5 version 8 subversion 9) (see build.log for complete
> info)
>
> aix: AIX axap30 1 6 00C02AC44C00
>

The key part of the 180 K trace is that (a) the build phase worked without
obvious issues, and (b) the test summary gives:

Failed Test                    Stat Wstat Total Fail  List of Failed
-------------------------------------------------------------------------------
t/06attrs.t                     255 65280   148  294  2-148
t/10examp.t                     255 65280   210  420  1-210
t/48dbi_dbd_sqlengine.t         255 65280    ??   ??  ??
t/49dbd_file.t                  255 65280    ??   ??  ??
t/50dbm_simple.t                  2   512    ??   ??  ??
t/51dbm_file.t                    2   512    ??   ??  ??
t/52dbm_complex.t                 2   512    ??   ??  ??
t/85gofer.t                     255 65280    ??   ??  ??
t/zvg_06attrs.t                 255 65280   148  294  2-148
t/zvg_10examp.t                 255 65280   210  420  1-210
t/zvg_48dbi_dbd_sqlengine.t     255 65280    ??   ??  ??
t/zvg_49dbd_file.t              255 65280    ??   ??  ??
t/zvg_50dbm_simple.t            255 65280    ??   ??  ??
t/zvg_51dbm_file.t                2   512    ??   ??  ??
t/zvg_52dbm_complex.t             2   512    ??   ??  ??
t/zvg_85gofer.t                 255 65280    ??   ??  ??
t/zvn_48dbi_dbd_sqlengine.t     255 65280    ??   ??  ??
t/zvn_49dbd_file.t              255 65280    ??   ??  ??
t/zvn_50dbm_simple.t              2   512    ??   ??  ??
t/zvn_51dbm_file.t                2   512    ??   ??  ??
t/zvn_52dbm_complex.t             2   512    ??   ??  ??
t/zvn_85gofer.t                 255 65280    ??   ??  ??
t/zvp_06attrs.t                 255 65280   148  294  2-148
t/zvp_10examp.t                 255 65280   210  420  1-210
t/zvp_48dbi_dbd_sqlengine.t     255 65280    ??   ??  ??
t/zvp_49dbd_file.t              255 65280    ??   ??  ??
t/zvp_50dbm_simple.t              2   512    ??   ??  ??
t/zvp_51dbm_file.t                2   512    ??   ??  ??
t/zvp_52dbm_complex.t             2   512    ??   ??  ??
t/zvp_85gofer.t                 255 65280    ??   ??  ??
t/zvxgn_48dbi_dbd_sqlengine.t   255 65280    ??   ??  ??
t/zvxgn_49dbd_file.t            255 65280    ??   ??  ??
t/zvxgn_50dbm_simple.t          255 65280    ??   ??  ??
t/zvxgn_51dbm_file.t              2   512    ??   ??  ??
t/zvxgn_52dbm_complex.t           2   512    ??   ??  ??
t/zvxgn_85gofer.t               255 65280    ??   ??  ??
t/zvxgnp_48dbi_dbd_sqlengine.t  255 65280    ??   ??  ??
t/zvxgnp_49dbd_file.t           255 65280    ??   ??  ??
t/zvxgnp_50dbm_simple.t         255 65280    ??   ??  ??
t/zvxgnp_51dbm_file.t             2   512    ??   ??  ??
t/zvxgnp_52dbm_complex.t          2   512    ??   ??  ??
t/zvxgnp_85gofer.t              255 65280    ??   ??  ??
t/zvxgp_06attrs.t               255 65280   148  294  2-148
t/zvxgp_10examp.t               255 65280   210  420  1-210
t/zvxgp_48dbi_dbd_sqlengine.t   255 65280    ??   ??  ??
t/zvxgp_49dbd_file.t            255 65280    ??   ??  ??
t/zvxgp_50dbm_simple.t          255 65280    ??   ??  ??
t/zvxgp_51dbm_file.t              2   512    ??   ??  ??
t/zvxgp_52dbm_complex.t           2   512    ??   ??  ??
t/zvxgp_85gofer.t               255 65280    ??   ??  ??
t/zvxnp_48dbi_dbd_sqlengine.t   255 65280    ??   ??  ??
t/zvxnp_49dbd_file.t            255 65280    ??   ??  ??
t/zvxnp_50dbm_simple.t            2   512    ??   ??  ??
t/zvxnp_51dbm_file.t              2   512    ??   ??  ??
t/zvxnp_52dbm_complex.t           2   512    ??   ??  ??
t/zvxnp_85gofer.t               255 65280    ??   ??  ??
30 tests and 225 subtests skipped.
Failed 56/178 test scripts. 1428/5109 subtests failed.


The section of output for t/06attrs.t is:

ok 41 - Simple Hash - Neat numeric
ok
t/06attrs.......................1..148
ok 1 - use DBI;
dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 2-148
Failed 147/148 tests, 0.68% okay
t/07kids........................1..20
ok 1 - The object isa DBI::db


The very start of the log contains:

*** You are using a perl configured with threading enabled.

Your perl was compiled with gcc (version 4.2.0), okay.



I've not seen a failure like that...but maybe this synopsis will help 
those
who have.

Possibilities:
* Use (build) a non-threaded Perl
* Don't use an underscore'd version of ExtUtils::MakeMaker
* Update to a more recent Perl (5.12.2, for example)

However, I don't think any of those is a prticularly plausible candidate 
for
the source of the trouble.

--
Jonathan Leffler <[email protected]>  #include <disclaimer.h>
Guardian of DBD::Informix - v2008.0513 - http://dbi.perl.org
"Blessed are we who can laugh at ourselves, for we shall never cease to be
amused."
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.