yocto编译时报错"glibc/locale/xlocale.h:39:4: note: previous declaration of '__locale_t' was here"

答: 给yocto打补丁,补丁内容如下:

+diff --git a/locale/bits/types/locale_t.h b/locale/bits/types/locale_t.h
+new file mode 100644
+index 0000000000..b519a6c5f8
+--- /dev/null
++++ b/locale/bits/types/locale_t.h
+@@ -0,0 +1 @@
++#include <xlocale.h>
+-- 
+2.14.3
+

扩展:补丁参考此处
https://patchwork.openembedded.org/patch/146479/

posted @ 2020-05-29 12:23  Jello  阅读(1184)  评论(0编辑  收藏  举报