Re: DB2.xs error

2008-04-12 Thread Tarun
Hi Simon..

Please update your DBD:DB2 driver to 1.1. This version fixes this
issue by redefing the DBIc_CACHED_KIDS. Please see the following fix
done to version 1.0. It is highly recommended to use the latest
version. The following being not there in version 1.0 is the reason
why you are seeing the lvalue issue.

/*
Redefining DBIc_CACHED_KIDS to fix the compile issue in DBD::DB2
which was due to change in definition of DBIc_CACHED_KIDS in DBIv1.55
*/
#ifdef DB2_CACHE_FIX
#undef DBIc_CACHED_KIDS
#define DBIc_CACHED_KIDS(imp)_imp2com(imp, _old_cached_kids)
#endif

PS:- Let us know if this works :) Thank you for choosing our driver.


Tarun Pasrija
Owner - Perl DBD:DB2 code
India Software Labs
IBM India Pvt. Ltd.

On Apr 10, 5:01 pm, [EMAIL PROTECTED] (Hildo Biersma)
wrote:
 Simon Cheng wrote:
  Hi,

  I'm trying to install DBD::DB2 1.0 onto AIX 5.3.
  perl makefile.pl runs ok

  but when I run make, I get this error
  DB2.xs, line 115.9: 1506-025 (S) Operand must be a modifiable lvalue.
  DB2.xs, line 175.13: 1506-025 (S) Operand must be a modifiable lvalue.
  make: 1254-004 The error code from the last command is 1.

  Any suggestions?

 Please contact the group that supports DBD::DB2 - the mail address is
 [EMAIL PROTECTED], the same company and country that you are in :-)

  Thanks,

  Simon

  Simon Cheng  |  Environment Support

  [EMAIL PROTECTED]
  phone:
  tie line:
  cell:

  1-778-327-7846
  327-7846
  1-604-728-0999

 www.ibm.com/services/innovation/



DB2.xs error

2008-04-10 Thread Simon Cheng
Hi,

I'm trying to install DBD::DB2 1.0 onto AIX 5.3. 
perl makefile.pl runs ok

but when I run make, I get this error
DB2.xs, line 115.9: 1506-025 (S) Operand must be a modifiable lvalue.
DB2.xs, line 175.13: 1506-025 (S) Operand must be a modifiable lvalue.
make: 1254-004 The error code from the last command is 1.

Any suggestions?

Thanks,

Simon




Simon Cheng  |  Environment Support

[EMAIL PROTECTED]
phone: 
tie line: 
cell: 

1-778-327-7846 
327-7846 
1-604-728-0999 

www.ibm.com/services/innovation/

image/gif

Re: DB2.xs error

2008-04-10 Thread Hildo Biersma

Simon Cheng wrote:

Hi,

I'm trying to install DBD::DB2 1.0 onto AIX 5.3. 
perl makefile.pl runs ok


but when I run make, I get this error
DB2.xs, line 115.9: 1506-025 (S) Operand must be a modifiable lvalue.
DB2.xs, line 175.13: 1506-025 (S) Operand must be a modifiable lvalue.
make: 1254-004 The error code from the last command is 1.

Any suggestions?


Please contact the group that supports DBD::DB2 - the mail address is 
[EMAIL PROTECTED], the same company and country that you are in :-)




Thanks,

Simon




Simon Cheng  |  Environment Support

[EMAIL PROTECTED]
phone: 
tie line: 
cell: 

1-778-327-7846 
327-7846 
1-604-728-0999 


www.ibm.com/services/innovation/






Re: DB2.xs error

2008-04-10 Thread Jonathan Leffler
On Thu, Apr 10, 2008 at 5:01 AM, Hildo Biersma 
[EMAIL PROTECTED] wrote:

 Simon Cheng wrote:

  I'm trying to install DBD::DB2 1.0 onto AIX 5.3. perl makefile.pl runs
  ok
 
  but when I run make, I get this error
  DB2.xs, line 115.9: 1506-025 (S) Operand must be a modifiable lvalue.
  DB2.xs, line 175.13: 1506-025 (S) Operand must be a modifiable lvalue.
  make: 1254-004 The error code from the last command is 1.
 
  Any suggestions?
 

 Please contact the group that supports DBD::DB2 - the mail address is
 [EMAIL PROTECTED], the same company and country that you are in :-)



Over and above what Hildo says, you should at the minimum identify whether
you are modifying the system's install of Perl (generally a bad idea) or
whether you are using your own version.  You should also give at the least
the version of Perl you are using and probably the full 'perl -V' output.
You should also identify which version of the C compiler you are using, and
which version of the DB2 CLI you are using.

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