文章8
标签0
分类4

编译openwrt系统遇到的问题

1、提示rsa-sign.c:279:21: error: dereferencing pointer to incomplete type ‘RSA {aka struct rsa_st}’
安装libssl1.0-dev
sudo apt-get install libssl1.0-dev
2、sdl-config command not found
安装sdl
sudo apt-get install libsdl1.2-dev
3、gdate.c:2497:7: error: format not a string literal, format string not checked。
百度搜索到的解决办法
打补丁tools/pkg-config/patches/001-glib-gdate-suppress-string-format-literal-warning.patch

1、提示rsa-sign.c:279:21: error: dereferencing pointer to incomplete type ‘RSA {aka struct rsa_st}’

安装libssl1.0-dev
sudo apt-get install libssl1.0-dev
2、sdl-config command not found
安装sdl
sudo apt-get install libsdl1.2-dev
3、gdate.c:2497:7: error: format not a string literal, format string not checked。
百度搜索到的解决办法
打补丁tools/pkg-config/patches/001-glib-gdate-suppress-string-format-literal-warning.patch

1、提示rsa-sign.c:279:21: error: dereferencing pointer to incomplete type ‘RSA {aka struct rsa_st}’
安装libssl1.0-dev
sudo apt-get install libssl1.0-dev
2、sdl-config command not found
安装sdl
sudo apt-get install libsdl1.2-dev
3、gdate.c:2497:7: error: format not a string literal, format string not checked。
百度搜索到的解决办法
打补丁tools/pkg-config/patches/001-glib-gdate-suppress-string-format-literal-warning.patch

--- a/glib/glib/gdate.c
+++ b/glib/glib/gdate.c
@@ -2439,6 +2439,9 @@ win32_strftime_helper (const GDate     *d,
  *
  * Returns: number of characters written to the buffer, or 0 the buffer was too small
  */
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wformat-nonliteral"
+
 gsize     
 g_date_strftime (gchar       *s, 
                  gsize        slen, 
@@ -2549,3 +2552,5 @@ g_date_strftime (gchar       *s,
   return retval;
 #endif
 }
+
+#pragma GCC diagnostic pop


作者:帅得不敢出门
来源:CSDN
原文:https://blog.csdn.net/zmlovelx/article/details/81664043
版权声明:本文为博主原创文章,转载请附上博文链接!

0 评论