[users] CentOS-5 x86_64, dkms and dkms-ntfs

Tru Huynh tru at pasteur.fr
Mon Aug 27 11:35:43 CEST 2007


Hi,

[tru at woodstock ~]$ rpm -q dkms dkms-ntfs
dkms-2.0.16-1.el5.rf.noarch
dkms-ntfs-2.1.27-2.nodist.rf.noarch
[tru at woodstock ~]$ rpm -q kernel-devel kernel
kernel-devel-2.6.18-8.1.8.el5.x86_64
kernel-2.6.18-8.1.8.el5.x86_64

The ntfs module can not be rebuild :(

[tru at woodstock ~]$ sudo  dkms build -m $module_in_tree -v $version_in_tree -k $kernel 

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area....
make KERNELRELEASE=2.6.18-8.1.8.el5 -C /lib/modules/2.6.18-8.1.8.el5/build M=/var/lib/dkms/ntfs/2.1.27-2.nodist.rf/build CONFIG_NTFS_FS=m CONFIG_NTFS_RW=y....(bad exit status: 2)

Error! Bad return status for module build on kernel: 2.6.18-8.1.8.el5 (x86_64)
Consult the make.log in the build directory
/var/lib/dkms/ntfs/2.1.27-2.nodist.rf/build/ for more information.

-> attached the make.log

extracting the 2.6.18-8.1.8.el5 fs/ntfs sources and manually building
the modules yields a "working" ntfs.ko module.
[tru at woodstock ntfs]$  make -C /lib/modules/`uname -r`/build SUBDIRS=`pwd` modules
make: Entering directory `/usr/src/kernels/2.6.18-8.1.8.el5-x86_64'
  CC [M]  /home/tru/build/ntfs/aops.o
  CC [M]  /home/tru/build/ntfs/attrib.o
  CC [M]  /home/tru/build/ntfs/collate.o
...
  LD [M]  /home/tru/build/ntfs/ntfs.o
  Building modules, stage 2.
  MODPOST
  CC      /home/tru/build/ntfs/ntfs.mod.o
  LD [M]  /home/tru/build/ntfs/ntfs.ko
make: Leaving directory `/usr/src/kernels/2.6.18-8.1.8.el5-x86_64'

I had a look at unified diff (too big for the ML):
diff -uNr /usr/src/ntfs-2.1.27-2.nodist.rf/ ntfs > /tmp/ntfs.diff
(mostly a lower/upper case difference for bool/BOOL true/TRUE false/FALSE).

Cheers,

Tru
PS: dkms-fuse and fuse-ntfs are working fine on the same machine :)
-- 
Dr Tru Huynh          | http://www.pasteur.fr/recherche/unites/Binfs/
mailto:tru at pasteur.fr | tel/fax +33 1 45 68 87 37/19
Institut Pasteur, 25-28 rue du Docteur Roux, 75724 Paris CEDEX 15 France  
-------------- next part --------------
DKMS make.log for ntfs-2.1.27-2.nodist.rf for kernel 2.6.18-8.1.8.el5 (x86_64)
Mon Aug 27 11:20:49 CEST 2007
make: Entering directory `/usr/src/kernels/2.6.18-8.1.8.el5-x86_64'
  LD      /var/lib/dkms/ntfs/2.1.27-2.nodist.rf/build/built-in.o
  CC [M]  /var/lib/dkms/ntfs/2.1.27-2.nodist.rf/build/aops.o
In file included from /var/lib/dkms/ntfs/2.1.27-2.nodist.rf/build/inode.h:35,
                 from /var/lib/dkms/ntfs/2.1.27-2.nodist.rf/build/aops.h:32,
                 from /var/lib/dkms/ntfs/2.1.27-2.nodist.rf/build/aops.c:33:
/var/lib/dkms/ntfs/2.1.27-2.nodist.rf/build/layout.h:145: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?__ntfs_is_magic?
/var/lib/dkms/ntfs/2.1.27-2.nodist.rf/build/layout.h:151: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?__ntfs_is_magicp?
In file included from /var/lib/dkms/ntfs/2.1.27-2.nodist.rf/build/aops.c:34:
/var/lib/dkms/ntfs/2.1.27-2.nodist.rf/build/attrib.h:55: error: expected specifier-qualifier-list before ?bool?
/var/lib/dkms/ntfs/2.1.27-2.nodist.rf/build/attrib.h:68: warning: type defaults to ?int? in declaration of ?bool?
/var/lib/dkms/ntfs/2.1.27-2.nodist.rf/build/attrib.h:68: error: expected ?;?, ?,? or ?)? before ?write_locked?
In file included from /var/lib/dkms/ntfs/2.1.27-2.nodist.rf/build/aops.c:37:
/var/lib/dkms/ntfs/2.1.27-2.nodist.rf/build/mft.h:114: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?ntfs_may_write_mft_record?
In file included from /var/lib/dkms/ntfs/2.1.27-2.nodist.rf/build/aops.c:40:
/var/lib/dkms/ntfs/2.1.27-2.nodist.rf/build/ntfs.h:108: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?ntfs_are_names_equal?
/var/lib/dkms/ntfs/2.1.27-2.nodist.rf/build/aops.c: In function ?ntfs_read_block?:
/var/lib/dkms/ntfs/2.1.27-2.nodist.rf/build/aops.c:257: error: ?bool? undeclared (first use in this function)
/var/lib/dkms/ntfs/2.1.27-2.nodist.rf/build/aops.c:257: error: (Each undeclared identifier is reported only once
/var/lib/dkms/ntfs/2.1.27-2.nodist.rf/build/aops.c:257: error: for each function it appears in.)
/var/lib/dkms/ntfs/2.1.27-2.nodist.rf/build/aops.c:257: error: expected ?;? before ?is_retry?
/var/lib/dkms/ntfs/2.1.27-2.nodist.rf/build/aops.c:294: error: ?is_retry? undeclared (first use in this function)
/var/lib/dkms/ntfs/2.1.27-2.nodist.rf/build/aops.c:295: error: ?true? undeclared (first use in this function)
/var/lib/dkms/ntfs/2.1.27-2.nodist.rf/build/aops.c: In function ?ntfs_write_block?:
/var/lib/dkms/ntfs/2.1.27-2.nodist.rf/build/aops.c:561: error: ?bool? undeclared (first use in this function)
/var/lib/dkms/ntfs/2.1.27-2.nodist.rf/build/aops.c:561: error: expected ?;? before ?need_end_writeback?
/var/lib/dkms/ntfs/2.1.27-2.nodist.rf/build/aops.c:562: warning: ISO C90 forbids mixed declarations and code
/var/lib/dkms/ntfs/2.1.27-2.nodist.rf/build/aops.c:629: error: expected ?;? before ?is_retry?
/var/lib/dkms/ntfs/2.1.27-2.nodist.rf/build/aops.c:770: error: ?is_retry? undeclared (first use in this function)
/var/lib/dkms/ntfs/2.1.27-2.nodist.rf/build/aops.c:771: error: ?true? undeclared (first use in this function)
/var/lib/dkms/ntfs/2.1.27-2.nodist.rf/build/aops.c:877: error: ?need_end_writeback? undeclared (first use in this function)
/var/lib/dkms/ntfs/2.1.27-2.nodist.rf/build/aops.c:882: error: ?false? undeclared (first use in this function)
/var/lib/dkms/ntfs/2.1.27-2.nodist.rf/build/aops.c: In function ?ntfs_write_mst_block?:
/var/lib/dkms/ntfs/2.1.27-2.nodist.rf/build/aops.c:935: error: ?bool? undeclared (first use in this function)
/var/lib/dkms/ntfs/2.1.27-2.nodist.rf/build/aops.c:935: error: expected ?;? before ?sync?
/var/lib/dkms/ntfs/2.1.27-2.nodist.rf/build/aops.c:936: warning: ISO C90 forbids mixed declarations and code
/var/lib/dkms/ntfs/2.1.27-2.nodist.rf/build/aops.c:942: error: ?is_mft? undeclared (first use in this function)
/var/lib/dkms/ntfs/2.1.27-2.nodist.rf/build/aops.c:958: error: ?sync? undeclared (first use in this function)
/var/lib/dkms/ntfs/2.1.27-2.nodist.rf/build/aops.c:978: error: ?page_is_dirty? undeclared (first use in this function)
/var/lib/dkms/ntfs/2.1.27-2.nodist.rf/build/aops.c:978: error: ?rec_is_dirty? undeclared (first use in this function)
/var/lib/dkms/ntfs/2.1.27-2.nodist.rf/build/aops.c:978: error: ?false? undeclared (first use in this function)
/var/lib/dkms/ntfs/2.1.27-2.nodist.rf/build/aops.c:981: error: expected ?;? before ?is_retry?
/var/lib/dkms/ntfs/2.1.27-2.nodist.rf/build/aops.c:1015: error: ?true? undeclared (first use in this function)
/var/lib/dkms/ntfs/2.1.27-2.nodist.rf/build/aops.c:1054: error: ?is_retry? undeclared (first use in this function)
/var/lib/dkms/ntfs/2.1.27-2.nodist.rf/build/aops.c:1141: error: implicit declaration of function ?ntfs_may_write_mft_record?
/var/lib/dkms/ntfs/2.1.27-2.nodist.rf/build/aops.c: In function ?ntfs_writepage?:
/var/lib/dkms/ntfs/2.1.27-2.nodist.rf/build/aops.c:1510: error: ?ntfs_attr_search_ctx? has no member named ?ntfs_ino?
/var/lib/dkms/ntfs/2.1.27-2.nodist.rf/build/aops.c:1514: error: ?ntfs_attr_search_ctx? has no member named ?ntfs_ino?
make[1]: *** [/var/lib/dkms/ntfs/2.1.27-2.nodist.rf/build/aops.o] Error 1
make: *** [_module_/var/lib/dkms/ntfs/2.1.27-2.nodist.rf/build] Error 2
make: Leaving directory `/usr/src/kernels/2.6.18-8.1.8.el5-x86_64'


More information about the users mailing list