sed: character class syntax is [[:space:]], not [:space:]
configure: error: cannot determine icu version number from uvernum.h header file
------ config.log ------
configure:26721: checking for fontconfig
configure:26728: checking _FONTCONFIG_CFLAGS
configure:26733: checking _FONTCONFIG_LIBS
configure:26934: checking for stdint.h
configure:26947: gcc -c -std=gnu99 -fgnu89-inline -fno-strict-aliasing -ffunction-sections -fdata-sections -fno-math-errno -pthread -pipe conftest.c 1>&5
configure:26934: checking for inttypes.h
configure:26947: gcc -c -std=gnu99 -fgnu89-inline -fno-strict-aliasing -ffunction-sections -fdata-sections -fno-math-errno -pthread -pipe conftest.c 1>&5
configure:26934: checking for sys/int_types.h
configure:26947: gcc -c -std=gnu99 -fgnu89-inline -fno-strict-aliasing -ffunction-sections -fdata-sections -fno-math-errno -pthread -pipe conftest.c 1>&5
configure:26941:10: fatal error: sys/int_types.h: No such file or directory
代码自带的配置文件在编译过程中,会去调用sed4.3版本,而主机系统的sed是4.5版本,版本会不一致。编译的时候,sed命令修改文件就识别不了空格键。
sed4.3版本以前的空格键:[:space:]
sed4.3版本以后的空格键:[[:space:]]
解决方案链接:
https://github.com/deu/palemoon-overlay/issues/31.
https://superuser.com/questions/112834/how-to-match-whitespace-in-sed
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=850984
https://github.com/MoonchildProductions/Pale-Moon/issues/872
https://bug1329272.bmoattachments.org/attachment.cgi?id=8825307

在编译过程中遇到版本不一致问题,主机上的sed为4.5版,而编译依赖的sed是4.3版。4.3版使用[:space:]表示空格,4.5版使用[[:space:]]。这导致了编译时sed命令无法正确处理空格。解决方案可在提供的链接中找到。
822

被折叠的 条评论
为什么被折叠?



