From owner-freebsd-questions Sun Jul 30 18:35:01 1995 Return-Path: questions-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.11/8.6.6) id SAA00865 for questions-outgoing; Sun, 30 Jul 1995 18:35:01 -0700 Received: from clem.systemsix.com (clem.systemsix.com [198.99.86.131]) by freefall.cdrom.com (8.6.11/8.6.6) with ESMTP id SAA00856 for ; Sun, 30 Jul 1995 18:34:53 -0700 Received: from localhost (localhost [127.0.0.1]) by clem.systemsix.com (8.6.8/8.6.6) with SMTP id TAA23274 for ; Sun, 30 Jul 1995 19:35:36 -0600 Message-Id: <199507310135.TAA23274@clem.systemsix.com> X-Authentication-Warning: clem.systemsix.com: Host localhost didn't use HELO protocol To: questions@freeBSD.org Date: Sun, 30 Jul 1995 19:35:33 -0600 From: Steve Passe Sender: questions-owner@freeBSD.org Precedence: bulk Hello, Just installed 2.1.0-950726-SNAP, really like the improvement in the install process since 2.0! The only problem I had was the need for the '-alldirs' directive on the host holding the NFS source, the 2.0 script allowed me to mount '/usr' then provide a path from there. I attempted to port X11R6/XFree86-3.1 directly from my source tree (used for various OS's), ran into two problems for which I found no patches in ports-CURRENT: 1: the source expects to find /usr/include/machine/ioctl_pc.h which isn't there, I copied the one from 1.1.5.1 and this was resolved. WHat is the proper fix? 2: compiling the SVGA server causes: ..... making all in programs/Xserver/hw/xfree86/vga256/vga... rm -f vgafillarcC.o gcc -c -m486 -O2 -I. -I../../../../../../programs/Xserver/hw/xfree86/common -I ../../../../../../programs/Xserver/hw/xfree86/os-support -I../../../../../../pro grams/Xserver/hw/xfree86/common_hw -I../../../../../../programs/Xserv er/cfb -I../../../../../../programs/Xserver/mfb -I../../../../../../programs/Xse rver/mi -I../../../../../../programs/Xserver/include -I../../../.. /../../X11 -I../../../../../../include/fonts -I../vgainit -I../../../. ./../.. -DSHAPE -DGCCUSESGAS -DAVOID_GLYPHBLT -DFUNCPROTO=15 -DNARROWPROT O -DPSZ=8 -DRROP=GXcopy vgafillarcC.c vgafillarcC.c: In function `vga256FillEllipseSolidCopy': vgafillarcC.c:119: duplicate label declaration `label1' vgafillarcC.c:105: this is a previous declaration vgafillarcC.c:119: duplicate label `label1' *** Error code 1 Stop. ..... I distilled the problem down to the following sample. It compiles without problem under 1.1.5.1/gcc-2.4.5 but FAILs as follows under 2.1.0/gcc-2.6.3: #define XXX() \ { \ __label__ label1; \ { \ label1: \ } \ x += 1; \ } foo() { int x; XXX(); XXX(); } % gcc label.c label.c: In function `foo': label.c:15: duplicate label declaration `label1' label.c:14: this is a previous declaration label.c:15: duplicate label `label1' the inner brackets evidently no longer localize the scope of "label1". Should the X11 source be fixed or is this a bug in gcc-2.6.3? Steve Passe smp@clem.systemsix.com