Subject: pkg/23873: xglobe won't compile (gcc 3.x pickiness?)
To: None <>
From: None <>
List: netbsd-bugs
Date: 12/24/2003 10:46:32
>Number:         23873
>Category:       pkg
>Synopsis:       xglobe won't compile (gcc 3.x pickiness?)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 24 18:39:00 UTC 2003
>Originator:     Richard Rauch
>Release:        NetBSD 1.6ZG; recent pkgsrc CVS
  "I probably don't know what I'm talking about."
System: NetBSD socrates 1.6ZG NetBSD 1.6ZG (socrates) #0: Tue Dec 23 06:30:20 CST 2003 root@socrates:/usr/netbsd/current/src/sys/arch/amd64/compile/obj.amd64/socrates amd64
Architecture: x86_64
Machine: amd64
	...pkgsrc/x11/xglobe will not build on my -current machine.  GCC
	complains about "::exit" in the desktopwidget.cpp source file.
        Presumably this is because of a lack of proper prototype.
	Attempt to build xglobe from pkgsrc.  (I assume that this is a
	problem with any system using a recent GCC.  2.95.? worked the
	last time that I tried to build it on my 1.6 i386 boxes.)
	The error-causing file is desktopwidget.cpp.  Adding a #include
	to prototype ::exit() seems to be enough (note that there are some
	other warnings on another file; I did not even look at them, as I
	get *so* many warnings about ptr/int mismatches, and the warnings
	are often not terribly serious).

--- desktopwidget.cpp   2003-12-24 10:39:14.000000000 -0600
+++ desktopwidget.cpp.orig      2003-12-24 10:39:06.000000000 -0600
@@ -18,7 +18,6 @@
 #include <stdio.h>
-#include <stdlib.h>
 #include "desktopwidget.h"
 DesktopWidget::DesktopWidget(QWidget *parent, const char *name)