homebrewで
brew install px4-dev
の最中に、その依存パッケージである
kconfig-frontends
をインストールしようとしたところでサーバーエラーが出てインストールできなかったため、ソースからビルドすることにしました。
- 適当なディレクトリで以下を実行
$ git clone https://github.com/jameswalmsley/kconfig-frontends.git
- 以下を実行しようとしましたが、makeのところでエラーが出ます。
$ cd kconfig-frontends $ ./bootstrap $ ./configure $ make $ make install
##エラー内容
conf.c:77:10: error: format string is not a string literal (potentially insecure) [-Werror,-Wformat-security] printf(_("aborted!\n\n")); ^~~~~~~~~~~~~~~~~ ../../libs/parser/lkc.h:36:17: note: expanded from macro '_' #define _(text) gettext(text) ^~~~~~~~~~~~~ conf.c:77:10: note: treat the string as an argument to avoid this printf(_("aborted!\n\n")); ^ "%s", ../../libs/parser/lkc.h:36:17: note: expanded from macro '_' #define _(text) gettext(text) ^ conf.c:78:10: error: format string is not a string literal (potentially insecure) [-Werror,-Wformat-security] printf(_("Console input/output is redirected. ")); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../libs/parser/lkc.h:36:17: note: expanded from macro '_' #define _(text) gettext(text) ^~~~~~~~~~~~~ conf.c:78:10: note: treat the string as an argument to avoid this printf(_("Console input/output is redirected. ")); ^ "%s", ../../libs/parser/lkc.h:36:17: note: expanded from macro '_' #define _(text) gettext(text) ^ conf.c:79:10: error: format string is not a string literal (potentially insecure) [-Werror,-Wformat-security] printf(_("Run 'make oldconfig' to update configuration.\n\n")); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../libs/parser/lkc.h:36:17: note: expanded from macro '_' #define _(text) gettext(text) ^~~~~~~~~~~~~ conf.c:79:10: note: treat the string as an argument to avoid this printf(_("Run 'make oldconfig' to update configuration.\n\n")); ^ "%s", ../../libs/parser/lkc.h:36:17: note: expanded from macro '_' #define _(text) gettext(text) ^ conf.c:89:10: error: format string is not a string literal (potentially insecure) [-Werror,-Wformat-security] printf(_("(NEW) ")); ^~~~~~~~~~~ ../../libs/parser/lkc.h:36:17: note: expanded from macro '_' #define _(text) gettext(text) ^~~~~~~~~~~~~ conf.c:89:10: note: treat the string as an argument to avoid this printf(_("(NEW) ")); ^ "%s", ../../libs/parser/lkc.h:36:17: note: expanded from macro '_' #define _(text) gettext(text) ^ conf.c:290:12: error: format string is not a string literal (potentially insecure) [-Werror,-Wformat-security] printf(_(" (NEW)")); ^~~~~~~~~~~ ../../libs/parser/lkc.h:36:17: note: expanded from macro '_' #define _(text) gettext(text) ^~~~~~~~~~~~~ conf.c:290:12: note: treat the string as an argument to avoid this printf(_(" (NEW)")); ^ "%s", ../../libs/parser/lkc.h:36:17: note: expanded from macro '_' #define _(text) gettext(text) ^ conf.c:438:13: error: format string is not a string literal (potentially insecure) [-Werror,-Wformat-security] printf(_("*\n* Restart config...\n*\n")); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../libs/parser/lkc.h:36:17: note: expanded from macro '_' #define _(text) gettext(text) ^~~~~~~~~~~~~ conf.c:438:13: note: treat the string as an argument to avoid this printf(_("*\n* Restart config...\n*\n")); ^ "%s", ../../libs/parser/lkc.h:36:17: note: expanded from macro '_' #define _(text) gettext(text) ^ conf.c:635:6: error: format string is not a string literal (potentially insecure) [-Werror,-Wformat-security] _("\n*** The configuration requires explicit update.\n\n")); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../libs/parser/lkc.h:36:17: note: expanded from macro '_' #define _(text) gettext(text) ^~~~~~~~~~~~~ conf.c:635:6: note: treat the string as an argument to avoid this _("\n*** The configuration requires explicit update.\n\n")); ^ "%s", ../../libs/parser/lkc.h:36:17: note: expanded from macro '_' #define _(text) gettext(text) ^ conf.c:687:20: error: format string is not a string literal (potentially insecure) [-Werror,-Wformat-security] fprintf(stderr, _("\n*** Error during writing of the configuration.\n\n")); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../libs/parser/lkc.h:36:17: note: expanded from macro '_' #define _(text) gettext(text) ^~~~~~~~~~~~~ conf.c:687:20: note: treat the string as an argument to avoid this fprintf(stderr, _("\n*** Error during writing of the configuration.\n\n")); ^ "%s", ../../libs/parser/lkc.h:36:17: note: expanded from macro '_' #define _(text) gettext(text) ^ conf.c:691:20: error: format string is not a string literal (potentially insecure) [-Werror,-Wformat-security] fprintf(stderr, _("\n*** Error during update of the configuration.\n\n")); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../libs/parser/lkc.h:36:17: note: expanded from macro '_' #define _(text) gettext(text) ^~~~~~~~~~~~~ conf.c:691:20: note: treat the string as an argument to avoid this fprintf(stderr, _("\n*** Error during update of the configuration.\n\n")); ^ "%s", ../../libs/parser/lkc.h:36:17: note: expanded from macro '_' #define _(text) gettext(text) ^ conf.c:702:20: error: format string is not a string literal (potentially insecure) [-Werror,-Wformat-security] fprintf(stderr, _("\n*** Error during writing of the configuration.\n\n")); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../libs/parser/lkc.h:36:17: note: expanded from macro '_' #define _(text) gettext(text) ^~~~~~~~~~~~~ conf.c:702:20: note: treat the string as an argument to avoid this fprintf(stderr, _("\n*** Error during writing of the configuration.\n\n")); ^ "%s", ../../libs/parser/lkc.h:36:17: note: expanded from macro '_' #define _(text) gettext(text) ^ 10 errors generated. make[2]: *** [conf-conf.o] Error 1 make[1]: *** [check-recursive] Error 1 make: *** [check-recursive] Error 1
共通して、cのソースコードのprintfのところでコンパイルエラーとなっていると思うのですが、どのような対処をすれば良いでしょうか?
mac OS High Sierra 10.13.6
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/10/04 23:00