diff options
Diffstat (limited to 'packages/libelf/0.8.13')
-rw-r--r-- | packages/libelf/0.8.13/0001-fix-configure-for-gcc14.patch | 101 | ||||
-rw-r--r-- | packages/libelf/0.8.13/0002-fix-configure-for-gcc14-part2.patch | 51 |
2 files changed, 152 insertions, 0 deletions
diff --git a/packages/libelf/0.8.13/0001-fix-configure-for-gcc14.patch b/packages/libelf/0.8.13/0001-fix-configure-for-gcc14.patch new file mode 100644 index 00000000..75bd75c1 --- /dev/null +++ b/packages/libelf/0.8.13/0001-fix-configure-for-gcc14.patch @@ -0,0 +1,101 @@ +diff -Naur libelf-0.8.13-orig/configure libelf-0.8.13/configure +--- libelf-0.8.13-orig/configure 2024-05-16 08:46:44.055714647 +1200 ++++ libelf-0.8.13/configure 2024-05-16 13:21:21.857127252 +1200 +@@ -734,7 +734,7 @@ + #line 735 "configure" + #include "confdefs.h" + +-main(){return(0);} ++int main(){return(0);} + EOF + if { (eval echo configure:740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + ac_cv_prog_cc_works=yes +@@ -1484,12 +1484,13 @@ + #line 1485 "configure" + #include "confdefs.h" + #include <stdio.h> +-main() ++int main() + { + FILE *f=fopen("conftestval", "w"); + if (!f) exit(1); + fprintf(f, "%d\n", sizeof(short)); + exit(0); ++ return 0; + } + EOF + if { (eval echo configure:1496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +@@ -1523,12 +1524,13 @@ + #line 1524 "configure" + #include "confdefs.h" + #include <stdio.h> +-main() ++int main() + { + FILE *f=fopen("conftestval", "w"); + if (!f) exit(1); + fprintf(f, "%d\n", sizeof(int)); + exit(0); ++ return 0; + } + EOF + if { (eval echo configure:1535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +@@ -1562,12 +1564,13 @@ + #line 1563 "configure" + #include "confdefs.h" + #include <stdio.h> +-main() ++int main() + { + FILE *f=fopen("conftestval", "w"); + if (!f) exit(1); + fprintf(f, "%d\n", sizeof(long)); + exit(0); ++ return 0; + } + EOF + if { (eval echo configure:1574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +@@ -1601,12 +1604,13 @@ + #line 1602 "configure" + #include "confdefs.h" + #include <stdio.h> +-main() ++int main() + { + FILE *f=fopen("conftestval", "w"); + if (!f) exit(1); + fprintf(f, "%d\n", sizeof(long long)); + exit(0); ++ return 0; + } + EOF + if { (eval echo configure:1613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +@@ -1641,12 +1645,13 @@ + #line 1642 "configure" + #include "confdefs.h" + #include <stdio.h> +-main() ++int main() + { + FILE *f=fopen("conftestval", "w"); + if (!f) exit(1); + fprintf(f, "%d\n", sizeof(__int64)); + exit(0); ++ return 0; + } + EOF + if { (eval echo configure:1653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +@@ -2534,11 +2539,12 @@ + #define memmove(d,s,n) bcopy((s),(d),(n)) + #endif + extern int strcmp(); +-main() { ++int main() { + char buf[] = "0123456789"; + memmove(buf + 1, buf, 9); + if (strcmp(buf, "0012345678")) exit(1); + exit(0); ++ return 0; + } + EOF + if { (eval echo configure:2545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null diff --git a/packages/libelf/0.8.13/0002-fix-configure-for-gcc14-part2.patch b/packages/libelf/0.8.13/0002-fix-configure-for-gcc14-part2.patch new file mode 100644 index 00000000..19f1a450 --- /dev/null +++ b/packages/libelf/0.8.13/0002-fix-configure-for-gcc14-part2.patch @@ -0,0 +1,51 @@ +diff -Naur libelf-0.8.13-orig/configure libelf-0.8.13/configure +--- libelf-0.8.13-orig/configure 2025-02-01 13:58:59.204951646 +1300 ++++ libelf-0.8.13/configure 2025-02-01 14:30:18.978354125 +1300 +@@ -1114,6 +1114,7 @@ + cat > conftest.$ac_ext <<EOF + #line 1116 "configure" + #include "confdefs.h" ++#include <stdlib.h> + #include <ctype.h> + #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') + #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) +@@ -1484,6 +1485,7 @@ + #line 1485 "configure" + #include "confdefs.h" + #include <stdio.h> ++#include <stdlib.h> + int main() + { + FILE *f=fopen("conftestval", "w"); +@@ -1524,6 +1526,7 @@ + #line 1524 "configure" + #include "confdefs.h" + #include <stdio.h> ++#include <stdlib.h> + int main() + { + FILE *f=fopen("conftestval", "w"); +@@ -1564,6 +1567,7 @@ + #line 1563 "configure" + #include "confdefs.h" + #include <stdio.h> ++#include <stdlib.h> + int main() + { + FILE *f=fopen("conftestval", "w"); +@@ -1604,6 +1608,7 @@ + #line 1602 "configure" + #include "confdefs.h" + #include <stdio.h> ++#include <stdlib.h> + int main() + { + FILE *f=fopen("conftestval", "w"); +@@ -1645,6 +1650,7 @@ + #line 1642 "configure" + #include "confdefs.h" + #include <stdio.h> ++#include <stdlib.h> + int main() + { + FILE *f=fopen("conftestval", "w"); |