develooper Front page | perl.perl5.porters | Postings from February 2003

Re: Threaded perl on z/OS 1.4

Thread Previous
From:
Brian De Pradine
Date:
February 15, 2003 13:23
Subject:
Re: Threaded perl on z/OS 1.4
Message ID:
3E4E9EE2.6080704@uk.ibm.com


A . Bergman wrote:
> 
> On onsdag, feb 12, 2003, at 19:18 Europe/Stockholm, Brian De Pradine  
> wrote:
> 
>>
>>
>> A . Bergman wrote:
>>
>>> On tisdag, feb 11, 2003, at 19:47 Europe/Stockholm, Brian De Pradine  
>>> wrote:
>>>
>>>> Has anyone successfully built perl 5.8.0 on OS/390 with threading  
>>>> turned on? I am trying to build perl with threading, but I get the  
>>>> following error with the compile of perly.c.
>>>>
>>> I wouldn't think so, but it would be GREAT if we could do it!
>>>
>>>> ERROR CCN3276 ./perly.c:128   Syntax error: possible missing ')'?
>>>> CCN0793(I) Compilation failed for file ./perly.c.  Object file not  
>>>> created.
>>>> FSUM3065 The COMPILE step ended with return code 12.
>>>> FSUM3017 Could not compile perly.c. Correct the errors and try again.
>>>> make: *** [perly.o] Error 3
>>>>
>>> Ok, we didn't get very far did we, what could be wrong with?
>>> extern int yychar, yyerrflag;
>>
>>
>> From the compile listing we see the following:
>>
>>    128       |extern int yychar, yyerrflag;
>>    128       +extern int (my_perl->Iyychar),(my_perl->Iyyerrflag);
>> ===========>.....................a..................................... 
>> .................
>>  *=ERROR===========> a - CCN3276 Syntax error: possible missing ')'?
> 
> 
> Ugh, my perly.c looks very different.
> 
> Before this could you try adding a dTHX; to see if that help (defines  
> my_perl);
> 
> If it doesn't, could you send me (off the list) your perly.c?

I tried it and I got the following:

`sh  cflags "optimize=''" perly.o`  perly.c
           CCCMD =  c89 -DPERL_CORE -c -DMAXSIG=38 -DOEMVS -D_OE_SOCKETS 
-D_XOPEN
_SOURCE_EXTENDED -D_ALL_SOURCE -DYYDYNAMIC -W 0,float(ieee)
ERROR CCN3028 ./perly.c:20    Storage class "register" cannot be used 
with exter
nal data.
ERROR CCN3098 ./perly.c:20    Missing argument(s).
ERROR CCN3221 ./perly.c:20    Initializer must be a valid constant 
expression.
ERROR CCN3276 ./perly.c:128   Syntax error: possible missing ')'?
ERROR CCN3343 ./perly.c:128   Redeclaration of my_perl differs from 
previous dec
laration on line 20 of "perly.y".
CCN0793(I) Compilation failed for file ./perly.c.  Object file not created.
FSUM3065 The COMPILE step ended with return code 12.
FSUM3017 Could not compile perly.c. Correct the errors and try again.
make: *** [perly.o] Error 3

I will send you the generated versions of perly.c and perly.h

Brian



Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About