Are you using the same compiler which was used to compile the perl?  If
not, you must use the absulute same compiler, or rebuild perl with
current one.

Ilya

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, April 25, 2002 3:48 PM
> To: [EMAIL PROTECTED]
> Subject: problems when building DBI-Module
> Sensitivity: Confidential
> 
> 
> Hi!
> 
> I'm trying to install the DBI-Module, but the C-compiler 
> generates error messages. I am quite a beginner in perl and I 
> don't understand what's wrong. 
> Please could anybody help me?
> 
> Here is what I've done:
> 
> I am working on DEC OSF/1, with perl 5.004_04. The package I 
> try to build is DBI-1.201.  
> 
> I created the Makefile by
> perl Makefile.PL -LIB=~/createstats11/lib
> 
> Until here everything works fine. 
> After that I tried to make. Here's some of the output of it: 
> 
> ....
> 
> cc -c  -std -D_INTRINSICS -I/usr/local/include 
> -D__LANGUAGE_C__ -O4    
> -DVERSION=\"1.201\"  -DXS_VERSION=\"1.201\" 
> -I/usr/opt/PERL5004/lib/perl5/alpha-dec_osf/5.00404/CORE 
> -DDBI_NO_THREADS DBI.c
> cc: Error: DBI.xs, line 1611: Error parsing parameter list. 
> Found "*" when expecting one of: ",", ")". (notexpecting) 
> dbi_dopoptosub_at(PERL_CONTEXT *cxstk, I32 startingblock) 
> -------------------------------^
> cc: Error: DBI.xs, line 1614: Missing ";". (nosemi)
>     register PERL_CONTEXT *cx;
> --------------------------^
> cc: Error: DBI.xs, line 1637: Missing ";". (nosemi)
>     register PERL_CONTEXT *cx;
> --------------------------^
> cc: Error: DBI.xs, line 1638: Missing ";". (nosemi)
>     register PERL_CONTEXT *ccstack = cxstack; 
> --------------------------^
> cc: Error: DBI.xs, line 1640: Invalid statement. (badstmt)
>     char *stashname;
> ----^
> cc: Error: DBI.xs, line 1638: In this declaration, 
> "PERL_CONTEXT" has no linkage and has a prior declaration in 
> this scope at line number 1637 in file DBI.xs. (nolinkage)
>     register PERL_CONTEXT *ccstack = cxstack;
> -------------^
> 
> ....
> 
> I understand that there's something wrong with PERL_CONTEXT, 
> but in fact I don't understand what exactly it is and what I 
> can do about it. 
> 
> Can anybody help me? 
> 
> Susanne Pfeiffer
> 

Reply via email to