How to compile ntfsprogs

Get ntfsprogs-1.8.5.tar.gz from http://linux-ntfs.sf.net/

Installation

tar xzf ntfsprogs-1.8.5.tar.gz
cd ntfsprogs-1.8.5

Compilation

To compile version older than 1.8.5 with DJGPP,

bash
./configure CC=gcc AR=ar LD=ld
make libs

With newer version,

bash
./configure
make libs

To get a working version under NT 4, this library must be compiled with option --disable-default-device-io-ops because SetFilePointerEx used by win32_io.c is not exported by NT 4 DLL.

bash
./configure --disable-default-device-io-ops
make libs

Back to TestDisk compilation