These errors occur compiling kernel 1.3.31 with scsi tape included. No
modules, gcc 2.5.8.
st.c: In function `st_ioctl':
st.c:1765: warning: implicit declaration of function `_IOC_TYPE'
drivers/scsi/scsi.a(st.o): Undefined symbol __IOC_TYPE referenced from text segment
drivers/scsi/scsi.a(st.o): Undefined symbol __IOC_TYPE referenced from text segment
drivers/scsi/scsi.a(st.o): Undefined symbol __IOC_TYPE referenced from text segment
drivers/scsi/scsi.a(st.o): Undefined symbol __IOC_TYPE referenced from text segment
make: *** [vmlinux] Error 1
The following patch in ./include/asm-i386/ioctl.h fixes the problem - this
is the correct fix isn't it? I'm not a kernel hacker but it seemed the
obvious place.
--- ioctl.h~ Thu Oct 5 19:29:05 1995
+++ ioctl.h Thu Oct 5 19:29:05 1995
@@ -84,5 +84,6 @@
#define _IOC_DIR(nr) (((nr) >> _IOC_DIRSHIFT) & _IOC_DIRMASK)
#define _IOC_NR(nr) (((nr) >> _IOC_NRSHIFT) & _IOC_NRMASK)
#define _IOC_SIZE(nr) (((nr) >> _IOC_SIZESHIFT) & _IOC_SIZEMASK)
+#define _IOC_TYPE(nr) (((nr) >> _IOC_TYPESHIFT) & _IOC_TYPEMASK)
#endif /* _ASMI386_IOCTL_H */
Richard
--- Richard Waltham | dormouse@farsrobt.demon.co.uk At home in | Compuserve 100421.1276 Southampton UK | FAX + GTPN 050/066 The Board Room +44 (0) 1703 760099---