From owner-freebsd-ports Fri May 10 15:10:31 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 94B3437B400 for ; Fri, 10 May 2002 15:10:01 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g4AMA1416995; Fri, 10 May 2002 15:10:01 -0700 (PDT) (envelope-from gnats) Received: from gatesrv.RZ.UniBw-Muenchen.de (gatesrv.RZ.UniBw-Muenchen.de [137.193.11.27]) by hub.freebsd.org (Postfix) with ESMTP id AEC2B37B401 for ; Fri, 10 May 2002 15:00:08 -0700 (PDT) Received: from nemesis.informatik.unibw-muenchen.de (nemesis.Informatik.UniBw-Muenchen.de [137.193.60.30]) by gatesrv.RZ.UniBw-Muenchen.de (8.11.2/8.11.2) with ESMTP id g4ALmOt01897 for ; Fri, 10 May 2002 23:48:24 +0200 (MEST) Received: from localhost (localhost.informatik.unibw-muenchen.de [127.0.0.1]) by nemesis.informatik.unibw-muenchen.de (Postfix) with ESMTP id 468375A548 for ; Fri, 10 May 2002 23:48:24 +0200 (CEST) Received: by nemesis.informatik.unibw-muenchen.de (Postfix, from userid 1001) id F38775A547; Fri, 10 May 2002 23:48:22 +0200 (CEST) Message-Id: <20020510214822.F38775A547@nemesis.informatik.unibw-muenchen.de> Date: Fri, 10 May 2002 23:48:22 +0200 (CEST) From: Oliver Braun To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/37940: Fix build on -current lang/atlast Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 37940 >Category: ports >Synopsis: Fix build on -current lang/atlast >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Fri May 10 15:10:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Oliver Braun >Release: FreeBSD 4.6-PRERELEASE i386 >Organization: >Environment: System: FreeBSD nemesis.informatik.unibw-muenchen.de 4.6-PRERELEASE FreeBSD 4.6-PRERELEASE #0: Thu May 2 11:59:09 CEST 2002 root@nemesis.informatik.unibw-muenchen.de:/usr/obj/usr/src/sys/NEMESIS_OB i386 >Description: Fix bento error: initializer element is not constant for stdin, stdout, stderr. Added: files/patch-atlast.c Regards, Olli >How-To-Repeat: >Fix: diff -ruN atlast.old/files/patch-atlast.c atlast/files/patch-atlast.c --- atlast.old/files/patch-atlast.c Thu Jan 1 00:00:00 1970 +++ atlast/files/patch-atlast.c Fri May 10 23:37:05 2002 @@ -0,0 +1,24 @@ +--- atlast.c.orig Fri May 10 23:18:47 2002 ++++ atlast.c Fri May 10 23:36:28 2002 +@@ -3243,14 +3243,17 @@ + { static struct { + char *sfn; + FILE *sfd; +- } stdfiles[] = { +- {"STDIN", stdin}, +- {"STDOUT", stdout}, +- {"STDERR", stderr} ++ } stdfiles[] = { ++ {"STDIN", NULL}, ++ {"STDOUT", NULL}, ++ {"STDERR", NULL} + }; + int i; + dictword *dw; + ++ stdfiles[0].sfd = stdin; ++ stdfiles[1].sfd = stdout; ++ stdfiles[2].sfd = stderr; + for (i = 0; i < ELEMENTS(stdfiles); i++) { + if ((dw = atl_vardef(stdfiles[i].sfn, + 2 * sizeof(stackitem))) != NULL) { >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message