Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Sep 2013 18:37:40 +0900 (JST)
From:      <ginga-freebsd@ginganet.org>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        ginga-freebsd@ginganet.org
Subject:   ports/182436: ports/japanese/ng-devel patch from maintainer
Message-ID:  <20130927093740.1027C219CB@athena.ginganet.org>
Resent-Message-ID: <201309270940.r8R9e1kv029159@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130927093740.1027C219CB>