On 2002-01-15 12:11 -0700, Phillip Davis wrote:
> Hi, I have been trying to compile xmame for linux ppc and not getting
> anywhere.  the compile halts at the v60 cpu with this error:
> 
> src/cpu/v60/v60.c: In function `v60_info':
> src/cpu/v60/v60.c:551: dereferencing pointer to incomplete type
> make: *** [xmame.obj/cpu/v60/v60.o] Error 1
> 
> and the block of code it seems to be referring to is this: 
> 
>         if(regnum > CPU_INFO_REG && regnum < CPU_INFO_REG + V60_REGMAX)
> {
>                 int reg = regnum - CPU_INFO_REG - 1;
>                 sprintf(buffer[which], "%s:%08X", v60_reg_names[reg],
> r->reg[reg]);
>         }
> 
> where the exact line 551 is the sprintf statement. 

Strange... No incomplete types that I can see. Care to apply this
patch and tell us on which line the error occurs ?

--- v60.c       Thu Nov 22 03:44:22 2001
+++ v60.c.new   Tue Jan 15 22:38:37 2002
@@ -548,7 +548,9 @@
 
        if(regnum > CPU_INFO_REG && regnum < CPU_INFO_REG + V60_REGMAX) {
                int reg = regnum - CPU_INFO_REG - 1;
-               sprintf(buffer[which], "%s:%08X", v60_reg_names[reg], r->reg[reg]);
+               sprintf(buffer[which], "%s:%08X", "foo", 0x69);
+               sprintf(NULL, "%s:%08X", v60_reg_names[reg], 0x69);
+               sprintf(NULL, "%s:%08X", "foo", r->reg[reg]);
        }
 
        return buffer[which];

-- 
Andr� Majorel <[EMAIL PROTECTED]>
http://www.teaser.fr/~amajorel/

_______________________________________________
Xmame mailing list
[EMAIL PROTECTED]
http://toybox.twisted.org.uk/mailman/listinfo/xmame

Reply via email to