From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Sep 27 09:40:01 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 493E0905 for ; Fri, 27 Sep 2013 09:40:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 28ABD2EE1 for ; Fri, 27 Sep 2013 09:40:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r8R9e1Kd029160 for ; Fri, 27 Sep 2013 09:40:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r8R9e1kv029159; Fri, 27 Sep 2013 09:40:01 GMT (envelope-from gnats) Resent-Date: Fri, 27 Sep 2013 09:40:01 GMT Resent-Message-Id: <201309270940.r8R9e1kv029159@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@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 ESMTP id 7CAB68C6 for ; Fri, 27 Sep 2013 09:37:51 +0000 (UTC) (envelope-from ginga@athena.ginganet.org) Received: from athena.ginganet.org (202x210x243x26.ap202.ftth.ucom.ne.jp [202.210.243.26]) by mx1.freebsd.org (Postfix) with ESMTP id 4E3162ECD for ; Fri, 27 Sep 2013 09:37:50 +0000 (UTC) Received: from athena.ginganet.org (localhost [127.0.0.1]) by athena.ginganet.org (Postfix) with ESMTP id 32352219D2; Fri, 27 Sep 2013 18:37:44 +0900 (JST) Received: from athena.ginganet.org ([127.0.0.1]) by athena.ginganet.org (athena.ginganet.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ydC1k7hUZRro; Fri, 27 Sep 2013 18:37:40 +0900 (JST) Received: by athena.ginganet.org (Postfix, from userid 5003) id 1027C219CB; Fri, 27 Sep 2013 18:37:40 +0900 (JST) Message-Id: <20130927093740.1027C219CB@athena.ginganet.org> Date: Fri, 27 Sep 2013 18:37:40 +0900 (JST) From: To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.114 Subject: ports/182436: ports/japanese/ng-devel patch from maintainer Cc: ginga-freebsd@ginganet.org X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: ginga-freebsd@ginganet.org List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Sep 2013 09:40:01 -0000 >Number: 182436 >Category: ports >Synopsis: ports/japanese/ng-devel patch from maintainer >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Fri Sep 27 09:40:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Ginga >Release: FreeBSD 8.4-STABLE amd64 >Organization: >Environment: System: FreeBSD 8.4-STABLE Also tested on FreeBSD 10-ALPHA2 >Description: japanese/ng-devel port is claimed to have build error on 10-current (due to clang compiler?). >How-To-Repeat: current port have build error: http://beefy1.isc.freebsd.org/bulk/head-i386-default/2013-09-26_06h12m52s/logs/ja-ng-1.5.b1.log >Fix: Apply the patch below. Simple modification of two function declaration (int -> void) solves this. "error: non-void function 'ttdell' should return a value [-Wreturn-type]" _______________________________________________________________________________________ diff -urN /usr/ports/japanese/ng-devel/files/patch-def.h ./files/patch-def.h --- /usr/ports/japanese/ng-devel/files/patch-def.h 1970-01-01 09:00:00.000000000 +0900 +++ ./files/patch-def.h 2013-09-27 18:17:34.000000000 +0900 @@ -0,0 +1,14 @@ +diff -ur dist/ng-1.5beta1/def.h def.h +--- dist/ng-1.5beta1/def.h 2003-03-08 10:22:35.000000000 +0900 ++++ def.h 2013-09-26 15:39:03.000000000 +0900 +@@ -506,8 +506,8 @@ + #endif + extern int vtputs pro((char *)); + extern int kdispbufcode pro((BUFFER *)); +-extern int ttinsl pro((int, int, int)); +-extern int ttdell pro((int, int, int)); ++extern VOID ttinsl pro((int, int, int)); ++extern VOID ttdell pro((int, int, int)); + extern int fepmode_off pro((void)); + extern int getkey pro((int)); + extern VOID ungetkey pro((int)); diff -urN /usr/ports/japanese/ng-devel/files/patch-sys-default-tty.c ./files/patch-sys-default-tty.c --- /usr/ports/japanese/ng-devel/files/patch-sys-default-tty.c 1970-01-01 09:00:00.000000000 +0900 +++ ./files/patch-sys-default-tty.c 2013-09-27 18:17:25.000000000 +0900 @@ -0,0 +1,19 @@ +diff -ur dist/ng-1.5beta1/sys/default/tty.c sys/default/tty.c +--- dist/ng-1.5beta1/sys/default/tty.c 2001-01-21 03:10:22.000000000 +0900 ++++ sys/default/tty.c 2013-09-26 15:39:47.000000000 +0900 +@@ -275,6 +275,7 @@ + * If no scrolling region, use a set + * of insert and delete line sequences + */ ++VOID + ttinsl(row, bot, nchunk) { + register int i, nl; + +@@ -314,6 +315,7 @@ + * lines. The presence of the echo area makes a + * boundry condition go away. + */ ++VOID + ttdell(row, bot, nchunk) + { + register int i, nl; >Release-Note: >Audit-Trail: >Unformatted: