File: sqlite3-libversion.patch

package info (click to toggle)
kannel 1.4.5-22
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 16,284 kB
  • sloc: ansic: 105,659; sh: 32,211; xml: 20,360; php: 1,103; perl: 711; makefile: 583; yacc: 548; awk: 133; python: 122; javascript: 27; pascal: 3
file content (28 lines) | stat: -rw-r--r-- 1,083 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From: Kalle Niemitalo <kalle.niemitalo@procomp.fi>
Date: Fri, 27 Sep 2024 23:19:10 +0200
Subject: Use sqlite3_libversion() instead of sqlite3_version[].

Using sqlite3_version causes a "has different size in shared object"
warning at run time if the length of the version number has changed
in the sqlite3 shared library.  It is not clear whether anything
worse will happen in addition to the warning, but we can avoid the
problem altogether by calling sqlite_libversion() instead.

Bug-Debian: https://bugs.debian.org/717728
---
 gwlib/dbpool_sqlite3.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gwlib/dbpool_sqlite3.c b/gwlib/dbpool_sqlite3.c
index 52e6b2b..0783370 100644
--- a/gwlib/dbpool_sqlite3.c
+++ b/gwlib/dbpool_sqlite3.c
@@ -86,7 +86,7 @@ static void *sqlite3_open_conn(const DBConf *db_conf)
     }
 
     info(0, "SQLite3: Opened or created database file `%s'.", octstr_get_cstr(conf->file));
-    info(0, "SQLite3: library version %s.", sqlite3_version);
+    info(0, "SQLite3: library version %s.", sqlite3_libversion());
 
     return db;