From owner-freebsd-ports-bugs@FreeBSD.ORG Mon May 16 12:50:12 2005 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1577916A4CE for ; Mon, 16 May 2005 12:50:12 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2888543D62 for ; Mon, 16 May 2005 12:50:11 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j4GCo8t4037551 for ; Mon, 16 May 2005 12:50:08 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j4GCo8KF037550; Mon, 16 May 2005 12:50:08 GMT (envelope-from gnats) Resent-Date: Mon, 16 May 2005 12:50:08 GMT Resent-Message-Id: <200505161250.j4GCo8KF037550@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, chinsan Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0DAAC16A4CE; Mon, 16 May 2005 12:44:15 +0000 (GMT) Received: from chinsan.twbbs.org (sw169-31-180.adsl.seed.net.tw [221.169.31.180]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5CD2243DC3; Mon, 16 May 2005 12:44:14 +0000 (GMT) (envelope-from root@chinsan.twbbs.org) Received: by chinsan.twbbs.org (Postfix, from userid 0) id EC1C073035; Mon, 16 May 2005 20:44:24 +0800 (CST) Message-Id: <20050516124424.EC1C073035@chinsan.twbbs.org> Date: Mon, 16 May 2005 20:44:24 +0800 (CST) From: chinsan To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 cc: statue@freebsd.netlab.cse.yzu.edu.tw cc: vanilla@FreeBSD.org Subject: ports/81107: [PATCH] chinese/big5con: fix build error on 5.x X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: chinsan List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 May 2005 12:50:12 -0000 >Number: 81107 >Category: ports >Synopsis: [PATCH] chinese/big5con: fix build error on 5.x >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon May 16 12:50:07 GMT 2005 >Closed-Date: >Last-Modified: >Originator: chinsan >Release: FreeBSD 5.3-RELEASE i386 >Organization: FreeBSD Taiwan >Environment: System: FreeBSD chinsan.twbbs.org 5.3-RELEASE FreeBSD 5.3-RELEASE #0: Fri Nov 5 04:19:18 UTC 2004 root@harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >Description: - fix build error on 5.x - the maintainer on SourceForge is CC'd >How-To-Repeat: ===> Vulnerability check disabled, database not found ===> Extracting for zh-big5con-0.92h ===> Vulnerability check disabled, database not found => Checksum OK for big5con-0.92h.tar.gz. ===> Patching for zh-big5con-0.92h ===> Configuring for zh-big5con-0.92h ===> Building for zh-big5con-0.92h making all in lib gcc -O -pipe -O2 -pipe -march=i686 -march=pentium4 -O2 -pipe -march=i686 -march=pentium4 -DCONFIG_NAME=\"/usr/local/etc/big5con.cfg\" -I../include -DXCIN_DIR=\"/usr/local/lib/xcin\" -DDELETE_K=1 -DHAS_MOUSE -c sockface.c gcc -O -pipe -O2 -pipe -march=i686 -march=pentium4 -O2 -pipe -march=i686 -march=pentium4 -DCONFIG_NAME=\"/usr/local/etc/big5con.cfg\" -I../include -DXCIN_DIR=\"/usr/local/lib/xcin\" -DDELETE_K=1 -DHAS_MOUSE -c getcap.c gcc -O -pipe -O2 -pipe -march=i686 -march=pentium4 -O2 -pipe -march=i686 -march=pentium4 -DCONFIG_NAME=\"/usr/local/etc/big5con.cfg\" -I../include -DXCIN_DIR=\"/usr/local/lib/xcin\" -DDELETE_K=1 -DHAS_MOUSE -c mem.c gcc -O -pipe -O2 -pipe -march=i686 -march=pentium4 -O2 -pipe -march=i686 -march=pentium4 -DCONFIG_NAME=\"/usr/local/etc/big5con.cfg\" -I../include -DXCIN_DIR=\"/usr/local/lib/xcin\" -DDELETE_K=1 -DHAS_MOUSE -c font.c gcc -O -pipe -O2 -pipe -march=i686 -march=pentium4 -O2 -pipe -march=i686 -march=pentium4 -DCONFIG_NAME=\"/usr/local/etc/big5con.cfg\" -I../include -DXCIN_DIR=\"/usr/local/lib/xcin\" -DDELETE_K=1 -DHAS_MOUSE -c coding.c ar rc libgon.a sockface.o getcap.o mem.o font.o coding.o ranlib libgon.a making all in src gcc -O -pipe -O2 -pipe -march=i686 -march=pentium4 -O2 -pipe -march=i686 -march=pentium4 -DCONFIG_NAME=\"/usr/local/etc/big5con.cfg\" -I../include -DXCIN_DIR=\"/usr/local/lib/xcin\" -DDELETE_K=1 -DHAS_MOUSE -c vt.c gcc -O -pipe -O2 -pipe -march=i686 -march=pentium4 -O2 -pipe -march=i686 -march=pentium4 -DCONFIG_NAME=\"/usr/local/etc/big5con.cfg\" -I../include -DXCIN_DIR=\"/usr/local/lib/xcin\" -DDELETE_K=1 -DHAS_MOUSE -c sock.c gcc -O -pipe -O2 -pipe -march=i686 -march=pentium4 -O2 -pipe -march=i686 -march=pentium4 -DCONFIG_NAME=\"/usr/local/etc/big5con.cfg\" -I../include -DXCIN_DIR=\"/usr/local/lib/xcin\" -DDELETE_K=1 -DHAS_MOUSE -c fnld.c gcc -O -pipe -O2 -pipe -march=i686 -march=pentium4 -O2 -pipe -march=i686 -march=pentium4 -DCONFIG_NAME=\"/usr/local/etc/big5con.cfg\" -I../include -DXCIN_DIR=\"/usr/local/lib/xcin\" -DDELETE_K=1 -DHAS_MOUSE -c mouse.c gcc -O -pipe -O2 -pipe -march=i686 -march=pentium4 -O2 -pipe -march=i686 -march=pentium4 -DCONFIG_NAME=\"/usr/local/etc/big5con.cfg\" -I../include -DXCIN_DIR=\"/usr/local/lib/xcin\" -DDELETE_K=1 -DHAS_MOUSE -c vc.c vc.c: In function extMoveDown': vc.c:78: error: sm' operand requires impossible reload *** Error code 1 Stop in /usr/ports/chinese/big5con/work/big5con-0.92h/src. *** Error code 1 Stop in /usr/ports/chinese/big5con/work/big5con-0.92h. *** Error code 1 Stop in /usr/ports/chinese/big5con. *** Error code 1 Stop in /usr/ports/chinese/big5con. >Fix: Because Big5 console was ported from japanese/kon2, so I adopt some patch from japanese/kon2-16dot. It seems works well. --- big5con.patch begins here --- diff -ruN big5con.orig/Makefile big5con/Makefile --- big5con.orig/Makefile Mon May 16 13:47:56 2005 +++ big5con/Makefile Mon May 16 13:49:58 2005 @@ -7,6 +7,7 @@ PORTNAME= big5con PORTVERSION= 0.92h +PORTREVISION= 1 CATEGORIES= chinese MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} diff -ruN big5con.orig/files/patch-src-fnld.c big5con/files/patch-src-fnld.c --- big5con.orig/files/patch-src-fnld.c Thu Jan 1 08:00:00 1970 +++ big5con/files/patch-src-fnld.c Mon May 16 14:05:30 2005 @@ -0,0 +1,11 @@ +--- src/fnld.c.orig Mon May 16 14:04:51 2005 ++++ src/fnld.c Mon May 16 14:04:51 2005 +@@ -21,7 +21,7 @@ + + struct fontRegs *dbFReg, *sbFReg; + +-u_char *GetShmem(); ++u_char *GetShmem(char); + + void + FontDetach(bool down) diff -ruN big5con.orig/files/patch-src-vc.c big5con/files/patch-src-vc.c --- big5con.orig/files/patch-src-vc.c Thu Jan 1 08:00:00 1970 +++ big5con/files/patch-src-vc.c Mon May 16 13:49:38 2005 @@ -0,0 +1,42 @@ +--- src/vc.c.orig Mon May 16 13:33:11 2005 ++++ src/vc.c Mon May 16 13:33:11 2005 +@@ -60,28 +60,23 @@ + inline void + blatch(void *head, int n) + { +- +- __asm__ volatile ("\t clc\n" +- "1:\n" +- "\t andb %%bl, (%%eax)\n" +- "\t incl %%eax\n" +- "\t loop 1b\n" +- : "=bl" (head), "=c"(n) +- : "eax"((long)head), "0"(0x7F), "1"(n)); ++ char *tmp = (char *)head; ++ do { ++ *tmp &= 0x7f; ++ tmp++; ++ } while( --n ); + } + + static + inline void + llatch(void *head, int n) + { +- +- __asm__ volatile ("\t clc\n" +- "1:\n" +- "\t andl %%ebx, (%%eax)\n" +- "\t addl $4, %%eax\n" +- "\t loop 1b\n" +- : "=ebx" (head), "=c"(n) +- : "eax"((long)head), "0"(0x7F7F7F7F), "1"(n >> 2)); ++ int *tmp = (int *)head; ++ n /= 4; ++ do { ++ *tmp &= 0x7f7f7f7f; ++ tmp++; ++ } while( --n ); + } + + static inline u_int --- big5con.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: