1、错误 提示:
/tmp/cc2dus00.s: 错误:loc1@GLIBC_2.2.5' can't be versioned to common symbol 'loc1' 4 /tmp/cc2dus00.s: 错误:
loc2@GLIBC_2.2.5′ can’t be versioned to common symbol ‘loc2′ 5 /tmp/cc2dus00.s: 错误:`locs@GLIBC_2.2.5’ can’t be versioned to common symbol ‘locs’
解决方法:
将misc/regexp.c源文件中的:
char *loc1
char *loc2
char *locs
修改为:
char *loc1 __attribute__ ((nocommon));
char *loc2 __attribute__ ((nocommon));
char *locs __attribute__ ((nocommon));
还有一个就是
error: suggest explicit braces to avoid ambiguous ‘else’ [-Werror=dangling-else]
if (*np != NULL)
^
找到对应文件就加个{}就好