Looks like the problem is related to the old thread support in perl (known as 5.005threads, which was fataly flawed and now replaced by iThreads).
I think DBI 1.32 was the last version tested to work with 5.005threads. Assuming this is the problem... if you don't need threads then rebuild your perl without thread support (it'll run much faster). If you do need threads then be aware that 5.005threads is *full* of problems (that won't be fixed) so upgrading perl is best. Tim. On Thu, Oct 30, 2003 at 01:39:50PM -0800, Douglas Smith wrote: > > 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 [EMAIL PROTECTED] > Office: Bld 280, Rm 157 (650)926-2369 > -----------------------------------------------------------
