Closed miopa closed 4 years ago
Hm. I'm afraid that might be intentional. @magcks added new code after that and he didn't plan on making everything backwards compatible. (Which I fully understand.)
There are a few things we can do:
I'm kind of waiting for some conclusive fixes for #85 and #87 before I feel like touching the repo though.
In all cases: thanks for reporting :+1: This info will be useful to others
1.8 is officially not supported anymore by asterisk.
1.8 is officially not supported anymore by asterisk.
Yes, but doesn't mandate that we drop support for it.
Another argument is that because of the cheap Chinese VoIP boxes, the number of running Asterisk instances with versions 1.6/1.8 is an order of magnitude bigger than all newer versions combined
So, I assume #85 and #87 are fixed now.
It looks like you need this:
Subject: use fix from inline_api.h from Asterisk 11
--- asterisk-1.8/include/asterisk/inline_api.h 2016-10-02 13:39:07.000000000 +0200
+++ asterisk-1.8/include/asterisk/inline_api.h 2016-08-29 11:50:08.000000000 +0200
@@ -46,8 +46,12 @@
#if !defined(LOW_MEMORY)
#if !defined(AST_API_MODULE)
+#if defined(__clang__) || defined(__GNUC_STDC_INLINE__)
+#define AST_INLINE_API(hdr, body) static hdr; static inline hdr body
+#else /* if defined(__clang__) */
#define AST_INLINE_API(hdr, body) hdr; extern inline hdr body
-#else
+#endif
+#else /* if !defined(AST_API_MODULE) */
#define AST_INLINE_API(hdr, body) hdr; hdr body
#endif
(edit: At least, then the linking step succeeds with gcc 7.5.0)
Yes, builds and works! Thanks
last revision that works is fe3b185f35b8096763ca782b79479976926d9e78
Compiling on CentOS 6 with gcc 4.4.7