<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>39106</bug_id>
          
          <creation_ts>2004-01-22 21:02 0000</creation_ts>
          <short_desc>ntfsprogs -1.8.0 dies in mkntfs.c due to SCSI_DISK_MAJOR [linux-2.6 headers]</short_desc>
          <delta_ts>2004-03-22 19:28:10 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>derk@zapville.org</reporter>
          <assigned_to>plasmaroo@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>derk@zapville.org</who>
            <bug_when>2004-01-22 21:02:20 0000</bug_when>
            <thetext>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&apos;s only really a check for whole disk usage correct)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>plasmaroo@gentoo.org</who>
            <bug_when>2004-02-01 05:48:45 0000</bug_when>
            <thetext>OK, the patch is in CVS and I&apos;ve also modified the e2fsprogs one to work properly with SCSI disks. Thanks!</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>gnto@woox.net</who>
            <bug_when>2004-03-22 19:28:10 0000</bug_when>
            <thetext>**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&apos;:
mkntfs.c:2582: error: `SCSI_DISK_MAJOR&apos; 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&apos;
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/ntfsprogs-1.7.1/work/ntfsprogs-1.7.1&apos;
make: *** [all-recursive-am] Error 2

!!! ERROR: sys-fs/ntfsprogs-1.7.1 failed.
!!! Function src_compile, Line 25, Exitcode 2
!!! Make failed
</thetext>
          </long_desc>
      
    </bug>

</bugzilla>