Hello
I just tried to install the new ftape version 4.02 on my system (kernel
2.2.5) but after executing the �make� - instruction I�m getting the
following errors (after a while of compiling):
...proper �make�- outputs ...
...
fdc-io.c: In function 'fdc_interrupt_wait':
fdc-io.c:433: structure has no member called 'timeout'
fdc-io.c:454: structure has no member called 'timeout'
make: *** [fdc-io.o] Error 1
This concerns the files fdc-io.c and fdc-io.h in the subdirectory
/lowlevel.
There I found the following declarations:
int fdc_interrupt_wait(fdc_info_t *fdc, unsigned integer time)
int fdc_ready_wait(fdc_info_t *fdc, unsigned intger timeout)
In the file fdc-io.c there are the following statemens that seem to
cause the trouble:
around line 443:
--snip--
/* timeout time will be up to USPT microseconds too long ! */
current->timeout = jiffies + (1000 * time + FT_USPT - 1) / FT_USPT;
current->state = TASK_INTERRUPTIBLE;
add_wait_queue(&fdc->wait_intr, &wait);
fdc_enable_irq(fdc);
while (!fdc->interrupt_seen && current->state != TASK_RUNNING) {
schedule(); /* sets TASK_RUNNING on timeout */
}
--snap--
around line 454:
--snip--
current->state = TASK_RUNNING;
if (fdc->interrupt_seen) { /* woken up by interrupt */
current->timeout = 0; /* interrupt hasn't cleared this */
fdc->interrupt_seen = 0;
TRACE_EXIT 0;
}
--snap--
What is causing the error ?
Should maybe the formerly mentioned declaration be like
int fdc_interrupt_wait(fdc_info_t *fdc, timeout) ??? (Just an idea)
I am working with the following tools:
egcs-2.91.60
GNU ld 2.9.1
GNU as 2.9.1
Do I really have to change the code ?
Is this a �proper �bug ?
Did I forget anything ?
Could anyone help me ? I would be glad if so.
Yours
Markus