FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CRUX > CRUX

 
 
LinkBack Thread Tools
 
Old 01-01-2010, 06:49 PM
Wawrzyniec Niewodniczański
 
Default TestDisk 6.11

Hi,

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

make[2]: Entering directory `/usr/ports/others/testdisk/testdisk-6.11/src'
gcc -g -O2 -Wdeclaration-after-statement -Wall -MD -Wpointer-arith
-Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes
-Wshadow -Wwrite-strings -W -Wcast-align -Waggregate-return
-Wbad-function-cast -Wcast-qual -Wundef -Wredundant-decls
-Wsign-compare -Wnested-externs -Winline -Wdisabled-optimization
-Wfloat-equal -Wmissing-format-attribute -Wmultichar -o testdisk
common.o crc.o ewf.o fnctdsk.o hdaccess.o hdcache.o hdwin32.o hidden.o
hpa_dco.o intrf.o log.o log_part.o misc.o msdos.o parti386.o partgpt.o
partmac.o partsun.o partnone.o partxbox.o io_redir.o ntfs_io.o
ntfs_utl.o partauto.o sudo.o unicode.o win32.o analyse.o bfs.o bsd.o
cramfs.o exfat.o fat.o fatx.o ext2.o jfs.o hfs.o hfsp.o hpfs.o luks.o
lvm.o md.o netware.o ntfs.o rfs.o savehdr.o sun.o swap.o sysv.o ufs.o
xfs.o addpart.o adv.o askloc.o chgtype.o chgtypen.o dimage.o dirn.o
dirpart.o diskacc.o diskcapa.o edit.o ext2_sb.o ext2_sbn.o fat1x.o
fat32.o fat_adv.o fat_cluster.o fatn.o geometry.o godmode.o hiddenn.o
intrface.o intrfn.o nodisk.o ntfs_adv.o ntfs_fix.o ntfs_udl.o
parti386n.o partgptn.o partmacn.o partsunn.o partxboxn.o tanalyse.o
tbanner.o tdelete.o tdiskop.o tdisksel.o testdisk.o thfs.o tload.o
tlog.o tmbrcode.o tntfs.o toptions.o tpartwr.o dir.o ext2_dir.o
fat_dir.o ntfs_dir.o rfs_dir.o next.o -lncursesw -lz -luuid -lcrypto
-lext2fs -lcom_err
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
make[2]: *** [testdisk] Error 1
make[2]: Leaving directory `/usr/ports/others/testdisk/testdisk-6.11/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/ports/others/testdisk/testdisk-6.11'
make: *** [all] Error 2

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

Wawrzek
--
Wawrzyniec Niewodniczański vel Wawrzek Larry or LarryN
Linux User #177124 E-MAIL: wawrzek@gmail.com
PhD in Quantum Chemistry WWW: http://wawrzek.name
MSc in Molecular Engineering JID: wawrzek@jabber.wroc.pl
_______________________________________________
CRUX mailing list
CRUX@lists.crux.nu
http://lists.crux.nu/mailman/listinfo/crux
 
Old 01-01-2010, 07:42 PM
Predrag Ivanovic
 
Default TestDisk 6.11

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.
_______________________________________________
CRUX mailing list
CRUX@lists.crux.nu
http://lists.crux.nu/mailman/listinfo/crux
 
Old 01-02-2010, 07:12 AM
Juergen Daubert
 
Default TestDisk 6.11

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

_______________________________________________
CRUX mailing list
CRUX@lists.crux.nu
http://lists.crux.nu/mailman/listinfo/crux
 
Old 01-02-2010, 10:12 PM
Predrag Ivanovic
 
Default TestDisk 6.11

On Sat, 02 Jan 2010 09:12:51 +0100
Juergen Daubert wrote:

>> 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.
>
That would be great
Thanks, Juergen.

>Greetings
>Juergen
>

Pedja
--
Recursivity. Call back if it happens again.
_______________________________________________
CRUX mailing list
CRUX@lists.crux.nu
http://lists.crux.nu/mailman/listinfo/crux
 

Thread Tools




All times are GMT. The time now is 12:43 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org