[root@centos extundelete-0.2.4]# make
make -s all-recursive
Making all in src
extundelete.cc:571:18: 警告:未使用的参数‘flags’ [-Wunused-parameter]
static errcode_t ext2fs_read_dir_block3(ext2_filsys fs, blk64_t block, void *buf, int flags) {
^
extundelete.cc: 在函数‘ext2_ino_t find_inode(ext2_filsys, ext2_filsys, ext2_inode*, std::string, int)’中:
extundelete.cc:1272:29: 警告:在 {} 内将‘search_flags’从‘int’转换为较窄的类型‘ext2_ino_t {aka unsigned int}’ [-Wnarrowing]
buf, match_name2, priv, 0};
^
/usr/bin/ld: extundelete: undefined reference to symbol ‘__pthread_key_create@@GLIBC_2.2.5’
/usr/bin/ld: note: ‘__pthread_key_create@@GLIBC_2.2.5’ is defined in DSO /lib64/libpthread.so.0 so try adding it to the linker command line
/lib64/libpthread.so.0: could not read symbols: Invalid operation
collect2: 错误:ld 返回 1
make[2]: *** [extundelete] 错误 1
make[1]: *** [all-recursive] 错误 1
make: *** [all] 错误 2
make 时提示没有pthred库,链接下就好了
ln -s /lib64/libpthread.so.0 /lib/libpthread.so.0