2
1

0005-swig-python-fix-unresolved-symbol-issue.patch 933 B

12345678910111213141516171819202122232425262728293031
  1. From e12e592e982fe71b2761da0de7b19e93f67ed22c Mon Sep 17 00:00:00 2001
  2. From: Yegor Yefremov <yegorslists@googlemail.com>
  3. Date: Tue, 6 Aug 2019 13:42:06 +0200
  4. Subject: [PATCH] swig: python: fix unresolved symbol issue
  5. GCC later than 5.x produce _fdti1.so file with an undefined
  6. symbol str2charp_size due to C99 inline semantics change. So
  7. remove this keyword.
  8. Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
  9. [Backport from upstream 3eca5150db07262c1c6eb737e12149201f631d47]
  10. ---
  11. python/ftdi1.i | 2 +-
  12. 1 file changed, 1 insertion(+), 1 deletion(-)
  13. diff --git a/python/ftdi1.i b/python/ftdi1.i
  14. index 93793f8..0d150cb 100644
  15. --- a/python/ftdi1.i
  16. +++ b/python/ftdi1.i
  17. @@ -19,7 +19,7 @@ inline PyObject* charp2str(const char *v_, long len)
  18. #endif
  19. }
  20. -inline char * str2charp_size(PyObject* pyObj, int * size)
  21. +char * str2charp_size(PyObject* pyObj, int * size)
  22. {
  23. char * v_ = 0;
  24. #if PY_MAJOR_VERSION >= 3
  25. --
  26. 2.17.0