Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 39106 - ntfsprogs -1.8.0 dies in mkntfs.c due to SCSI_DISK_MAJOR [linux-2.6 headers]
Summary: ntfsprogs -1.8.0 dies in mkntfs.c due to SCSI_DISK_MAJOR [linux-2.6 headers]
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Tim Yamin (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-22 21:02 UTC by Derk W te Bokkel
Modified: 2004-03-22 19:28 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Derk W te Bokkel 2004-01-22 21:02:20 UTC
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 Tim Yamin (RETIRED) gentoo-dev 2004-02-01 05:48:45 UTC
OK, the patch is in CVS and I've also modified the e2fsprogs one to work properly with SCSI disks. Thanks!
Comment 2 ra 2004-03-22 19:28:10 UTC
**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