Problems compiling DBI 1.38 on perl 5.6.1

From: Douglas Smith (douglas_at_SLAC.Stanford.EDU)
Date: 10/30/03


Date: Thu, 30 Oct 2003 13:39:50 -0800
To: dbi-users@perl.org


Having a problem compiling DBI1.38 (and 1.36 and 1.37) for use
in perl 5.6.1. This is on RedHat 7.2 using gcc 2.95.3. Oldish stuff
I know, but that is what we have to use to be compatible with other
software in use.

Is there a problem compiling the newer versions of the DBI for use
in perl 5.6.1? I did not think this would be a problem.

Oh we are also seeing a problem on solaris 9 too. The error seem
to be similar perhaps -

on solaris:
"DBI.xs", line 1276: undefined symbol: thr
"DBI.xs", line 1276: left operand of "->" must be pointer to struct/union
"DBI.xs", line 1278: left operand of "->" must be pointer to struct/union
"DBI.xs", line 1278: left operand of "->" must be pointer to struct/union
"DBI.xs", line 1278: left operand of "->" must be pointer to struct/union
"DBI.xs", line 1278: left operand of "->" must be pointer to struct/union
cc: acomp failed for DBI.c

on redhat 7.2:
DBI.xs: In function `dbih_clearcom':
DBI.xs:979: warning: unused variable `thr'
DBI.xs:978: warning: unused variable `Perl___notused'
DBI.xs: In function `dbih_get_fbav':
DBI.xs:1116: warning: unused variable `Perl___notused'
DBI.xs: In function `dbih_set_attr_k':
DBI.xs:1276: `thr' undeclared (first use in this function)
DBI.xs:1276: (Each undeclared identifier is reported only once
DBI.xs:1276: for each function it appears in.)
DBI.xs:1278: warning: left-hand operand of comma expression has no effect
DBI.xs:1271: warning: unused variable `Perl___notused'
DBI.xs:1196: warning: unused variable `Perl___notused'
DBI.xs: In function `dbih_get_attr_k':
DBI.xs:1407: warning: unused variable `Perl___notused'
DBI.xs: In function `log_where':
DBI.xs:1784: warning: unused variable `Perl___notused'
DBI.xs: In function `XS_DBI_dispatch':
DBI.xs:2544: warning: unused variable `Perl___notused'
DBI.c: At top level:
dbipport.h:529: warning: `my_sv_2pvbyte' defined but not used
make: *** [DBI.o] Error 1

Any ideas?

Douglas

-- 
-----------------------------------------------------------
Douglas A. Smith                  douglas@slac.stanford.edu
Office: Bld 280, Rm 157                       (650)926-2369
-----------------------------------------------------------


Relevant Pages

  • Re: ANNOUNCE: DBD:Oracle 1.18
    ... Well a warning in one compiler is better than and error in an other so I ... This might be a problem more with the older oracle OCI in your client. ... perl -Mblib t/26exe_array.t ...
    (perl.dbi.users)
  • AW: Problems building DBD-Oracle-1.16 on HP
    ... Looks as if gcc gets some parameters it does not understand. ... I have tried all the various incantations listed in the READMEs (perl ... Oracle version 10.2.0.2 ... Oracle.c:24: warning: 'RETVAL' might be used uninitialized in this ...
    (perl.dbi.users)
  • Help: Install DBI-Oracle on cygwin with Perl 5.8.0
    ... I am new in the Perl world. ... Xlib.xs:383: warning: cast to pointer from integer of different size ...
    (comp.lang.perl)
  • Help: Install DBI-Oracle on cygwin with Perl 5.8.0
    ... I am new in the Perl world. ... Xlib.xs:383: warning: cast to pointer from integer of different size ...
    (comp.lang.perl.modules)
  • ANNOUNCE: Win32::GUI V1.06
    ... Win32::GUI is a Perl extension allowing creation of native Win32 GUI ... controls of an MDI child window. ... The info and warning icon for balloon tooltips were the wrong ... (Tracker: 1709017) ...
    (comp.lang.perl.modules)