Pham, Tri wrote:
To DBI support,

    I am having problem with DBI and DBD when I migrate the OS from AIX
5.1 to AIX 5.3. The migration was put the new version of Perl (5.8.2)
and wipe out the previously built DBI and DBD::Oracle on the Perl 5.6.1.
I was successful download and compile the DBI 1.53 from CPAN website but
I get the errors when I build the DBD::Oracle-1.19. I am appreciated for
your help.

    Platform: IBM,7028-6C4

    OS: AIX 5.3.04

[EMAIL PROTECTED]:/workarea/DBI/DBD-Oracle-1.19# make

Skip blib/lib/DBD/Oracle.pm (unchanged)

Skip blib/lib/DBD/mkta.pl (unchanged)

Skip blib/lib/oraperl.ph (unchanged)

Skip blib/arch/auto/DBD/Oracle/dbdimp.h (unchanged)

Skip blib/arch/auto/DBD/Oracle/ocitrace.h (unchanged)

Skip blib/lib/Oraperl.pm (unchanged)

Skip blib/arch/auto/DBD/Oracle/Oracle.h (unchanged)

Skip blib/arch/auto/DBD/Oracle/mk.pm (unchanged)

Skip blib/lib/DBD/Oracle/GetInfo.pm (unchanged)

        cc_r -c  -I/apps/oracle/product/9.2.0/rdbms/demo -I.
-I/apps/oracle/product/9.2.0/precomp/public
-I/apps/oracle/product/9.2.0/rdbms/public
-I/apps/oracle/product/9.2.0/rdbms/demo
-I/apps/oracle/product/9.2.0/plsql/public
-I/apps/oracle/product/9.2.0/network/public
-I/usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi/auto/DBI
-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384
-qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q32
-D_LARGE_FILES -qlonglong -O    -DVERSION=\"1.19\"
-DXS_VERSION=\"1.19\"
"-I/usr/opt/perl5/lib/5.8.2/aix-thread-multi/CORE"  -DUTF8_SUPPORT
-DNEW_OCI_INIT -DORA_OCI_VERSION=\"9.2.0.1\" Oracle.c

1506-507 (W) No licenses available. Contact your program supplier to add
additional users. Compilation will proceed shortly.

        cc_r -c  -I/apps/oracle/product/9.2.0/rdbms/demo -I.
-I/apps/oracle/product/9.2.0/precomp/public
-I/apps/oracle/product/9.2.0/rdbms/public
-I/apps/oracle/product/9.2.0/rdbms/demo
-I/apps/oracle/product/9.2.0/plsql/public
-I/apps/oracle/product/9.2.0/network/public
-I/usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi/auto/DBI
-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384
-qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q32
-D_LARGE_FILES -qlonglong -O    -DVERSION=\"1.19\"
-DXS_VERSION=\"1.19\"
"-I/usr/opt/perl5/lib/5.8.2/aix-thread-multi/CORE"  -DUTF8_SUPPORT
-DNEW_OCI_INIT -DORA_OCI_VERSION=\"9.2.0.1\" dbdimp.c

1506-507 (W) No licenses available. Contact your program supplier to add
additional users. Compilation will proceed shortly.

"dbdimp.c", line 1982.18: 1506-046 (S) Syntax error.

"dbdimp.c", line 1982.56: 1506-045 (S) Undeclared identifier undef.

make: 1254-004 The error code from the last command is 1.

Line 1982 is:
//check to see if value sv is a null (undef) if it is upgrade it
Your compiler does not like c++ comments.
You can:

1. find the switch to the compiler to allow c++ comments (I believe there is one but I can't remember it off the top of my head)

2. delete line 1982 and any other c++ comments or change the comments to c style ones e.g.

/* check to see if value sv is a null (undef) if it is upgrade it */

John Scholes, if you are reading: I would change all the comments to c style ones if I were you - it is not uncommon for c compilers to baulk at c++ comments.


Martin
--
Martin J. Evans
Easysoft Limited
http://www.easysoft.com

Reply via email to