Jonathon, 
 
OK... we're making progress... that is a 64 bit db2... maybe there is a
problem with their libraries.  Anyway, what from that error I'd sent you
indicates that it's going against a 32 bit db2 lib?  btw... I really
appreciate your help on this.  
 
rpcjq-mphqa1cjs101;/rpcjqhome/rpcjq>exit
[EMAIL PROTECTED] DBD_DBI]# su - rpcjq
mphqa1cjs101
 
############################################################
*** db2instance ---> rpcjq
*** db2dbdft    ---> DBRPCJ
*** schema      ---> RPCJQ
*** UNIX ID     ---> rpcjq
############################################################
 
rpcjq-mphqa1cjs101;/rpcjqhome/rpcjq>db2level
DB21085I  Instance "rpcjq" uses "64" bits and DB2 code release
"SQL08025" with 
level identifier "03060106".
Informational tokens are "DB2 v8.1.3.112", "s060429", "MI00159", and
FixPak 
"12".
Product is installed at "/opt/IBM/db2/V8.1".
 

        -----Original Message-----
        From: Jonathan Leffler [mailto:[EMAIL PROTECTED] 
        Sent: Thursday, February 08, 2007 11:30 AM
        To: Wholey, Joseph (GTI)
        Cc: dbi-users@perl.org
        Subject: Re: perl DBD and DBI for 64 bit perl
        
        

        On 2/8/07, Wholey, Joseph (GTI) <[EMAIL PROTECTED]> wrote: 

                 
                Jonathon, 



        Dear Josaph :-) 
        


                I'm really in a pinch here:
                 
                Here's the error I get when I try to compile the DBD:.
Can you help me out here.  Below you'll find my level of Perl and the
dbd and dbi versions I'm attempting to install.
                 
                gcc  -shared DB2.o dbdimp.o   -o
blib/arch/auto/DBD/DB2/DB2.so   -L/opt/IBM/db2/V8.1/lib -ldb2   
                /usr/bin/ld: skipping incompatible
/opt/IBM/db2/V8.1/lib/libdb2.so when searching for -ldb2



        Well, it looks like the DB2 client software you have is probably
a 32-bit version, so GCC is quite correctly not linking your 64-bit
DBD::DB2 module with the 32-bit DB2 client software -- it wouldn't work
even if it tried. 
        
        You have two options:
        * Find, install, use a 64-bit DB2 client library.
        * Recompile Perl, DBI and then DBD::DB2 as 32-bit code to use
the 32-bit DB2 client.
        
        Both would work - which is better for you depends on whether you
can find a 64-bit DB2 client library. 
         
        


                /usr/bin/ld: cannot find -ldb2
                collect2: ld returned 1 exit status
                make: *** [blib/arch/auto/DBD/DB2/DB2.so] Error 1
                [EMAIL PROTECTED] DBD-DB2-0.78]# 
                 
                 
                Here are the versions I'm trying to compile as well as
the perl version. 
                 
                DBI-1.51
                DBD-DB2-0.78
                 
                [EMAIL PROTECTED] DBD-DB2-0.78]# perl -v 
                 
                This is perl, v5.8.5 built for x86_64-linux-thread-multi




        -- 
        Jonathan Leffler <[EMAIL PROTECTED]>  #include
<disclaimer.h>
        Guardian of DBD::Informix - v2005.02 - http://dbi.perl.org
        "I don't suffer from insanity - I enjoy every minute of it."
--------------------------------------------------------

If you are not an intended recipient of this e-mail, please notify the sender, 
delete it and do not read, act upon, print, disclose, copy, retain or 
redistribute it. Click here for important additional terms relating to this 
e-mail.     http://www.ml.com/email_terms/
--------------------------------------------------------

Reply via email to