Ext2fs library is usually installed with your OS, so you won't need to compile it yourself.

How to compile Ext2fs Library

Get e2fsprogs-1.34.tgz at http://e2fsprogs.sourceforge.net or on TestDisk web page.

cd testdisk
tar xvf e2fsprogs-1.34.tgz

In e2fsprogs-1.34/lib/ext2fs/flushb.c, add at the beginning of the file before #if HAVE_SYS_MOUNT_H.

#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h>
#endif

Compilation

Under Dos or Win9x, run

bash
cd e2fsprogs-1.34
./configure --with-cc=gcc && make libs

Back to TestDisk compilation