Hi monks,

I'm having a tough time with a script i wrote that connects to a DB2 DB and does some stuff.

When i'm executing perl script.pl, i get an error :

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

Running perl in debug mode, i found out that it was the DBI->connect line that was failing :

my $dbh_DW = DBI->connect("DBI:DB2:Database=$DW_DB_NAME; Hostname=$DW_ +DB_HOST; Port=$DW_DB_PORT; Protocol=TCPIP; UID=$DW_DB_USER; PWD=$DW_D +B_PASS;",$DW_DB_USER,$DW_DB_PASS)

I've had to install the modules i needed manually (server is isolated) but i think I got them all

I'm using Solaris 10 64-bits. (using perl 5.8.4, DBI is 1.616 and DBD::DB2 is 1.82)

I've been working on this for a week, so please if anyone has an idea on why this error is happening, let me know!

Thanks!

In reply to 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.