From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Jun 6 12:41:56 2014 Return-Path: Delivered-To: freebsd-ports-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5EC86CC0 for ; Fri, 6 Jun 2014 12:41:56 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2BCC82C06 for ; Fri, 6 Jun 2014 12:41:56 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.8/8.14.8) with ESMTP id s56CfuRK041134 for ; Fri, 6 Jun 2014 13:41:56 +0100 (BST) (envelope-from bz-noreply@freebsd.org) From: bz-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 190711] New: editors/emacs with CANNA enabled fails to compile on FreeBSD 10.0, using clang Date: Fri, 06 Jun 2014 12:41:56 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports Tree X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: nobu-s@iwate-pu.ac.jp X-Bugzilla-Status: Needs Triage X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-ports-bugs@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Jun 2014 12:41:56 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=190711 Bug ID: 190711 Summary: editors/emacs with CANNA enabled fails to compile on FreeBSD 10.0, using clang Product: Ports Tree Version: Latest Hardware: Any OS: Any Status: Needs Triage Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: freebsd-ports-bugs@FreeBSD.org Reporter: nobu-s@iwate-pu.ac.jp Created attachment 143453 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=143453&action=edit 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 [-Wreturn-type] 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 @@ #if __STDC__ 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(); static mule_strlen(); @@ -1573,6 +1573,9 @@ /* count number of characters */ static +#if __STDC__ +void +#endif count_char(p,len,pos,rev,clen,cpos,crev) unsigned char *p; int len,pos,rev,*clen,*cpos,*crev; Also, I attach this patch for editors/emacs/files/patch-src_canna.c -- You are receiving this mail because: You are the assignee for the bug.