From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Oct 8 02:10:02 2011 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E88A5106564A for ; Sat, 8 Oct 2011 02:10:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id C06668FC0A for ; Sat, 8 Oct 2011 02:10:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p982A107088654 for ; Sat, 8 Oct 2011 02:10:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p982A1Bw088653; Sat, 8 Oct 2011 02:10:01 GMT (envelope-from gnats) Resent-Date: Sat, 8 Oct 2011 02:10:01 GMT Resent-Message-Id: <201110080210.p982A1Bw088653@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, Sunry Chen Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D88131065673 for ; Sat, 8 Oct 2011 02:00:22 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id BD5028FC08 for ; Sat, 8 Oct 2011 02:00:22 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p9820Mu4017498 for ; Sat, 8 Oct 2011 02:00:22 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id p9820M45017497; Sat, 8 Oct 2011 02:00:22 GMT (envelope-from nobody) Message-Id: <201110080200.p9820M45017497@red.freebsd.org> Date: Sat, 8 Oct 2011 02:00:22 GMT From: Sunry Chen To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/161390: [maintainer patch] chinese/cxterm broken because does not compile X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Oct 2011 02:10:02 -0000 >Number: 161390 >Category: ports >Synopsis: [maintainer patch] chinese/cxterm broken because does not compile >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Sat Oct 08 02:10:01 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Sunry Chen >Release: 8.2-RELEASE >Organization: SIT >Environment: FreeBSD club.helloit.info 8.2-RELEASE FreeBSD 8.2-RELEASE #1: Fri Mar 11 10:08:24 CST 2011 sunrychen@club.helloit.info:/usr/obj/usr/src/sys/GENERIC i386 >Description: http://pointyhat.freebsd.org/errorlogs/i386-errorlogs/e.8.20110926093045/zh-cxterm-5.0.3_3.log As the error log says: ---------------------------------------------------------------------------- cc -O2 -pipe -fno-strict-aliasing -I/usr/local/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -DHANZI -c HZInput.c In file included from HZinput.h:43, from HZInput.c:61: HZtable.h:57: error: conflicting types for 'XChar2b' /usr/local/include/X11/Xlib.h:1075: error: previous declaration of 'XChar2b' was here *** Error code 1 >How-To-Repeat: compile it >Fix: Patch attached with submission follows: --- HZtable.orig 2011-10-08 09:45:28.000000000 +0800 +++ HZtable.h 2011-10-08 09:45:50.000000000 +0800 @@ -42,21 +42,11 @@ * */ +#include + #ifndef _HZTABLE_H_ #define _HZTABLE_H_ -/* - * The only imported definition is XChar2b, from . - * To advoid including the tremendous amount of X11 include files, - * this definition is simply copied here. - */ -#ifndef _XLIB_H_ -typedef struct { /* normal 16 bit characters are two bytes */ - unsigned char byte1; - unsigned char byte2; -} XChar2b; -#endif - #define MAX_PROMPT 24 /* maximum prompt in HZ input erea */ #define MAX_KEYPROMPT 4 /* maximum bytes to display each input key */ #define MAX_CHOICE 16 /* maximum number of choices on one screen */ >Release-Note: >Audit-Trail: >Unformatted: