Re: compile failure on 2.4.18 kernel
[email protected] Wed, 12 Mar 2003 12:43:23 -0600
| Newsgroups | gmane.linux.tape |
|---|---|
| Message-ID | <[email protected]> |
Bryan Henderson wrote: > > > > ftape 4.04a doesn't compile for modern kernels. You need to get the > current ftape, which is labelled "unstable" or something like that. Still trying on a 2.4.18 kernel. I went and retrieved the ftape-4.x-2002_08_02 tarball, it being the latest in the unstable dir. I'm getting a lot farther, but still have failure. make[2]: Entering directory `/home/kevin/ftape/ftape-4.x-2002_08_02/' gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strength-reduce -D__KERNEL__ -I. -I../../include -I/usr/src/linux/include -DCONFIG_X86 -mpreferred-stack-boundary=2 -march=i586 -DMODULE -c -o zftape-rw.o zftape-rw.c zftape-rw.c: In function `zft_set_flags': zftape-rw.c:76: `ZFT_Q80_MODE' undeclared (first use in this function) zftape-rw.c:76: (Each undeclared identifier is reported only once zftape-rw.c:76: for each function it appears in.) zftape-rw.c:76: `ZFT_ZIP_MODE' undeclared (first use in this function) zftape-rw.c:78: warning: unreachable code at beginning of switch statement make[2]: *** [zftape-rw.o] Error 1 make[2]: Leaving directory `/home/kevin/ftape/ftape-4.x-2002_08_02/ftape/zftape' make[1]: *** [_modsubdir_zftape] Error 2 make[1]: Leaving directory `/home/kevin/ftape/ftape-4.x-2002_08_02/ftape' make: *** [all] Error 2 I do NOT have CONFIG_ZFT_OBSOLETE defined in MCONFIG. I guess I need to make sure I'm not using CONFIG_ZFT_COMPRESSOR and CONFIG_ZFT_COMPRESSOR_MODULE? Since there are no previous tapes, I don't have to worry about backward compatibility. I think the part that's getting me into trouble here is in include/linux/zftape.h: #ifndef CONFIG_ZFT_OBSOLETE # define ZFT_MINOR_OP_MASK 0 #else /* NOTE: all of these bits are considered OBSOLETE. In-kernel * compression isn't supported any longer, and the "raw mode" stuff is * controlled using an ioctl */ # define ZFT_Q80_MODE (1 << 3) Since CONFIG_ZFT_OBSOLETE is not defined, but apparently the _MODULE def is, the compile is failing. Is the proper thing to do to change MCONFIG so that DCONFIG_ZFT_COMPRESSOR_MODULE and CONFIG_ZFT_COMPRESSOR are always undef? TIA, Kevin - To unsubscribe from this list: send the line "unsubscribe linux-tape" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html