Hi:

Since you're running on a 64-bit platform, is there any chance that
you are trying to link 32-bit Perl libraries against 64-bit DB2
libraries?

"file /home/db2inst1/sqllib/lib/libdb2.so.1" will tell you the DB2
library bitness.

Dan

On 2/7/06, Jason S. Friedman <[EMAIL PROTECTED]> wrote:
> Hi, help appreciated.  I read the README and CAVEATS and did not see a
> solution to this.
>
> $ uname -a
> Linux vmddbm302.storeperform.com 2.6.9-22.0.1.ELsmp #1 SMP Tue Oct 18
> 18:39:02 EDT 2005 x86_64 x86_64 x86_64 GNU/Linux
>
> $ perl Makefile.PL
>
> Configuring DBD::DB2...
> Remember to actually read the README and CAVEATS files!
>
> Using DB2 in "/home/db2inst1/sqllib"
> ...
> [no errors]
>
> $ make
> cp DB2.pm blib/lib/DBD/DB2.pm
> cp lib/Bundle/DBD/DB2.pm blib/lib/Bundle/DBD/DB2.pm
> ...
> Running Mkbootstrap for DBD::DB2 ()
> chmod 644 DB2.bs
> rm -f blib/arch/auto/DBD/DB2/DB2.so
> gcc  -shared DB2.o dbdimp.o   -o blib/arch/auto/DBD/DB2/DB2.so
> -L/home/db2inst1/sqllib/lib -ldb2
> /usr/bin/ld: skipping incompatible /home/db2inst1/sqllib/lib/libdb2.so
> when searching for -ldb2
> /usr/bin/ld: cannot find -ldb2
> collect2: ld returned 1 exit status
>

Reply via email to