Re: Error in st module in 2.1.20

Oliver Elphick (olly@linda.lfix.co.uk)
Thu, 09 Jan 1997 17:09:10 +0000


In message <Pine.LNX.3.95.970109084253.11629B-100000@www.readysoft.es>, writes:
>
>I'm successfully running latest modutils with a 2.0.27 kernel.
>I've compiled a 2.1.20 kernel too.
>But i've tried to compile 2.1.20 modules with latest modutils and it
>stops when it reaches the scsi tape module:
>
>gcc -D__KERNEL__ -I/usr/src/linux-2.1.20/include -Wall
> -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -fno-strength-reduce
> -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=586
> -DMODULE -DMODVERSIONS
> -include /usr/src/linux-2.1.20/include/linux/modversions.h
> -c -o st.o
>st.c
>st.c: In function `st_attach':
>st.c:3050: `ST_SYSV' undeclared (first use this function)
>st.c:3050: (Each undeclared identifier is reported only once
>st.c:3050: for each function it appears in.)
>

This appears to be a simple omission from drivers/scsi/st_options.h.

I have added the following lines; (could someone tell me if I have
misinterpreted the meaning of ST_SYSV):

/* If ST_SYSV is non-zero, System V semantics are used on closure: the tape
is positioned after the next file-mark. If ST_SYSV is zero, BSD semantics
are used: the tape is not moved on closure */
#define ST_SYSV 0