| 1 |
stubdom: fix errors in newlib |
| 2 |
|
| 3 |
rpm post-build-checks found a few code bugs in newlib, and marks them as |
| 4 |
errors. Add another newlib patch and apply it during stubdom build. |
| 5 |
|
| 6 |
[ 227s] ../../../../newlib-1.16.0/newlib/doc/makedoc.c: In function 'lookup_word': |
| 7 |
[ 227s] ../../../../newlib-1.16.0/newlib/doc/makedoc.c:1147:10: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] |
| 8 |
[ 227s] if (strcmp(ptr->word, word) == 0) return ptr; |
| 9 |
[ 227s] ^ |
| 10 |
|
| 11 |
[ 460s] I: Program is using implicit definitions of special functions. |
| 12 |
[ 460s] these functions need to use their correct prototypes to allow |
| 13 |
[ 460s] the lightweight buffer overflow checking to work. |
| 14 |
[ 460s] - Implicit memory/string functions need #include <string.h>. |
| 15 |
[ 460s] - Implicit *printf functions need #include <stdio.h>. |
| 16 |
[ 460s] - Implicit *printf functions need #include <stdio.h>. |
| 17 |
[ 460s] - Implicit *read* functions need #include <unistd.h>. |
| 18 |
[ 460s] - Implicit *recv* functions need #include <sys/socket.h>. |
| 19 |
[ 460s] E: xen implicit-fortify-decl ../../../../newlib-1.16.0/newlib/doc/makedoc.c:1147 |
| 20 |
--- |
| 21 |
newlib/doc/makedoc.c | 1 + |
| 22 |
1 file changed, 1 insertion(+) |
| 23 |
|
| 24 |
Index: newlib-1.16.0/newlib/doc/makedoc.c |
| 25 |
=================================================================== |
| 26 |
--- newlib-1.16.0.orig/newlib/doc/makedoc.c |
| 27 |
+++ newlib-1.16.0/newlib/doc/makedoc.c |
| 28 |
@@ -38,6 +38,7 @@ There is no |
| 29 |
#include "ansidecl.h" |
| 30 |
#include <stdio.h> |
| 31 |
#include <stdlib.h> |
| 32 |
+#include <string.h> |
| 33 |
#include <ctype.h> |
| 34 |
|
| 35 |
#define DEF_SIZE 5000 |