From owner-freebsd-questions@FreeBSD.ORG Sun Oct 17 02:10:18 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BA3EA16A4CE for ; Sun, 17 Oct 2004 02:10:18 +0000 (GMT) Received: from lakermmtao05.cox.net (lakermmtao05.cox.net [68.230.240.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1A35C43D5D for ; Sun, 17 Oct 2004 02:10:18 +0000 (GMT) (envelope-from conrads@cox.net) Received: from dolphin.local.net ([68.11.30.24]) by lakermmtao05.cox.net (InterMail vM.6.01.03.04 201-2131-111-106-20040729) with ESMTP id <20041017021018.XMJA26541.lakermmtao05.cox.net@dolphin.local.net> for ; Sat, 16 Oct 2004 22:10:18 -0400 Received: from dolphin.local.net (localhost.local.net [127.0.0.1]) by dolphin.local.net (8.13.1/8.13.1) with SMTP id i9H2AHoe005848 for ; Sat, 16 Oct 2004 21:10:17 -0500 (CDT) (envelope-from conrads@cox.net) Date: Sat, 16 Oct 2004 21:10:11 -0500 From: "Conrad J. Sabatier" To: freebsd-questions@freebsd.org Message-ID: <20041016211011.27194f79@dolphin.local.net> X-Mailer: Sylpheed-Claws 0.9.12b (GTK+ 1.2.10; amd64-portbld-freebsd6.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Bizarre compile error (gcc 3.4.2 on 6.0-CURRENT) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Oct 2004 02:10:18 -0000 Just out of curiosity, I commented out the BROKEN lines in /usr/ports/sysutils/pib/Makefile and tried building the port. Right away, I ran into the weirdest error that I cannot make any sense out of (whitespace added for clarity): dolphin:root:/usr/ports/sysutils/pib# make ===> Building for pib-1.2 Warning: Object directory not changed from original /usr/ports/sysutils/pib/work/pib-1.2 cc -O2 -pipe -march=athlon64 -mmmx -m3dnow -msse -msse2 -m64 -I/usr/local/include/tcl8.2-I/usr/local/include/tk8.2 -I/usr/X11R6/include -DUSE_XACCESS-DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DSTDC_HEADERS=1 -DTK_FILE_COUNT=_r-DNEED_MATHERR=1 -DTK_LIBRARY=\"/usr/local/lib/tk8.2\" -c tkXAccess.c In file included from tkXAccess.c:26: tkPort.h:136: error: conflicting types for 'Tcl_Panic' tkPort.h:136: note: a parameter list with an ellipsis can't match an empty parameter name list declaration /usr/local/include/tcl8.2/tclDecls.h:38: error: previous declaration of 'Tcl_Panic' was here tkPort.h:136: error: conflicting types for 'Tcl_Panic' tkPort.h:136: note: a parameter list with an ellipsis can't match an empty parameter name list declaration /usr/local/include/tcl8.2/tclDecls.h:38: error: previous declaration of'Tcl_Panic' was here *** Error code 1 What's so strange about this error is that the file where the error occurs does not even mention Tcl_Panic(). Rather, the offending line at tkPort.h:136 is this: extern void panic(); While the line at /usr/local/include/tcl8.2/tclDecls.h:38 is this: EXTERN void Tcl_Panic _ANSI_ARGS_(TCL_VARARGS(char *,format)); Why would the compiler think that these two completely different identifiers were referring to the same object? -- Conrad J. Sabatier -- "In Unix veritas"