Mailing List Archive

Perl 4.036 & D-UNIX3.2a
I'm having a problem compiling 4.036 under D-UNIX 3.2a.

After running configure I get the following message :

now you must run a make.
# make
Expect 27 shift/reduce and 57 reduce/reduce conflicts
/usr/bin/yacc -d perly.y

conflicts: 27 shift/reduce, 57 reduce/reduce
sh ./perly.fixer y.tab.c perly.c
Patching perly.c to allow dynamic yacc stack allocation
Assuming Interactive SysVr3 2.2 yaccpar
mv y.tab.h perly.h
echo 'extern YYSTYPE yylval;' >>perly.h
`sh cflags perly.o` perly.c
CCCMD = cc -c -DCRIPPLED_CC
/usr/lib/cmplrs/cc/cfe: Error: ./perl.h, line 1032: redeclaration of 'time';
previous declaration at line
126 in file '/u
sr/include/time.h'
long time();
-----^
/usr/lib/cmplrs/cc/cfe: Error: ./perl.h, line 1032: Incompatible function
return type for this function
long time();
---------^
*** Exit 1
Stop.

Can anyone help to compile this please

BTW I don't want Perl 5 because of problems with Majordomo
_____________________________________________________________________

|R| A Message from Paul Key: Reginet Systems Administrator
|E| at
|G| The Institute of Public & Environmental Health,
|I| The University of Birmingham,
|N| http://reginet.bham.ac.uk
|E| email : P.G.Key@bham.ac.uk
|T| voice (work) : 0 (+44) 121 414 7552
| | fax : 0 (+44) 121 472 1122
______________________________________________________________________
Perl 4.036 & D-UNIX3.2a [ In reply to ]
paul@reginet.bham.ac.uk writes:
> I'm having a problem compiling 4.036 under D-UNIX 3.2a.
>
> After running configure I get the following message :
>
> now you must run a make.
> # make
> Expect 27 shift/reduce and 57 reduce/reduce conflicts
> /usr/bin/yacc -d perly.y
>
> conflicts: 27 shift/reduce, 57 reduce/reduce
> sh ./perly.fixer y.tab.c perly.c
> Patching perly.c to allow dynamic yacc stack allocation
> Assuming Interactive SysVr3 2.2 yaccpar
> mv y.tab.h perly.h
> echo 'extern YYSTYPE yylval;' >>perly.h
> `sh cflags perly.o` perly.c
> CCCMD = cc -c -DCRIPPLED_CC
> /usr/lib/cmplrs/cc/cfe: Error: ./perl.h, line 1032: redeclaration of 'time';
> previous declaration at line
> 126 in file '/u
> sr/include/time.h'
> long time();
> -----^
> /usr/lib/cmplrs/cc/cfe: Error: ./perl.h, line 1032: Incompatible function
> return type for this function
> long time();
> ---------^
> *** Exit 1
> Stop.
>
> Can anyone help to compile this please
>
> BTW I don't want Perl 5 because of problems with Majordomo
> _____________________________________________________________________
>
> |R| A Message from Paul Key: Reginet Systems Administrator
> |E| at
> |G| The Institute of Public & Environmental Health,
> |I| The University of Birmingham,
> |N| http://reginet.bham.ac.uk
> |E| email : P.G.Key@bham.ac.uk
> |T| voice (work) : 0 (+44) 121 414 7552
> | | fax : 0 (+44) 121 472 1122
> ______________________________________________________________________

Change the line 1032 of perl.h to be

time_t time();

++jhi;