Ryan --

Thanks. Applied.

-- Gregor

On Tue, 2001-10-23 at 11:51, [EMAIL PROTECTED] wrote:
> I fixed this with the patches below, so everything at least will make.  However 
>calling pdump on a pbc file will segfault at the end.
> 
> Index: pdump.c
> ===================================================================
> RCS file: /home/perlcvs/parrot/pdump.c,v
> retrieving revision 1.3
> diff -r1.3 pdump.c
> 12a13,14
> > #include "parrot/parrot.h"
> > #include "parrot/interpreter.h"
> 17,22c19,25
> <     struct stat       file_stat;
> <     int               fd;
> <     char *            packed;
> <     long              packed_size;
> <     struct PackFile * pf;
> < 
> ---
> >     struct stat            file_stat;
> >     int                    fd;
> >     char *                 packed;
> >     long                   packed_size;
> >     struct PackFile *      pf;
> >     struct Parrot_Interp * interpreter;
> >   
> 60a64
> >     interpreter = make_interpreter();
> 63c67,69
> <     PackFile_unpack(pf, packed, packed_size);
> ---
> >     interpreter->code = pf;
> >     
> >     PackFile_unpack(interpreter, pf, packed, packed_size);
> 
> 
> Index: Makefile.in
> ===================================================================
> RCS file: /home/perlcvs/parrot/Makefile.in,v
> retrieving revision 1.38
> diff -r1.38 Makefile.in
> 46,47c46,47
> < $(PDUMP): pdump$(O) packfile$(O) memory$(O) global_setup$(O) string$(O) 
>strnative$(O) strutf8$(O) strutf16$(O) strutf32$(O) transcode$(O)
> <   $(CC) $(CFLAGS) -o $(PDUMP) pdump$(O) packfile$(O) memory$(O) global_setup$(O) 
>string$(O) strnative$(O) strutf8$(O) strutf16$(O) strutf32$(O) transcode$(O) 
>resources$(O) $(C_LIBS)
> ---
> > $(PDUMP): pdump$(O) $(O_FILES)
> >   $(CC) $(CFLAGS) -o $(PDUMP) pdump$(O) $(O_FILES) $(C_LIBS)
> 
> 
> -----------------------------------------------------------
> 
> Thus spake [EMAIL PROTECTED] (Peter Cornelius):
> > I get a the following error when I do a 'make' with a fresh checkout.
> > 
> > pdump.c: In function `main':
> > pdump.c:63: warning: passing arg 1 of `PackFile_unpack' from incompatible
> > pointe
> > r type
> > pdump.c:63: warning: passing arg 2 of `PackFile_unpack' from incompatible
> > pointe
> > r type
> > pdump.c:63: warning: passing arg 3 of `PackFile_unpack' makes pointer from
> > integ
> > er without a cast
> > pdump.c:63: too few arguments to function `PackFile_unpack'
> > make: *** [pdump.o] Error 1
> > 
> > Host info.
> > [ /home/peterc/parrot/parrot]uname -a
> > Linux goip 2.2.16 #1 Wed Aug 2 20:22:26 GMT 2000 i686 unknown
> > [ /home/peterc/parrot/parrot]gcc -v
> > Reading specs from /usr/lib/gcc-lib/i486-suse-linux/2.95.2/specs
> > gcc version 2.95.2 19991024 (release)
> > 
> > It looks like PackFile_pack wants a 'struct Parrot_Interp *interpreter' that
> > it's not getting from pdump.c
> > 
> > Just tryin' to help,
> > Peter C.
> 
> 
> 
-- 
 _____________________________________________________________________ 
/     perl -e 'srand(-2091643526); print chr rand 90 for (0..4)'      \

   Gregor N. Purdy                          [EMAIL PROTECTED]
   Focus Research, Inc.                http://www.focusresearch.com/
   8080 Beckett Center Drive #203                   513-860-3570 vox
   West Chester, OH 45069                           513-860-3579 fax
\_____________________________________________________________________/

Reply via email to