summaryrefslogtreecommitdiffstats
path: root/office/gnokii/gnokii-0.6.31-gcc7.patch
diff options
context:
space:
mode:
author Matteo Bernardini2019-04-16 20:05:41 +0200
committer Matteo Bernardini2019-04-16 20:05:41 +0200
commit9ebc325833e858b4295322e10edda22b6b78ac27 (patch)
tree90dc75fdc9044943dfd98b4e15a2edee6adddb42 /office/gnokii/gnokii-0.6.31-gcc7.patch
parent2a650741141e819af2ecf2c4da75502b0a18d799 (diff)
downloadslackbuilds-9ebc325833e858b4295322e10edda22b6b78ac27.tar.gz
20190416.1 global branch merge.current-20190416.1
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'office/gnokii/gnokii-0.6.31-gcc7.patch')
-rw-r--r--office/gnokii/gnokii-0.6.31-gcc7.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/office/gnokii/gnokii-0.6.31-gcc7.patch b/office/gnokii/gnokii-0.6.31-gcc7.patch
new file mode 100644
index 0000000000..6637a6af62
--- /dev/null
+++ b/office/gnokii/gnokii-0.6.31-gcc7.patch
@@ -0,0 +1,17 @@
+Patch by Robert Scheck <robert@fedoraproject.org> for gnokii <= 0.6.31 to avoid
+build failures with GCC 7.x as "../common/.libs/libgnokii.so: undefined reference
+to `local_atoi'". The "inline" is only a hint that the compiler doesn't complain
+about double defined symbols, but does not guarantee that a function is inlined
+or that a symbol is generated when needed.
+
+--- gnokii-0.6.31/common/gsm-filetypes.c 2011-12-02 15:53:04.000000000 +0100
++++ gnokii-0.6.31/common/gsm-filetypes.c.gcc7 2017-02-12 00:55:39.000000000 +0100
+@@ -1409,7 +1409,7 @@
+ #define GET_NEXT_TOKEN() o = get_next_token(line + offset, ';')
+ #define STORE_TOKEN(a) strip_slashes(a, line + offset, sizeof(a) - 1, o - 1)
+
+-inline int local_atoi(char *str, int len)
++static int local_atoi(char *str, int len)
+ {
+ int retval;
+ char *aux = strndup(str, len);