From owner-freebsd-ports-bugs@FreeBSD.ORG Sat May 27 11:50:21 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org 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 7034816A48F for ; Sat, 27 May 2006 11:50:19 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id BC17B43D55 for ; Sat, 27 May 2006 11:50:18 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k4RBoI6U034461 for ; Sat, 27 May 2006 11:50:18 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k4RBoIjf034460; Sat, 27 May 2006 11:50:18 GMT (envelope-from gnats) Resent-Date: Sat, 27 May 2006 11:50:18 GMT Resent-Message-Id: <200605271150.k4RBoIjf034460@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, Vaclav Haisman Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 715DF16A44B for ; Sat, 27 May 2006 11:44:44 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 21A9B43D46 for ; Sat, 27 May 2006 11:44:44 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k4RBihVf022873 for ; Sat, 27 May 2006 11:44:43 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id k4RBihfS022872; Sat, 27 May 2006 11:44:43 GMT (envelope-from nobody) Message-Id: <200605271144.k4RBihfS022872@www.freebsd.org> Date: Sat, 27 May 2006 11:44:43 GMT From: Vaclav Haisman To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: ports/98008: Having set UTF-8 locale break build of security/libgpg-error port 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, 27 May 2006 11:50:26 -0000 >Number: 98008 >Category: ports >Synopsis: Having set UTF-8 locale break build of security/libgpg-error port >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat May 27 11:50:18 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Vaclav Haisman >Release: 5.4 >Organization: None >Environment: reeBSD amber2.local 5.5-PRERELEASE FreeBSD 5.5-PRERELEASE #0: Wed May 17 15:07:39 CEST 2006 root@amber2.local:/usr/obj/usr/src/sys/AMBER2 i386 >Description: During the build, if locale is .UTF-8 locale, then the following error appears: gawk -f ./mkerrcodes1.awk ./errnos.in >_mkerrcodes.h cc -E _mkerrcodes.h | grep GPG_ERR_ | gawk -f ./mkerrcodes.awk >mkerrcodes.h rm _mkerrcodes.h cc -I. -I. -o mkerrcodes ./mkerrcodes.c In file included from ./mkerrcodes.c:26: ./mkerrcodes.h:17: error: syntax error before "GPG_ERR_EBADF" ./mkerrcodes.h:17: warning: initialization makes integer from pointer without a cast ./mkerrcodes.h:38: error: syntax error before "GPG_ERR_EINTR" ./mkerrcodes.h:38: warning: initialization makes integer from pointer without a cast ./mkerrcodes.h:40: error: syntax error before "GPG_ERR_EIO" ./mkerrcodes.h:40: warning: initialization makes integer from pointer without a cast ./mkerrcodes.h:55: error: syntax error before "GPG_ERR_ENOENT" ./mkerrcodes.h:55: warning: initialization makes integer from pointer without a cast ./mkerrcodes.h:57: error: syntax error before "GPG_ERR_ENOLCK" ./mkerrcodes.h:57: warning: initialization makes integer from pointer without a cast ./mkerrcodes.h:58: error: syntax error before "GPG_ERR_ENOMEM" ./mkerrcodes.h:58: warning: initialization makes integer from pointer without a cast ./mkerrcodes.h:59: error: syntax error before "GPG_ERR_ENOMSG" ./mkerrcodes.h:59: warning: initialization makes integer from pointer without a cast ./mkerrcodes.h:70: error: syntax error before "GPG_ERR_ENXIO" ./mkerrcodes.h:70: warning: initialization makes integer from pointer without a cast ./mkerrcodes.h:73: error: syntax error before "GPG_ERR_EPERM" ./mkerrcodes.h:73: warning: initialization makes integer from pointer without a cast ./mkerrcodes.h:89: error: syntax error before "GPG_ERR_ESRCH" ./mkerrcodes.h:89: warning: initialization makes integer from pointer without a cast *** Error code 1 Stop in /usr/ports/security/libgpg-error/work/libgpg-error-1.3/src. *** Error code 1 [etc.] The affected lines are wrongly generated by the mkerrcodes.awk script: [...] { 80, "GPG_ERR_EAUTH" }, { 9 GPG_ERR_EBADF, "GPG_ERR_" }, { 72, "GPG_ERR_EBADRPC" }, [...] Notice the middle line. All the errors are the similar and the error number is always only one decimal digit. Obviously it is problem with gawk's ability to separate the input line into fields in presence of UTF-8 locale. >How-To-Repeat: Set locale to some .UTF-8 locale, in my case it was en_GB.UTF-8. >Fix: Either unset LANG variable for the command or fix Gawk. >Release-Note: >Audit-Trail: >Unformatted: