I'm on Perl 5.6.1 on Solaris 5.8 trying to install DBD::DB2. It's the latest version from CPAN (0.78).

I was successful in installing the latest version of DBI (1.46) (although I was forced into the somewhat puzzling detour of having to install Test::Simple and Test::Harness first).

When it came to DBD::DB2, I logged in as user db2inst1 (as recommended in the README) and ran "perl Makefile.PL" which ran fine. But when I ran "make" I got this:

$ make gcc -c -I"/usr/include" -fno-strict-aliasing -I/usr/local/include -D_L +ARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"0.22\" -DXS +_VERSION=\"0.22\" -fPIC -I/usr/local/lib/perl5/5.6.1/sun4-solaris/COR +E Constants.c cc1: warning: changing search order for system directory "/usr/local/i +nclude" cc1: warning: as it has already been specified as a non-system direc +tory cc1: warning: changing search order for system directory "/usr/include +" cc1: warning: as it has already been specified as a non-system direc +tory In file included from /usr/local/lib/perl5/5.6.1/sun4-solaris/CORE/per +lsdio.h:5, from /usr/local/lib/perl5/5.6.1/sun4-solaris/CORE/ipe +rlsys.h:300, from /usr/local/lib/perl5/5.6.1/sun4-solaris/CORE/per +l.h:1947, from Constants.xs:10: /usr/include/stdio.h:143: warning: #pragma redefine_extname conflicts +with declaration /usr/include/stdio.h:144: warning: #pragma redefine_extname conflicts +with declaration /usr/include/stdio.h:145: warning: #pragma redefine_extname conflicts +with declaration /usr/include/stdio.h:146: warning: #pragma redefine_extname conflicts +with declaration /usr/include/stdio.h:147: warning: #pragma redefine_extname conflicts +with declaration In file included from /usr/local/lib/perl5/5.6.1/sun4-solaris/CORE/per +l.h:1961, from Constants.xs:10: /usr/local/lib/perl5/5.6.1/sun4-solaris/CORE/scope.h:206: parse error +before "sigjmp_buf" /usr/local/lib/perl5/5.6.1/sun4-solaris/CORE/scope.h:206: warning: no +semicolon at end of struct or union /usr/local/lib/perl5/5.6.1/sun4-solaris/CORE/scope.h:213: parse error +before '}' token In file included from /usr/local/lib/perl5/5.6.1/sun4-solaris/CORE/per +l.h:2821, from Constants.xs:10: /usr/local/lib/perl5/5.6.1/sun4-solaris/CORE/proto.h:247: parse error +before "off64_t" /usr/local/lib/perl5/5.6.1/sun4-solaris/CORE/proto.h:249: parse error +before "Perl_do_sysseek" /usr/local/lib/perl5/5.6.1/sun4-solaris/CORE/proto.h:249: parse error +before "off64_t" /usr/local/lib/perl5/5.6.1/sun4-solaris/CORE/proto.h:249: warning: dat +a definition has no type or storage class /usr/local/lib/perl5/5.6.1/sun4-solaris/CORE/proto.h:250: parse error +before "Perl_do_tell" /usr/local/lib/perl5/5.6.1/sun4-solaris/CORE/proto.h:250: warning: dat +a definition has no type or storage class *** Error code 1 make: Fatal error: Command failed for target `Constants.o' Current working directory /tmp/PerlMods/DBD-DB2-0.78/Constants *** Error code 1 make: Fatal error: Command failed for target `subdirs' [root@dietls]tmp/PerlMods/DBD-DB2-0.78# cat make.out gcc -c -I"/usr/include" -fno-strict-aliasing -I/usr/local/include -D_L +ARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"0.22\" -DXS +_VERSION=\"0.22\" -fPIC -I/usr/local/lib/perl5/5.6.1/sun4-solaris/COR +E Constants.c cc1: warning: changing search order for system directory "/usr/local/i +nclude" cc1: warning: as it has already been specified as a non-system direc +tory cc1: warning: changing search order for system directory "/usr/include +" cc1: warning: as it has already been specified as a non-system direc +tory In file included from /usr/local/lib/perl5/5.6.1/sun4-solaris/CORE/per +lsdio.h:5, from /usr/local/lib/perl5/5.6.1/sun4-solaris/CORE/ipe +rlsys.h:300, from /usr/local/lib/perl5/5.6.1/sun4-solaris/CORE/per +l.h:1947, from Constants.xs:10: /usr/include/stdio.h:143: warning: #pragma redefine_extname conflicts +with declaration /usr/include/stdio.h:144: warning: #pragma redefine_extname conflicts +with declaration /usr/include/stdio.h:145: warning: #pragma redefine_extname conflicts +with declaration /usr/include/stdio.h:146: warning: #pragma redefine_extname conflicts +with declaration /usr/include/stdio.h:147: warning: #pragma redefine_extname conflicts +with declaration In file included from /usr/local/lib/perl5/5.6.1/sun4-solaris/CORE/per +l.h:1961, from Constants.xs:10: /usr/local/lib/perl5/5.6.1/sun4-solaris/CORE/scope.h:206: parse error +before "sigjmp_buf" /usr/local/lib/perl5/5.6.1/sun4-solaris/CORE/scope.h:206: warning: no +semicolon at end of struct or union /usr/local/lib/perl5/5.6.1/sun4-solaris/CORE/scope.h:213: parse error +before '}' token In file included from /usr/local/lib/perl5/5.6.1/sun4-solaris/CORE/per +l.h:2821, from Constants.xs:10: /usr/local/lib/perl5/5.6.1/sun4-solaris/CORE/proto.h:247: parse error +before "off64_t" /usr/local/lib/perl5/5.6.1/sun4-solaris/CORE/proto.h:249: parse error +before "Perl_do_sysseek" /usr/local/lib/perl5/5.6.1/sun4-solaris/CORE/proto.h:249: parse error +before "off64_t" /usr/local/lib/perl5/5.6.1/sun4-solaris/CORE/proto.h:249: warning: dat +a definition has no type or storage class /usr/local/lib/perl5/5.6.1/sun4-solaris/CORE/proto.h:250: parse error +before "Perl_do_tell" /usr/local/lib/perl5/5.6.1/sun4-solaris/CORE/proto.h:250: warning: dat +a definition has no type or storage class *** Error code 1 make: Fatal error: Command failed for target `Constants.o' Current working directory /tmp/PerlMods/DBD-DB2-0.78/Constants *** Error code 1 make: Fatal error: Command failed for target `subdirs'

In reply to Can't install DBD::DB2 module by Matt_Simon

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.