DBI 1.14 compile errors on AIX 4.3.3 with perl5.005_03 
Author Message
 DBI 1.14 compile errors on AIX 4.3.3 with perl5.005_03

I haven't gone to a later version of DBI because I'm installing a
replacement development server and it needs to match production.
Anyway, the DBI README says:
---
For perl5.005 onwards: If you get "`thr' undeclared" compiler error,
you'll need to add "dTHR;" to the top of the function that has the
error.
---

But this does not seem to be helping me unless I'm doing it wrong.  
First I do a perl Makefile.PL and then I add dTHR; to all the
functions that 'make' was bombing out on in the Perl.c file.

EXAMPLE:
XS(XS_DBD__Perl__dr_discon_all_)
{
    dTHR;                         <<==== added
    dXSARGS;
    dXSI32;
    if (items != 1)
       croak("Usage: %s(drh)", GvNAME(CvGV(cv)));

I also poked around the DBI.xs file but not sure if I should do
anything
there.  Anyway, I am still receiving the following errors on
'make'(below).
Oh yes, and yes, I AM using the same gcc 2.95.2 compiler for perl/DBI.
If anyone can offer any expertise I would sure appreciate it.  Thanks!

-Barbara

        gcc -c  -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE
-I/usr/local/include -O     -DVERSION=\"1.14\"  -DXS_VERSION=\"1.14\"
-fpic -I/usr/local/lib/perl5/5.00503/aix/CORE -Wall -Wno-comment
-DDBI_NO_THREADS Perl.c
cc1: warning: -fpic ignored for AIX (all code is position independent)
Perl.xsi: In function `XS_DBD__Perl__dr_discon_all_':
Perl.xsi:38: `sv_yes' undeclared (first use in this function)
Perl.xsi:38: (Each undeclared identifier is reported only once
Perl.xsi:38: for each function it appears in.)
Perl.xsi:38: `sv_no' undeclared (first use in this function)
Perl.xsi: In function `XS_DBD__Perl__db__login':
Perl.xsi:63: `sv_yes' undeclared (first use in this function)
Perl.xsi:63: `sv_no' undeclared (first use in this function)
Perl.xsi: In function `XS_DBD__Perl__db_commit':
Perl.xsi:75: `sv_yes' undeclared (first use in this function)
Perl.xsi:75: `sv_no' undeclared (first use in this function)
Perl.xsi: In function `XS_DBD__Perl__db_rollback':
Perl.xsi:84: `sv_yes' undeclared (first use in this function)
Perl.xsi:84: `sv_no' undeclared (first use in this function)
Perl.xsi: In function `XS_DBD__Perl__db_disconnect':
Perl.xsi:108: `sv_yes' undeclared (first use in this function)
Perl.xsi:108: `sv_no' undeclared (first use in this function)
Perl.xsi: In function `XS_DBD__Perl__db_STORE':
Perl.xsi:121: `sv_yes' undeclared (first use in this function)
Perl.xsi:124: `sv_no' undeclared (first use in this function)
Perl.xsi: In function `XS_DBD__Perl__db_DESTROY':
Perl.xsi:143: `sv_yes' undeclared (first use in this function)
Perl.xsi: In function `XS_DBD__Perl__st__prepare':
Perl.xsi:197: `na' undeclared (first use in this function)
Perl.xsi:197: warning: left-hand operand of comma expression has no
effect
Perl.xsi:197: warning: left-hand operand of comma expression has no
effect
Perl.xsi:198: `sv_yes' undeclared (first use in this function)
Perl.xsi:198: `sv_no' undeclared (first use in this function)
Perl.xsi: In function `XS_DBD__Perl__st_bind_param':
Perl.xsi:233: `na' undeclared (first use in this function)
Perl.xsi:233: warning: left-hand operand of comma expression has no
effect
Perl.xsi:233: warning: left-hand operand of comma expression has no
effect
Perl.xsi:239: `sv_yes' undeclared (first use in this function)
Perl.xsi:239: `sv_no' undeclared (first use in this function)
Perl.xsi: In function `XS_DBD__Perl__st_bind_param_inout':
Perl.xsi:269: `na' undeclared (first use in this function)
Perl.xsi:269: warning: left-hand operand of comma expression has no
effect
Perl.xsi:269: warning: left-hand operand of comma expression has no
effect
Perl.xsi:274: `sv_yes' undeclared (first use in this function)
Perl.xsi:274: `sv_no' undeclared (first use in this function)
Perl.xsi: In function `XS_DBD__Perl__st_fetchrow_arrayref':
Perl.xsi:328: `sv_undef' undeclared (first use in this function)
Perl.xsi: In function `XS_DBD__Perl__st_finish':
Perl.xsi:369: `sv_yes' undeclared (first use in this function)
Perl.xsi:369: `sv_no' undeclared (first use in this function)
Perl.xsi: In function `XS_DBD__Perl__st_blob_read':
Perl.xsi:388: `sv_undef' undeclared (first use in this function)
Perl.xsi: In function `XS_DBD__Perl__st_STORE':
Perl.xsi:401: `sv_yes' undeclared (first use in this function)
Perl.xsi:404: `sv_no' undeclared (first use in this function)
Perl.xsi: In function `XS_DBD__Perl__st_DESTROY':
Perl.xsi:429: `sv_yes' undeclared (first use in this function)
make: 1254-004 The error code from the last command is 1.

Stop.



Wed, 06 Jul 2005 07:50:26 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. DBI object version 1.14 does not match $DBI::VERSION 1.18

2. ERROR compiling Perl5.003 on a AIX system 4.1.4

3. AIX 4.1: compile errors for Perl5

4. Compiling Perl5.001m on AIX 4.1.3 using AIX C

5. DBI 1.14 info request (newbie)

6. problems compiling perl5.005_03 on Solaris 2.4

7. DBI 1.06 error with cygwin perl 5.005_03

8. Compile Perl5.4 on AIX 4.2 with Gcc 2.8.0

9. Probs Compiling Perl5.00{2,3} under AIX 4.1.4

10. Problems in compiling perl5.002_01 for AIX 4.1.4

11. Compiling Perl5.001n on AIX

12. compiling perl5.001m on aix 4.1.3

 

 
Powered by phpBB® Forum Software