On 10/07/2018 01:17 PM, sc...@scottcomstock.com wrote:
It's tcl-8.5.13-8.el7.arm7hl & tcl-devel-8.5.13-8.el7.arm7hl.
Can you try the attached patch? Tcl_GetErrorLine() was apparently added
in Tcl v8.6. If it works, let me know and I'll commit it to master.
I also made up a list of the correct dependencies to install (after the
usual development stuff), for future reference.
If you send it to me, I'll add it to the wiki.
-jon
-----Original Message-----
From: Jon Trulson <j...@radscan.com>
Sent: Sunday, October 7, 2018 3:14 PM
To: cdesktopenv-devel@lists.sourceforge.net
Subject: Re: [cdesktopenv-devel] Undefined references to Tcl_GetErrorLine
On 10/07/2018 12:39 PM, sc...@scottcomstock.com wrote:
Hey folks,
In trying to build the latest CDE on CentOS 7 for ARM, I’ve been
running into an issue building dtdocbook/instant. It fails with the
following:
rm -f instant
gcc -g -pipe -o instant -O2 -fno-strict-aliasing -Wno-write-strings
-Wno-unused-result -ansi -L../../../exports/lib -L/usr/lib
main.o util.o info.o translate.o traninit.o tranvar.o tables.o
browse.o -lDtSvc -ltt -lXm -lXt -lSM -lICE -lXext -lX11
-L../lib/tptregexp -ltptregexp -ltcl -L/usr/dt/lib -L/usr/lib -lm
-Wl,-rpath,/usr/dt/lib:/usr/lib
util.o: In function `Putc':
/home/scott/cde/cdesktopenv-code/cde/programs/dtdocbook/instant/util.c:723:
undefined reference to `Tcl_GetErrorLine'
util.o: In function `FPuts':
/home/scott/cde/cdesktopenv-code/cde/programs/dtdocbook/instant/util.c:788:
undefined reference to `Tcl_GetErrorLine'
collect2: error: ld returned 1 exit status
make: *** [instant] Error 1
Everything else builds normally. I have tcl and tcl-devel installed.
Has anyone else run into this?
Hi, what version of tcl do you have installed?
(As an aside for other CentOS/RHEL folks out there building CDE,
libXdmcp-devel is a dependency; dtlogin can’t build without it)
Unfortunately we do not have a list of required packages on the wiki for
Redhat derived systems, but thanks for reporting that here.
-jon
-Scott
_______________________________________________
cdesktopenv-devel mailing list
cdesktopenv-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel
--
Jon Trulson
"In the game of chess, you can never let your adversary see your pieces."
- Zapp Brannigan
_______________________________________________
cdesktopenv-devel mailing list
cdesktopenv-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel
_______________________________________________
cdesktopenv-devel mailing list
cdesktopenv-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel
--
Jon Trulson
"In the game of chess, you can never let your adversary see your pieces."
- Zapp Brannigan
>From 2fb1f1265423957ff13ab7447e9da978e68cba22 Mon Sep 17 00:00:00 2001
From: Jon Trulson <j...@radscan.com>
Date: Sun, 7 Oct 2018 13:28:04 -0600
Subject: [PATCH] dtdocbook/instant: add Tcl_GetErrorLine check for older
versions of Tcl
---
cde/programs/dtdocbook/instant/general.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/cde/programs/dtdocbook/instant/general.h b/cde/programs/dtdocbook/instant/general.h
index 413e9aa..d4c5afc 100644
--- a/cde/programs/dtdocbook/instant/general.h
+++ b/cde/programs/dtdocbook/instant/general.h
@@ -55,6 +55,11 @@ static char *gen_h_RCSid =
/* get Tcl header so the variables make sense */
#include <tcl.h>
+/* Compatibility with pre 8.6 versions */
+#if (TCL_MAJOR_VERSION < 8) || (TCL_MAJOR_VERSION == 8) && (TCL_MINOR_VERSION < 6)
+# define Tcl_GetErrorLine(x) ((x)->errorLine)
+#endif
+
/* instant variable delimiter (can't use '$', collides with Tcl) */
#define VDELIM '@'
--
2.7.4
_______________________________________________
cdesktopenv-devel mailing list
cdesktopenv-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel