Package: tcm
Version: 2.20+TSQD-1
Severity: serious
Tags: patch
When building 'tcm' on unstable, I get the following error:
make[3]: Entering directory `/tcm-2.20+TSQD/src/ui'
/usr/bin/g++ -Wall -g -O2 -DCONFIG_INSTALL=\"/etc/tcm/\"
-DTCM_INSTALL_DIR=\"/usr\" -DTCM_INSTALL_LIB=\"/usr/lib/\"
-DTCM_INSTALL_SHARE=\"/usr/share/doc/tcm-doc/\" -DCONFIG_FILE=\"tcm.conf\"
-DHELP_DIR=\"/usr/share/doc/tcm-doc/help/\" -DCOLOR_FILE=\"colorrgb.txt\"
-DBANNER_FILE=\"banner.ps\" -I. -I/tcm-2.20+TSQD/src/bitmaps
-I/tcm-2.20+TSQD/src/gl -I/tcm-2.20+TSQD/src/ui -I/tcm-2.20+TSQD/src/ed
-I/tcm-2.20+TSQD/src/dg -I/tcm-2.20+TSQD/src/tb
-I/usr/X11R6/LessTif/Motif1.2/include -I/usr/X11R6/include
-I/usr/X11R6/include/X11 -I../dv -DLINUX -c application.c
application.h:56: error: 'MainWindow' has not been declared
With the attached patch 'tcm' can be compiled on unstable.
Regards
Andreas Jochens
diff -urN ../tmp-orig/tcm-2.20+TSQD/src/sd/dv/erdiagram.c
./src/sd/dv/erdiagram.c
--- ../tmp-orig/tcm-2.20+TSQD/src/sd/dv/erdiagram.c 2004-07-21
17:52:21.000000000 +0000
+++ ./src/sd/dv/erdiagram.c 2005-09-09 14:14:16.000000000 +0000
@@ -43,6 +43,9 @@
#include "replacedialog.h"
#include "erdiagram.h"
#include "menu.h"
+
+class Edge;
+class C1Edge;
ERDiagram::ERDiagram(Config *c, ERWindow *d, ERViewer *v, ERGraph *g):
Diagram(c,d,v,g) {
diff -urN ../tmp-orig/tcm-2.20+TSQD/src/sd/dv/function.h ./src/sd/dv/function.h
--- ../tmp-orig/tcm-2.20+TSQD/src/sd/dv/function.h 2004-07-21
17:52:29.000000000 +0000
+++ ./src/sd/dv/function.h 2005-09-09 14:15:06.000000000 +0000
@@ -19,8 +19,8 @@
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
// 02111-1307, USA.
//-----------------------------------------------------------------------------
-#ifndef _FUNCTION_H
-#define _FUNCTION_H
+#ifndef _FUNCTION_CLASS_H
+#define _FUNCTION_CLASS_H
#include "c1edge.h"
class ERGraph;
diff -urN ../tmp-orig/tcm-2.20+TSQD/src/ui/application.h ./src/ui/application.h
--- ../tmp-orig/tcm-2.20+TSQD/src/ui/application.h 2004-07-21
17:47:56.000000000 +0000
+++ ./src/ui/application.h 2005-09-09 14:08:24.000000000 +0000
@@ -28,6 +28,7 @@
class PrinterOptions;
class Color;
class Config;
+class MainWindow;
/// generic window-based application class. See: MWidget.
class Application: public MWidget {
diff -urN ../tmp-orig/tcm-2.20+TSQD/src/ui/menu.c ./src/ui/menu.c
--- ../tmp-orig/tcm-2.20+TSQD/src/ui/menu.c 2004-07-21 17:47:54.000000000
+0000
+++ ./src/ui/menu.c 2005-09-09 14:08:24.000000000 +0000
@@ -217,7 +217,7 @@
XmNindicatorType, XmONE_OF_MANY, 0);
}
// selected or not ?
- if ((int)items[i].userData & 0x1)
+ if ((long)items[i].userData & 0x1)
XtVaSetValues(submenu, XmNset, True, 0);
}
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]