Perl DBD::Informix and IDS 64-bit
Posted in 2003
Topics: General Discussion
Hello, I'm curious: does anyone have any experience using Perl DBD::Informix with 64-bit IDS? If so, how well does it work (if it works at all)? Any "gotchas" to look out for? Thanks in advance, - TJG
Thomas J. Girsch wrote: > I'm curious: does anyone have any experience using Perl > DBD::Informix with 64-bit IDS? If so, how well does it work (if it > works at all)? Any "gotchas" to look out for? There are two parts to the answer. 1. The nit-picking pedantry bit says "It depends on whether you build with a 32-bit or 64-bit version of CSDK - because a 32-bit CSDK cannot use shared memory communications with a 64-bit server - but otherwise there are no issues whatsoever". 2. I can't answer for other people, but I can give you my perspective on it. The issue with using Perl with a 64-bit IDS tends to be getting a 64-bit Perl. That depends on the platform - which you don't mention - but where you have a choice of 32-bit or 64-bit (eg Solaris), the default builds of Perl tend to be 32-bit, and that won't work with a 64-bit CSDK. So, stage 1 is understand whether you have a 32-bit vs 64-bit issue to address, and make sure you have Perl built correctly for the version of CSDK you want to use. There are some (what I hope are) minor warnings during a build of DBD::Informix with a 64-bit CSDK. The major problem is tempus fugit. If anyone wants to offer help in improving 64-bit support, talk to me! -- Jonathan Leffler #include <disclaimer.h> Email: jleffler@earthlink.net, jleffler@us.ibm.com Guardian of DBD::Informix v2003.04 -- http://dbi.perl.org/
On Tue, 09 Dec 2003 07:53:31 +0000, Jonathan Leffler wrote: > Thomas J. Girsch wrote: >> I'm curious: does anyone have any experience using Perl DBD::Informix >> with 64-bit IDS? If so, how well does it work (if it works at all)? Any >> "gotchas" to look out for? > > There are two parts to the answer. > > 1. The nit-picking pedantry bit says "It depends on whether you > build with a 32-bit or 64-bit version of CSDK - because a 32-bit CSDK > cannot use shared memory communications with a 64-bit server - but > otherwise there are no issues whatsoever". > > 2. I can't answer for other people, but I can give you my > perspective on it. > > The issue with using Perl with a 64-bit IDS tends to be getting a 64-bit > Perl. That depends on the platform - which you don't mention - but where > you have a choice of 32-bit or 64-bit (eg Solaris), the default builds of > Perl tend to be 32-bit, and that won't work with a 64-bit CSDK. > > So, stage 1 is understand whether you have a 32-bit vs 64-bit issue to > address, and make sure you have Perl built correctly for the version of > CSDK you want to use. > > There are some (what I hope are) minor warnings during a build of > DBD::Informix with a 64-bit CSDK. The major problem is tempus fugit. > > If anyone wants to offer help in improving 64-bit support, talk to me! The only "problem" I had was changing this line in /usr/informix/bin/esql: ##CC="${INFORMIXC=cc} -xarch=v9" to: CC="${INFORMIXC=gcc} -m64" This specific machine uses: Solaris 9 s9_58shwpl3 SPARC Perl Compile-time options: USE_64_BIT_INT USE_64_BIT_ALL USE_LARGE_FILES Informix CSDK: 2.81.FC1