Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!uunet!bywater!arnor!arnor!victor From: victor@watson.ibm.com (Victor Miller) Newsgroups: comp.lang.perl Subject: Perl 4.003 on SunOs 4 and RS/6000 Message-ID: Date: 16 Apr 91 21:49:52 GMT Sender: news@watson.ibm.com (NNTP News Poster) Reply-To: victor@watson.ibm.com Distribution: comp Organization: IBM, T.J. Watson Research Center Lines: 37 Nntp-Posting-Host: irt I found the following problem with building perl 4.003 on SunOs 4: in hints/sunos_4_0_2.sh we have echo ': work around botch in SunOS 4.0.1 and 4.0.2' >>../perl.h echo '#ifndef fputs' >>../perl.h echo '#define fputs(str,fp) fprintf(fp,"%s",str)' >>../perl.h echo '#endif' >>../perl.h Why does the first line start with a ':'? This cause cc to choke. I changed the contents of the approriate line in perl.h to use standard cc comments, and everything built ok. I had gotten perl 3.044 to build successfully on RS/6000's by adding the option -qlanglvl=ansi (I don't think much else). However, lots of things have changed in 4.003 and am stymied. I have the following errors: shire.watson.ibm.com:/a/shire/homes/shire/victor/perl-4.003: make cc -c `sh cflags.SH perl.o` perl.c CFLAGS = -D_NO_PROTO -qlanglvl=ansi -O 53 | char *index(), *strcpy(), *getenv(); 1506-041: (S) Parameter list cannot contain fewer parameters than required by macro definition. 869 | curcmd = &compiling; ...........a............ a - 1506-016: (E) Operands must be pointers to compatible types. make: 1254-004 The error code from the last command is 1. Make Quitting. Can anyone help with this? -- Victor S. Miller Vnet and Bitnet: VICTOR at WATSON Internet: victor@watson.ibm.com IBM, TJ Watson Research Center