baidu / bfs

The Baidu File System.
BSD 3-Clause "New" or "Revised" License
2.86k stars 556 forks source link

libunwind-0.99编译失败 #937

Closed Huoke closed 5 years ago

Huoke commented 5 years ago

../include/dwarf.h:318:5: error: unknown type name 'pthread_mutex_t' pthread_mutex_t lock;

Huoke commented 5 years ago

In file included from ../include/dwarf_i.h:9:0, from dwarf/global.c:26: ../include/dwarf.h:318:5: error: unknown type name 'pthread_mutex_t' pthread_mutex_t lock; ^~~~~~~ Makefile:2768: recipe for target 'dwarf/global.lo' failed make[2]: [dwarf/global.lo] Error 1 make[2]: Leaving directory '/mnt/f/bfs/thirdsrc/libunwind-0.99/src' Makefile:1182: recipe for target 'all' failed make[1]: [all] Error 2 make[1]: Leaving directory '/mnt/f/bfs/thirdsrc/libunwind-0.99/src' Makefile:362: recipe for target 'all-recursive' failed make: *** [all-recursive] Error 1

yvxiang commented 5 years ago

pthread_mutex_t是系统自带的,看起来跟环境有关系,手动加上这个依赖吧

Huoke commented 5 years ago

这个问题出现在我的windows10系统,在win10的appStare中下载的Ubantu下编译出现这个问题,现在我在libunwind-0.99源码的 include/dwarf.h文件中添加了pthread.h 可以编译通过了。 多谢!

Huoke commented 5 years ago

问题解决