25 June 2017, 22:22 | #1 |
Registered User
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
|
Viceplus build error
i try to build VicePlus - crosscompile on cygwin32 bit
Code:
CC=m68k-amigaos-gcc.exe ./configure --host=m68k-amigaos --with-picasso96 --without-resid Code:
mousedrv.c: In function `rem_inputhandler': mousedrv.c:150: sizeof applied to an incomplete type mousedrv.c: In function `add_inputhandler': mousedrv.c:163: sizeof applied to an incomplete type mousedrv.c:166: dereferencing pointer to incomplete type mousedrv.c:167: dereferencing pointer to incomplete type mousedrv.c:168: dereferencing pointer to incomplete type mousedrv.c:169: dereferencing pointer to incomplete type make[5]: *** [Makefile:771: mousedrv.o] Error 1 Code:
128 static struct IOStdReq *inputReqBlk = NULL; 129 static struct MsgPort *inputPort = NULL; 130 static struct Interrupt *inputHandler = NULL; 131 static const UBYTE HandlerName[] = __FILE__ " input handler"; 132 static int input_error = -1; 133 134 void rem_inputhandler(void) 135 { 136 if (!input_error) { 137 inputReqBlk->io_Data=(APTR)inputHandler; 138 inputReqBlk->io_Command=IND_REMHANDLER; 139 DoIO((struct IORequest *)inputReqBlk); 140 CloseDevice((struct IORequest *)inputReqBlk); 141 input_error = -1; 142 } 143 144 if (inputReqBlk) { 145 DeleteIORequest((struct IORequest *)inputReqBlk); 146 inputReqBlk = NULL; 147 } 148 149 if (inputHandler) { 150 lib_FreeMem(inputHandler, sizeof(struct Interrupt)); 151 inputHandler = NULL; 152 } 153 154 if (inputPort) { 155 DeleteMsgPort(inputPort); 156 inputPort = NULL; 157 } 158 } 159 160 int add_inputhandler(void) 161 { 162 if ((inputPort = CreateMsgPort())) { 163 if ((inputHandler = (struct Interrupt *)lib_AllocMem(sizeof(struct Interrupt), MEMF_PUBLIC|MEMF_CLEAR))) { 164 if ((inputReqBlk = (struct IOStdReq *)CreateIORequest(inputPort, sizeof(struct IOStdReq)))) { 165 if (!(input_error = OpenDevice("input.device", 0, (struct IORequest *)inputReqBlk, 0))) { 166 inputHandler->is_Code = (void *)MyInputHandler; 167 inputHandler->is_Data = NULL; 168 inputHandler->is_Node.ln_Pri = 100; 169 inputHandler->is_Node.ln_Name = (STRPTR)HandlerName; 170 inputReqBlk->io_Data = (APTR)inputHandler; 171 inputReqBlk->io_Command = IND_ADDHANDLER; 172 DoIO((struct IORequest *)inputReqBlk); 173 } Code:
#ifndef _MOUSEDRV_H #define _MOUSEDRV_H #include "types.h" extern int mousedrv_resources_init(void); extern int mousedrv_cmdline_options_init(void); extern void mousedrv_init(void); extern void rem_inputhandler(void); extern void mousedrv_mouse_changed(void); extern BYTE mousedrv_get_x(void); extern BYTE mousedrv_get_y(void); extern void mousedrv_sync(void); #endif does anyone know how to fix this? Last edited by emufan; 25 June 2017 at 22:30. |
26 June 2017, 18:52 | #2 |
Registered User
Join Date: Dec 2010
Location: Athens/Greece
Age: 53
Posts: 719
|
Well, it complains for what is passed to the sizeof in two lines.
The type is struct Interrupt, so #include <exec/interrupts>, that will fix all the dereferencing on struct Interrupt * too Hope it works. |
26 June 2017, 19:04 | #3 |
Registered User
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
|
oh, cool. it does work
actually it is: #include <exec/interrupts.h>added in mousedrv.c thanks |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
WHDLoad error: error during 'resload_LoadKick' on monkey island & others | jamespstevenson | project.MAGE | 14 | 20 February 2014 05:33 |
ERROR: Metal Masters (Illegal Instruction / Address Error / Black Screen) | killergorilla | project.Killergorilla's WHD packs | 7 | 25 March 2012 15:32 |
ERROR: Leisure Suit Larry Enhanced (Address Error) | batwinky | project.Killergorilla's WHD packs | 23 | 30 January 2011 13:00 |
(ERROR) Shadow Warriors - DOS Error #219 | Retro-Nerd | project.Killergorilla's WHD packs | 5 | 04 January 2009 16:26 |
ERROR: Arena (Psygnosis) (resload_control error) | killergorilla | project.Killergorilla's WHD packs | 5 | 25 September 2007 17:39 |
|
|