Bug 39106 - ntfsprogs -1.8.0 dies in mkntfs.c due to SCSI_DISK_MAJOR [linux-2.6 headers]
Bug#: 39106 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: All Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: plasmaroo@gentoo.org Reported By: derk@zapville.org
Component: Ebuilds
URL: 
Summary: ntfsprogs -1.8.0 dies in mkntfs.c due to SCSI_DISK_MAJOR [linux-2.6 headers]
Keywords:  
Status Whiteboard: 
Opened: 2004-01-22 21:02 0000
Description:   Opened: 2004-01-22 21:02 0000
same problem as in e2fsprogs  (bug 31419)  with 2.6.0 headers/kernels

compile dies in mkntfs.c because calls to SCSI_DISK_MAJOR are present on lines 2606-2607  of the source code.
If you use the same fix as in the e2fsprogs-1.34-kernel-2.6-fix.patch and eliminate the calls .. it will compile ..
Question although this works what are the implications for scsi disks. (it's only really a check for whole disk usage correct)

------- Comment #1 From Tim Yamin (RETIRED) 2004-02-01 05:48:45 0000 -------
OK, the patch is in CVS and I've also modified the e2fsprogs one to work
properly with SCSI disks. Thanks!

------- Comment #2 From ra 2004-03-22 19:28:10 0000 -------
**This problem is still occuring**

For systems with 2.6.x headers, SCSI_DISK_MAJOR needs to be changed to SCSI_DISK0_MAJOR, in order to successfully compile.

Output:

mkntfs.c: In function `main':
mkntfs.c:2582: error: `SCSI_DISK_MAJOR' undeclared (first use in this function)
mkntfs.c:2582: error: (Each undeclared identifier is reported only once
mkntfs.c:2582: error: for each function it appears in.)
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include    -D_FILE_OFFSET_BITS=64 -Wall -fms-extensions -O2 -march=pentium4 -fomit-frame-pointer -pipe -c ntfsresize.c
make[2]: *** [mkntfs.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/ntfsprogs-1.7.1/work/ntfsprogs-1.7.1/ntfsprogs'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/ntfsprogs-1.7.1/work/ntfsprogs-1.7.1'
make: *** [all-recursive-am] Error 2

!!! ERROR: sys-fs/ntfsprogs-1.7.1 failed.
!!! Function src_compile, Line 25, Exitcode 2
!!! Make failed