TestDisk 6.11

Predrag Ivanovic predivan at nadlanu.com
Fri Jan 1 20:42:36 UTC 2010


On Fri, 01 Jan 2010 19:49:21 +0000
Wawrzyniec Niewodniczański wrote:

>Hi,
>
>I've tried to build latest TestDisk  - 6.11 and I got following error:
>

>ext2_dir.o: In function `ext2_copy':
>/usr/ports/others/testdisk/testdisk-6.11/src/ext2_dir.c:308: undefined
>reference to `ext2fs_file_open'
>/usr/ports/others/testdisk/testdisk-6.11/src/ext2_dir.c:318: undefined
>reference to `ext2fs_file_read'
>/usr/ports/others/testdisk/testdisk-6.11/src/ext2_dir.c:333: undefined
>reference to `ext2fs_file_close'
>collect2: ld returned 1 exit status

>I will appreciate any suggestion. Oh, I'm using
># crux
>CRUX version 2.6
>
>Wawrzek

Disable ext2fs using --without-ext2fs configure switch.
It should compile cleanly after that
I have tried, with no luck, to compile several versions of testdisk across a few e2fsprogs 
releases, on Crux-2.5 and now on 2.6.

Using e2fsprogs:
ext2_dir.o: In function `ext2_copy':
ext2_dir.c:(.text+0x70e): undefined reference to `ext2fs_file_open'
ext2_dir.c:(.text+0x76f): undefined reference to `ext2fs_file_read'
ext2_dir.c:(.text+0x7ad): undefined reference to `ext2fs_file_close'
collect2: ld returned 1 exit status
make[2]: *** [testdisk] Error 1
make[2]: Leaving directory `/usr/pkgmk/build/testdisk/src/testdisk-6.11.3/src'
make[1]: *** [all-recursive] Error 1

--without-ext2fs
 Building `/usr/pkgmk/package/testdisk#6.11.3-1.pkg.tar.gz' succeeded.

It might be the way e2fsprogs are built, it might be bug in testdisk, I don't know.
I almost always use testdisk/photorec to retrieve files from ntfs/fat* filesystems, so this is not much of a
issue for me, but i am curious :)
I'll make a static build at some point, maybe that'll work. 

HTH
Pedja
-- 
 Your/our computer(s) had suffered a memory leak, and we are waiting for them to be topped up.



More information about the CRUX mailing list