Subject: [PERL5.004_04] mg.h:13: syntax error before `)'
To: None <port-mac68k@NetBSD.ORG>
From: Makoto Fujiwara <makoto@ki.nu>
List: port-mac68k
Date: 01/24/1998 22:56:16
(Sorry for longish posting time to time),
Theo, thanks for response.
  I am running 1.3_RELEASE, I have tried two more after I posted,
One is manually patching with the patches in pkgsrc and the other
is using original pkgsrc installation  ( As suggested  at the mail:
| Subject: Re: Son of "compiling perl"
| From: David Brownlee <abs@netbsd.org>
| To: "T. Sean (Theo) Schulze" <tschulze@compuserve.com>
| cc: Port-mac68k <PORT-MAC68K@netbsd.org>
| Date: Sun, 18 Jan 1998 13:16:11 -0800 (PST)
), and resulting no good yet.

I am afraind I am reaching the conclusion that my 1.3 installation
may have the  problem.

----------
  By the way, I had problem guzipping pkgsrc.tar.gz
----------
tar zxvf /pub/NetBSD/tar_files/src/pkgsrc.tar.gz
  ...(omitted)...
pkgsrc/packages/.keep_me
pkgsrc/README

gzip: stdout: Broken pipe
tar: child returned status 1
makoto@ci  21:20:55/980124(/usr)> ls
-------------
and it seems to me everything is OK other than calculation of CRC. 
-------------
(1) Patched manually (the way which I may be totally wrong)
-------------
   390  20:11   patch -s < ../pkgsrc/lang/perl5/patches/patch-aa
   391  20:11   patch -s < ../pkgsrc/lang/perl5/patches/patch-ab
   392  20:11   patch -s < ../pkgsrc/lang/perl5/patches/patch-ac
   393  20:11   patch -s < ../pkgsrc/lang/perl5/patches/patch-ad
   394  20:11   patch -s < ../pkgsrc/lang/perl5/patches/patch-ae
   395  20:11   ./configure -des -U d_setlocale

makoto@ci  20:57:32/980124(...making/perl5.004_04)> time make
`sh  cflags libperl.a miniperlmain.o`  miniperlmain.c
          CCCMD =  gcc -DPERL_CORE -c  -O   
`sh  cflags libperl.a perl.o`  perl.c
          CCCMD =  gcc -DPERL_CORE -c  -O   
perl.c: In function `perl_call_sv':
perl.c:1092: `cur_R_M' undeclared (first use this function)
perl.c:1092: (Each undeclared identifier is reported only once
perl.c:1092: for each function it appears in.)
perl.c: In function `init_stacks':
perl.c:2337: `I37' undeclared (first use this function)
perl.c:2338: syntax error before `malloc'
*** Error code 1
-------------
(2) at /usr/src/pkgsrc/lang/perl5
-------------
makoto@ci  21:24:19/980124(...lang/perl5)> make
>> perl5.004_04.tar.gz doesn't seem to exist on this system.
>> Attempting to fetch from ftp://ftp.digital.com/pub/plan/perl/CPAN/src/5.0/.
Connected to ftp.digital.com.
   ......
Updating makefile...
Now you must run a make.
===>  Building for perl-5.00404
`sh  cflags libperl.a miniperlmain.o`  miniperlmain.c
          CCCMD =  cc -DPERL_CORE -c  -O   
In file included from perl.h:1024,
                 from miniperlmain.c:14:
mg.h:13: syntax error before `)'
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.
makoto@ci  22:17:00/980124(...lang/perl5)>  cat -n work/perl5.004_04/mg.h | sed -n 10,20p
    10  struct mgvtbl {
    11      int         (*svt_get)      _((SV *sv, MAGIC* mg));
    12      int         (*svt_set)      _((SV *sv, MAGIC* mg));
    13      U32         (*svt_len)      _((SV *sv, MAGIC* mg));
    14      int         (*svt_clear)    _((SV *sv, MAGIC* mg));
    15      int         (*svt_free)     _((SV *sv, MAGIC* mg));
    16  };
    17
    18  struct magic {
    19      MAGIC*      mg_moremagic;
    20      MGVTBL*     mg_virtual;     /* pointer to magic functions */
makoto@ci  22:43:52/980124(...lang/perl5)> 
---
Makoto Fujiwara, Chiba Japan
---
NetBSD 1.3_Release version, stripped /kern/msgbuff is:

NetBSD 1.3 (GENERIC) #56: Wed Dec 31 13:40:30 PST 1997
    allen@wormey:/usr/src/sys/arch/mac68k/compile/GENERIC
Apple Macintosh IIci  (68030)
cpu: delay factor 81
real mem = 20676608
avail mem = 16281600