Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!uupsi!sunic!sics.se!sics.se!jw From: jw@sics.se (Johan Widen) Newsgroups: comp.lang.perl Subject: Re: Perl 4.003 on SunOs 4 and RS/6000 Message-ID: <1991Apr17.235208.16515@sics.se> Date: 17 Apr 91 23:52:08 GMT References: Sender: news@sics.se Distribution: comp Organization: Swedish Institute of Computer Science, Kista Lines: 41 In-Reply-To: victor@watson.ibm.com's message of 16 Apr 91 21: 49:52 GMT >>>>> In article , victor@watson.ibm.com (Victor Miller) writes: victor> I had gotten perl 3.044 to build successfully on RS/6000's by adding victor> the option -qlanglvl=ansi (I don't think much else). However, lots of victor> things have changed in 4.003 and am stymied. I have the following victor> errors: victor> shire.watson.ibm.com:/a/shire/homes/shire/victor/perl-4.003: make victor> cc -c `sh cflags.SH perl.o` perl.c victor> CFLAGS = -D_NO_PROTO -qlanglvl=ansi -O victor> 53 | char *index(), *strcpy(), *getenv(); victor> 1506-041: (S) Parameter list cannot contain fewer parameters than required by macro definition. victor> 869 | curcmd = &compiling; victor> ...........a............ victor> a - 1506-016: (E) Operands must be pointers to compatible types. victor> make: 1254-004 The error code from the last command is 1. I made the following change to perl.c *** perl.c.org Tue Apr 16 09:59:49 1991 --- perl.c Tue Apr 16 19:50:48 1991 *************** *** 50,56 **** --- 50,58 ---- { register STR *str; register char *s; + #ifndef __STDC__ char *index(), *strcpy(), *getenv(); + #endif bool dosearch = FALSE; #ifdef DOSUID char *validarg = ""; I did not compile with -qlanglvl=ansi and I did not use optimization either. I seem to remember that I used -D_NO_PROTO but I'm not sure. -- Johan Widen SICS, PO Box 1263, S-164 28 KISTA, SWEDEN Internet: jw@sics.se Tel: +46 8 752 15 32 Ttx: 812 61 54 SICS S Fax: +46 8 751 72 30