Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Dec 2006 13:16:05 GMT
From:      Takeshi Taguchi<taguchi@iij.ad.jp>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/106914: [fix] japanese/tk80: for FreeBSD-7-current
Message-ID:  <200612191316.kBJDG5Rt092994@www.freebsd.org>
Resent-Message-ID: <200612191320.kBJDKEBx056128@freefall.freebsd.org>

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

>Number:         106914
>Category:       ports
>Synopsis:       [fix] japanese/tk80: for FreeBSD-7-current
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Dec 19 13:20:14 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Takeshi Taguchi
>Release:        6.2-PRERELEASE
>Organization:
IIJ
>Environment:
FreeBSD hoya3.tcltk.jp 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #5: Sun Dec 17 23:12:46 JST 2006     root@hoya3.tcltk.jp:/usr/obj/usr/src/sys/HOYA  i386
>Description:
On FreeBSD-7-Current, or Using gcc41, compiling japanese/tk80 will be fail.

>How-To-Repeat:
# cd ${PORTSDIR}/japanese/tk80
# make CC=gcc41
..
gcc41 -c -fpic -g -O -pipe -march=pentium-m   -I. -I./../generic  -I./../bitmaps -I/usr/local/include/tcl8.0jp/generic  -DHAVE_XIMREGINSTCB  -I/usr/X11R6/include -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1       -DKANJI -DBUGFIX -DKINPUT2 -DXIM_IMPROVE -DCHECK_XLFD  ./tkKinput2.c
./tkKinput2.c: In function 'beginConversion':
./tkKinput2.c:588: error: invalid storage class for function 'checkProtocols'
./tkKinput2.c: At top level:
./tkKinput2.c:1033: error: static declaration of 'checkProtocols' follows non-static declaration
./tkKinput2.c:663: error: previous implicit declaration of 'checkProtocols' was here
*** Error code 1

Stop in /usr/ports.bak/japanese/tk80/work/tk8.0.5/unix.
*** Error code 1

Stop in /usr/ports.bak/japanese/tk80.
*** Error code 1

Stop in /usr/ports.bak/japanese/tk80.
>Fix:
Please apply following patch.

Patch attached with submission follows:

--- files/patch-tkKinput2.c.orig	Tue Dec 19 22:14:15 2006
+++ files/patch-tkKinput2.c	Tue Dec 19 22:15:08 2006
@@ -0,0 +1,22 @@
+--- tkKinput2.c.orig	Mon Dec 18 21:46:48 2006
++++ tkKinput2.c	Mon Dec 18 22:14:27 2006
+@@ -552,6 +552,8 @@
+ 						      XEvent *event));
+ static int		stopForwarding _ANSI_ARGS_ ((ClientData clientdata,
+ 						     XErrorEvent *errEvent));
++static int              checkProtocols _ANSI_ARGS_ ((Display *dpy,
++			    Window window, ConversionAtoms *cap));
+ 
+ /*
+  *--------------------------------------------------------------
+@@ -585,8 +587,10 @@
+     ConversionAtoms *cap;
+     ConversionContext *context;
+     int anyattr = False;
++    /* for gcc41
+     static int checkProtocols _ANSI_ARGS_ ((Display *dpy,
+ 		       Window window, ConversionAtoms *cap));
++    */
+ 
+     cap = getAtoms(tkwin);
+ 

>Release-Note:
>Audit-Trail:
>Unformatted:



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