Thanks for your answer. I don't have all the commands i did right here, but i kept what i did for DBD::DB2.

STEP 1: root@whms17368 > /usr/perl5/5.8.4/bin/perlgcc Makefile.PL Configuring DBD::DB2... Remember to actually read the README and CAVEATS files! Using DB2 in "/home/db2inst1" System: perl5.008004 DBI1.616 sunos localhost 5.10 sun4u sparc SUNW,Ul +tra-2 sun4-solaris-64int dl_dlopen.xs Compiler: gcc -O2 -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFF +SET_BITS=64 -D_TS_ERRNO Includes: -I"/home/db2inst1/include" -I"/usr/perl5/site_perl/5.8.4/su +n4-solaris-64int/auto/DBI" -I"/usr/perl5/5.8.4/lib/sun4-solaris-64int +/auto/DBI" -I"/usr/perl5/vendor_perl/5.8.4/sun4-solaris-64int/auto/DB +I" -I"/usr/perl5/site_perl/5.8.4/sun4-solaris-64int/auto/DBI" Libraries: -L/home/db2inst1/lib -ldb2 Note (probably harmless): No library found for -ldb2 Writing Makefile for DBD::DB2::Constants Writing Makefile for DBD::DB2 STEP2: root@whms17368 > make gcc -c -I"/home/db2inst1/include" -D_LARGEFILE_SOURCE -D_FILE_OFFSET +_BITS=64 -D_TS_ERRNO -O2 -fno-strict-aliasing -DVERSION=\"1.82\" +-DXS_VERSION=\"1.82\" -fPIC "-I/usr/perl5/5.8.4/lib/sun4-solaris-64in +t/CORE" Constants.c Running Mkbootstrap for DBD::DB2::Constants () chmod 644 Constants.bs rm -f ../blib/arch/auto/DBD/DB2/Constants/Constants.so LD_RUN_PATH="" gcc -G Constants.o -o ../blib/arch/auto/DBD/DB2/Const +ants/Constants.so chmod 755 ../blib/arch/auto/DBD/DB2/Constants/Constants.so cp Constants.bs ../blib/arch/auto/DBD/DB2/Constants/Constants.bs chmod 644 ../blib/arch/auto/DBD/DB2/Constants/Constants.bs gcc -c -I"/home/db2inst1/include" -I"/usr/perl5/site_perl/5.8.4/sun4- +solaris-64int/auto/DBI" -I"/usr/perl5/5.8.4/lib/sun4-solaris-64int/au +to/DBI" -I"/usr/perl5/vendor_perl/5.8.4/sun4-solaris-64int/auto/DBI" +-I"/usr/perl5/site_perl/5.8.4/sun4-solaris-64int/auto/DBI" -D_LARGEF +ILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -O2 -fno-strict-aliasin +g -DVERSION=\"1.82\" -DXS_VERSION=\"1.82\" -fPIC "-I/usr/perl5/5. +8.4/lib/sun4-solaris-64int/CORE" -DDB2_CACHE_FIX DB2.c gcc -c -I"/home/db2inst1/include" -I"/usr/perl5/site_perl/5.8.4/sun4- +solaris-64int/auto/DBI" -I"/usr/perl5/5.8.4/lib/sun4-solaris-64int/au +to/DBI" -I"/usr/perl5/vendor_perl/5.8.4/sun4-solaris-64int/auto/DBI" +-I"/usr/perl5/site_perl/5.8.4/sun4-solaris-64int/auto/DBI" -D_LARGEF +ILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -O2 -fno-strict-aliasin +g -DVERSION=\"1.82\" -DXS_VERSION=\"1.82\" -fPIC "-I/usr/perl5/5. +8.4/lib/sun4-solaris-64int/CORE" -DDB2_CACHE_FIX dbdimp.c dbdimp.c: In function `dbd_db_connect': dbdimp.c:314: warning: cast to pointer from integer of different size dbdimp.c:325: warning: cast to pointer from integer of different size dbdimp.c:336: warning: cast to pointer from integer of different size dbdimp.c: In function `db2_db_STORE_attrib': dbdimp.c:897: warning: cast to pointer from integer of different size dbdimp.c: In function `dbd_conn_opt': dbdimp.c:2482: warning: cast to pointer from integer of different size dbdimp.c: In function `db2_st_STORE_attrib': dbdimp.c:3209: warning: cast to pointer from integer of different size Running Mkbootstrap for DBD::DB2 () chmod 644 DB2.bs rm -f blib/arch/auto/DBD/DB2/DB2.so LD_RUN_PATH="" gcc -G DB2.o dbdimp.o -o blib/arch/auto/DBD/DB2/DB2. +so chmod 755 blib/arch/auto/DBD/DB2/DB2.so cp DB2.bs blib/arch/auto/DBD/DB2/DB2.bs chmod 644 blib/arch/auto/DBD/DB2/DB2.bs Manifying blib/man3/Bundle::DBD::DB2.3 Manifying blib/man3/DBD::DB2.3 root@whms17368 > STEP 3: root@whms17368 > make install Files found in blib/arch: installing files in blib/lib into architectu +re dependent library tree Writing /usr/perl5/site_perl/5.8.4/sun4-solaris-64int/auto/DBD/DB2/.pa +cklist Appending installation info to /usr/perl5/5.8.4/lib/sun4-solaris-64int +/perllocal.pod STEP 4: root@whms17368 > cd /export/home/ccmadm/CCM root@whms17368 > perl CCM.pl 2012/01/13 11:56:09 start test! ld.so.1: perl: fatal: relocation error: file /usr/perl5/site_perl/5.8. +4/sun4-solaris-64int/auto/DBD/DB2/DB2.so: symbol SQLAllocHandle: refe +renced symbol not found Killed

In reply to Re^2: Problem Compiling under Solaris using DBI and DBD::DB2 by palaxos
in thread Problem Compiling under Solaris using DBI and DBD::DB2 by palaxos

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.