[comp.lang.perl] Perl on NeXTstation; compilation problem w/ "index"

kim@MorningStar.Com (Kim L. Toms) (06/01/91)

I've answered the question about "use strchr instead of index?" with
strchr.  Is there something else I need to do?

cc -c `sh cflags.SH perl.o` perl.c
          CFLAGS =  -O
perl.h:105: warning: bcopy redefined
perl.h:106: warning: bzero redefined
perl.c:55: no args to macro `index'
*** Exit 1
Stop.

youki@newmars.ics.osaka-u.ac.jp (Youki Kadobayashi) (06/01/91)

>>>>> On 31 May 91 22:35:25 GMT, kim@MorningStar.Com (Kim L. Toms) said:

> I've answered the question about "use strchr instead of index?" with
> strchr.  Is there something else I need to do?

> cc -c `sh cflags.SH perl.o` perl.c
>           CFLAGS =  -O
> perl.h:105: warning: bcopy redefined
> perl.h:106: warning: bzero redefined
> perl.c:55: no args to macro `index'
> *** Exit 1
> Stop.

Just comment out or remove the declaration
	char *index();
or something like this, which appears near line 55 of perl.c.

With this modification, I compiled perl 4.003 successfully on NeXT
cube running NeXTstep 2.0.

Hope this helps,
--
Youki Kadobayashi
Information Network Architecture Lab.
Dept. of Info. and Comp. Sci, Osaka University, Japan