Created attachment 143453 [details]
A patch file for emacs-24.3/src/canna.c, and should be contianed as a part of ports patch files
Canna (Japanese kana-kanji conversion engine) support enabled editors/emacs
port fails to compile on FreeBSD 10.0. Perhaps this will cause on
editors/emacs23. This error seem to be a side-effect using clang.
The compile error is as follows:
canna.c:1583:17: error: non-void function 'count_char' should return a value
if (len == 0) return;
To fix this problem, change declaration count_char() in canna.c from
static count_char(....) to static void count_char(....). The canna.c
is created by emacs24.3canna-20130321.diff.gz which is a part of
distfile. Change is as following:
--- src/canna.c.orig 2014-06-06 21:28:39.576576921 +0900
+++ src/canna.c 2014-06-06 21:29:46.141572668 +0900
@@ -191,7 +191,7 @@
static Lisp_Object mule_make_string(unsigned char *, int);
static mule_strlen(unsigned char *, int);
-static count_char(unsigned char *,int, int, int, int *, int *, int *);
+static void count_char(unsigned char *,int, int, int, int *, int *, int *);
#else /* __STDC__ */
static Lisp_Object mule_make_string();
@@ -1573,6 +1573,9 @@
/* count number of characters */
unsigned char *p;
Also, I attach this patch for editors/emacs/files/patch-src_canna.c
Over to maintainer.
A commit references this bug:
Date: Tue Jun 17 02:38:14 UTC 2014
New revision: 358066
- Fix building on 10.x when CANNA option is enabled, by updating CANNA
Submitted by: Noboyoshi SATO <nobu-s at iwate-pu.ac.jp>
Thanks for you submission. I've updated the CANNA patchset to include the provided diff.
Thanks to Yuji TAKANO-san (maintainer of CANNA patchset) for testing the diff.