Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1From 37f30a35bea94a86a37fe22adf8e99c20bc6e18b Mon Sep 17 00:00:00 2001 2From: wxt <3264117476@qq.com> 3Date: Tue, 21 Jan 2025 12:26:24 +0800 4Subject: [PATCH] fix gcc14 5 6--- 7 m4/bdb.m4 | 1 + 8 m4/firebird.m4 | 2 ++ 9 m4/ldap.m4 | 1 + 10 m4/mdbtools.m4 | 1 + 11 m4/mysql.m4 | 2 ++ 12 m4/oracle.m4 | 1 + 13 m4/postgresql.m4 | 1 + 14 7 files changed, 9 insertions(+) 15 16diff --git a/m4/bdb.m4 b/m4/bdb.m4 17index 3f577960a..b7d58b8ea 100644 18--- a/m4/bdb.m4 19+++ b/m4/bdb.m4 20@@ -168,6 +168,7 @@ m4_define([_BDB_CHECK_INTERNAL], 21 LIBS="$LIBS -L$d/$bdb_loclibdir $db_lib" 22 AC_LINK_IFELSE([AC_LANG_SOURCE([ 23 #include <${db_hdr}> 24+#include <stdio.h> 25 int main() { 26 printf("%p", db_create); 27 return 0; 28diff --git a/m4/firebird.m4 b/m4/firebird.m4 29index 933962dc8..6d2370a41 100644 30--- a/m4/firebird.m4 31+++ b/m4/firebird.m4 32@@ -154,6 +154,7 @@ m4_define([_FIREBIRD_CHECK_INTERNAL], 33 LIBS="$LIBS -L$d/$firebird_loclibdir -lfbclient" 34 AC_LINK_IFELSE([AC_LANG_SOURCE([ 35 #include <ibase.h> 36+#include <stdio.h> 37 int main() { 38 printf("%p", isc_open); 39 return 0; 40@@ -196,6 +197,7 @@ int main() { 41 LIBS="$LIBS -L$d/$firebird_loclibdir -lfbembed" 42 AC_LINK_IFELSE([AC_LANG_SOURCE([ 43 #include <ibase.h> 44+#include <stdio.h> 45 int main() { 46 printf("%p", isc_open); 47 return 0; 48diff --git a/m4/ldap.m4 b/m4/ldap.m4 49index 032533192..77e3b34dd 100644 50--- a/m4/ldap.m4 51+++ b/m4/ldap.m4 52@@ -124,6 +124,7 @@ m4_define([_LDAP_CHECK_INTERNAL], 53 #include <ldap.h> 54 #include <lber.h> 55 #include <ldap_schema.h> 56+#include <stdio.h> 57 int main() { 58 printf("%p,%p", ldap_initialize, ldap_str2attributetype); 59 printf("%p", ber_free); 60diff --git a/m4/mdbtools.m4 b/m4/mdbtools.m4 61index 7ca5b40c5..054498f7b 100644 62--- a/m4/mdbtools.m4 63+++ b/m4/mdbtools.m4 64@@ -141,6 +141,7 @@ m4_define([_MDBTOOLS_CHECK_INTERNAL], 65 LIBS="$LIBS -L$d/$mdb_loclibdir -lmdb $mdb_glib_libs" 66 AC_LINK_IFELSE([AC_LANG_SOURCE([ 67 #include <mdbtools.h> 68+#include <stdio.h> 69 int main() { 70 printf("%p", mdb_open); 71 return 0; 72diff --git a/m4/mysql.m4 b/m4/mysql.m4 73index 535a081a9..5bd9e49b3 100644 74--- a/m4/mysql.m4 75+++ b/m4/mysql.m4 76@@ -134,6 +134,7 @@ m4_define([_MYSQL_CHECK_INTERNAL], 77 AC_LINK_IFELSE([AC_LANG_SOURCE([ 78 #include <winsock.h> 79 #include <mysql.h> 80+#include <stdio.h> 81 int main() { 82 printf("%p", mysql_real_connect); 83 return 0; 84@@ -177,6 +178,7 @@ int main() { 85 86 AC_LINK_IFELSE([AC_LANG_SOURCE([ 87 #include <mysql.h> 88+#include <stdio.h> 89 int main() { 90 printf("%p", mysql_real_connect); 91 return 0; 92diff --git a/m4/oracle.m4 b/m4/oracle.m4 93index 2d9003e41..cf5ba8ebd 100644 94--- a/m4/oracle.m4 95+++ b/m4/oracle.m4 96@@ -140,6 +140,7 @@ m4_define([_ORACLE_CHECK_INTERNAL], 97 fi 98 AC_LINK_IFELSE([AC_LANG_SOURCE([ 99 #include <oci.h> 100+#include <stdio.h> 101 int main() { 102 printf("%p", OCIInitialize); 103 return 0; 104diff --git a/m4/postgresql.m4 b/m4/postgresql.m4 105index 252d9053d..a7e308d1a 100644 106--- a/m4/postgresql.m4 107+++ b/m4/postgresql.m4 108@@ -133,6 +133,7 @@ m4_define([_POSTGRES_CHECK_INTERNAL], 109 LIBS="$LIBS -L$d/$pg_loclibdir -lpq" 110 AC_LINK_IFELSE([AC_LANG_SOURCE([ 111 #include <libpq-fe.h> 112+#include <stdio.h> 113 int main() { 114 printf("%p", PQconnectdb); 115 return 0; 116-- 1172.47.0 118