/src/ext4magic-0.3.2/src/recover.c:478: undefined reference to `makedev'
Status: Abandoned
Brought to you by:
robi6
During building:
gcc -O2 -g -D_FILE_OFFSET_BITS=64 -g -O2 -o ext4magic ext4magic-block.o ext4magic-dir_list.o ext4magic-ext4magic.o ext4magic-extent_db.o ext4magic-file_type.o ext4magic-hard_link_stack.o ext4magic-imap_search.o ext4magic-inode.o ext4magic-journal.o ext4magic-lookup_local.o ext4magic-magic_block_scan.o ext4magic-recover.o ext4magic-ring_buf.o ext4magic-util.o -le2p -luuid -lblkid -lz -lbz2 -lmagic -lext2fs
ext4magic-recover.o: In function `recover_file':
/src/ext4magic-0.3.2/src/recover.c:478: undefined reference to `makedev'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:348: ext4magic] Error 1
make[2]: Leaving directory '/src/ext4magic-0.3.2/src'
make[1]: *** [Makefile:322: all-recursive] Error 1
make[1]: Leaving directory '/src/ext4magic-0.3.2'
make: *** [Makefile:253: all] Error 2
Sadly though, this project seems abandoned as even years old patches are not being applied. :-(
Hi
Look at this post
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=029e17b98f838bdf8d1c6c1b89946db6dd63d2fe
You need to add an include in file src/recover.c at line 24
Full diff
Last edit: psy 2023-04-12