> [EMAIL PROTECTED] - Wed Nov 20 08:26:56 2002]: > > I am following the steps in the README.os390 file and I have applied > the > fix to makedepend.SH (provided by Peter Prymmer) with regard to the > unwanted removal of the last #endif statement in perly.c as below: > > --- makedepend.SH.orig Mon Nov 29 18:05:08 1999 > +++ makedepend.SH Mon Nov 29 18:10:43 1999 > @@ -130,6 +130,9 @@ > -e 's|\\$||' \ > -e p \ > -e '}' ) >UU/$file.c > + if [ "$osname" = os390 -a "$file" = perly.c ]; then > + $echo '#endif' >>UU/$file.c > + fi > $cppstdin $finc -I. $cppflags $cppminus <UU/$file.c | > $sed \ > -e '/^#.*<stdin>/d' \ > End of Patch. > > and having made this fix the Configure and the make depend steps > complete > cleanly with no warnings or errors.
This patch appears to have made it into makedepend.SH. > However, when performing the actual make step I am encountering the > following error when compiling perly.c > > ERROR CCN3276 ./perly.c:128 Syntax error: possible missing ')'? > > I decided to turn on the -V flag of the c89 compiler and this > identified > the error as follows: > > 125 |#define POSTINC 315 > | 48923 > 126 |#define POSTDEC 316 > | 48924 > 127 |#define ARROW 317 > | 48925 > 128 |extern int yychar, yyerrflag; > | 48926 > 128 +extern int (my_perl->Iyychar), (my_perl->Iyyerrflag); > + 48926 > ===========> > ......................a.............................................................................. > *=ERROR===========> a - CCN3276 Syntax error: possible missing ')'? > 129 |#if YYDEBUG > | 48927 > 130 |yyTypedRules yyRules[] = { > | 48928 > 131 | { "&00: %01 &00", 0}, > | 48929 > 132 | { "%01: %07 %12", 1}, > | 48930 > > This appears to be a problem with the actual C code itself. > > I have tried compiling perl with exactly the same options but without > enabling thread support and it compiles and installs with no problems. Are you able to compile recent stable perls in os390 with thread support enabled?