[OFFTOPIC]: Problems compiling user applications because of

Brent M. Smith (smitten@lagged.net)
Tue, 24 Nov 1998 10:41:45 -0800 (PST)


I've run across several user space applications that have failed
compilation due to an undeclared 'SCSI_DISK_MAJOR'. So far, both
mtools-3.9.1, and e2fsprogs-1.06.tar.gz have failed under 2.1.x....
(I'm currently running 2.1.129) I took a look inside the
../include/linux/major.h, and found that SCSI_DISK_MAJOR was indeed
defined, but instead of a constant, it turned out to be a macro.

line 103 of include/linux/major.h:

--
#define SCSI_DISK_MAJOR(M) ((M) == SCSI_DISK0_MAJOR || \
  ((M) >= SCSI_DISK1_MAJOR && (M) <= SCSI_DISK7_MAJOR))
--

The program, (this from line 93, of mzip.c, of mtools-3.9.1 package), expects 'SCSI_DISK_MAJOR' to be a constant (or so it seems):

--
#ifdef OS_linux
                        if (MAJOR(st_mnt.st_rdev) == SCSI_DISK_MAJOR &&
                            MINOR(st_mnt.st_rdev) >= MINOR(st_dev.st_rdev) &&
                            MINOR(st_mnt.st_rdev) <= MINOR(st_dev.st_rdev)+15) {
--

I was just wondering what I could do to fix this problem, and possibly if their was an equivalent constant, by another name, which could suffice instead of 'SCSI_DISK_MAJOR'. And should I send an email out to the authors of the program?

Thanks for you time, in advance.

Brent M. Smith, <smitten@lagged.net>

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/