Re: Install DBD-Informix on 64bit RHEL

2008-10-09 Thread Jonathan Leffler
On Thu, Oct 9, 2008 at 12:26 AM, Peter J. Holzer [EMAIL PROTECTED] wrote:

 On 2008-10-09 10:58:01 +1000, Changcheng Zou wrote:
  I got a 64bit RHEL running 32bit IDS11(we don't have 32bit IDS). The
  processor is a Xeon 3000, therefore I believe that 32bit software will
 run.
  Everything goes fine until we got this DBD-Informix problem. Because the
  perl is a 64bit version (5.10.0), but the esql is a 32bit. We got error
  messages as following,

 You cannot link a 32 bit library to a 64 bit program (or vice versa).
 You will either have to get the 64bit client libraries of informix
 (assuming the exist) or compile a 32 bit version of perl.



Peter is spot on.  And 64-bit CSDK (ESQL/C) should be available.

The only thing that concerns me is that the Makefile.PL is supposed to
detect a mismatch between 64-bit Perl and 32-bit ESQL/C (or vice versa).
Please could you send me (no need to trouble the list) the output of 'perl
-V', and also the full output from 'perl Makefile.PL'.  With luck, that will
allow me to see why you didn't get a sane error message about mixing 32-bit
and 64-bit files.




 
 *--
 
  lib/DBD/Informix/Defaults.pm written OK
  esqlinfo.h written OK
 
  Testing whether your Informix test environment will work...
  /usr/bin/ld: skipping incompatible /opt/ids/lib/esql/libifsql.so when
  searching for -lifsql
  /usr/bin/ld: skipping incompatible /opt/ids/lib/esql/libifsql.a when
  searching for -lifsql
  /usr/bin/ld: cannot find -lifsql
 
 *
 
 
  I have no idea what this '-lifsql' is.

 -lifsql means link with the ifsql library. The linker does find two
 libraries (/opt/ids/lib/esql/libifsql.so and
 /opt/ids/lib/esql/libifsql.a) but both are of the wrong type, so it
 tells you that it cannot use them.




-- 
Jonathan Leffler [EMAIL PROTECTED]  #include disclaimer.h
Guardian of DBD::Informix - v2008.0513 - http://dbi.perl.org
Blessed are we who can laugh at ourselves, for we shall never cease to be
amused.


Install DBD-Informix on 64bit RHEL

2008-10-08 Thread Changcheng Zou
Dear Everyone,
I got a 64bit RHEL running 32bit IDS11(we don't have 32bit IDS). The
processor is a Xeon 3000, therefore I believe that 32bit software will run.
Everything goes fine until we got this DBD-Informix problem. Because the
perl is a 64bit version (5.10.0), but the esql is a 32bit. We got error
messages as following,

*--

lib/DBD/Informix/Defaults.pm written OK
esqlinfo.h written OK

Testing whether your Informix test environment will work...
/usr/bin/ld: skipping incompatible /opt/ids/lib/esql/libifsql.so when
searching for -lifsql
/usr/bin/ld: skipping incompatible /opt/ids/lib/esql/libifsql.a when
searching for -lifsql
/usr/bin/ld: cannot find -lifsql
collect2: ld returned 1 exit status
Failed to link test program esqltest
Warning: No success on command[/usr/local/bin/perl Makefile.PL]
JOHNL/DBD-Informix-2008.0513.tar.gz
/usr/local/bin/perl Makefile.PL -- NOT OK
Running make test
Make had some problems, won't test
Running make install
Make had some problems, won't install
Failed during this command:
JOHNL/DBD-Informix-2008.0513.tar.gz : writemakefile NO '/usr/local/bin/perl
Makefile.PL' returned status 6400
*


I have no idea what this '-lifsql' is. I checked on google that someone
believe it is something to do with gcc flags, say '-m32'.. Is there
anyone successfully installed DBD-Informix on a 64bit box? Or we should just
move back to 32bit RHEL?

Thank you