
On Fri, Jan 01, 2010 at 09:42:36PM +0100, Predrag Ivanovic wrote:
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.
Yep, it's the e2fsprogs configure option --disable-debugfs. With that option the required functions etx2fs_file_* are not added to libext2fs.so. Thanks for the report. I'll adjust core/e2fsprogs if there are no objections. Greetings Juergen -- Juergen Daubert | mailto:jue@jue.li Korb, Germany | http://jue.li/crux