tpqic02.c compilation error

linuxsys@ssg.com
Mon, 20 Nov 1995 04:34:42 GMT


Karl Heinz Kremer writes:
[...]
> I don't know if this was already discussed while I had problems
> receiving mails from this mailing list, so if this was already
> covered before would somebody please be so kind and forward
> me the resolution.
>
> When I'm compiling 1.3.42 (don't know about earlier versions,
> I am upgrading from 1.3.37 to .42) I get the following
> compilation error:
>
> gcc -D__KERNEL__ -I/usr/src/linux-1.3/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -m386 -c -o tpqic02.o tpqic02.c
> tpqic02.c: In function `qic02_tape_ioctl':
> tpqic02.c:2580: `IOCCMD_MASK' undeclared (first use this function)
> tpqic02.c:2580: (Each undeclared identifier is reported only once
> tpqic02.c:2580: for each function it appears in.)
> make[2]: *** [tpqic02.o] Error 1
>
> The constant IOCCMD_MASK is not defined anywhere (at least I was not
> able to find it).

I re-created the constant by checking recent patches and where
IOCCMD_MASK was referenced in the patches. I found it in the ioctl
code and simply put a definition in tpqic02.c like this:
#define IOCCMD_MASK 0x0000ffff /* command code */

I've copied Linus about this and also tried to contact the maintainer,
based on the address in the header. The maintainer's address bounced.

Rick