Date: Wed, 12 Dec 2001 11:01:51 -0600 From: Nathan Ahlstrom <nrahlstr@winternet.com> To: The Anarcat <anarcat@anarcat.dyndns.org>, freebsd-libh@FreeBSD.org Subject: Re: hello_world example error. Message-ID: <20011212110150.A9600@winternet.com> In-Reply-To: <20011212162420.GA65834@shall.anarcat.dyndns.org>; from anarcat@anarcat.dyndns.org on Wed, Dec 12, 2001 at 11:24:20AM -0500 References: <20011212093205.A8968@winternet.com> <20011212162420.GA65834@shall.anarcat.dyndns.org>
next in thread | previous in thread | raw e-mail | index | archive | help
I think that the dynamic loading is definitely broken and it is something
related to this issue that is breaking the 'load' command in tcl.
Although, If I compile the tclh dynamically, the hello world program works by
altering it to use #!../../compile/text+graphics/tclh. Diffs below.
Nathan
[..trimmed..]
> FWIW:
>
> There is something definitly broken with the dynamic and static loading
> in libh. For example, I tried to implement a test program for the File
> library. I was only able to compile it with NOSHARED=no:
[..trimmed..]
Index: Makefile.subdirs
===================================================================
RCS file: /home/libh/cvs/libh/compile/Makefile.subdirs,v
retrieving revision 1.1
diff -u -r1.1 Makefile.subdirs
--- Makefile.subdirs 2001/12/04 20:50:29 1.1
+++ Makefile.subdirs 2001/12/12 17:01:08
@@ -18,3 +18,5 @@
$(SETENV) $(MAKEENV) ${MAKE} -f ../Makefile.inc1 BSUBDIR=${SUBDIR}
$@
.endfor
+ $(SETENV) $(MAKEENV) ${MAKE} -f ../Makefile.inc1 BSUBDIR=bin/tclh
NOSHARED=no $@
Index: hello_world.tcl
===================================================================
RCS file: /home/libh/cvs/libh/doc/examples/hello_world.tcl,v
retrieving revision 1.4
diff -u -r1.4 hello_world.tcl
--- hello_world.tcl 2001/06/17 12:48:25 1.4
+++ hello_world.tcl 2001/12/12 17:01:13
@@ -1,4 +1,4 @@
-#!/usr/local/bin/tclsh8.3
+#!../../compile/text+graphics/tclh
#
# $FreeBSD: libh/doc/examples/hello_world.tcl,v 1.4 2001/06/17 12:48:25
alex Exp $
@@ -20,11 +20,11 @@
# ----------------------------------------------------------------------
-load ../../lib/common/libh.so.$H_VERSION
-load ../../lib/tcl/libhtcl.so.$H_VERSION
-load ../../lib/file/libhfile.so.$H_VERSION
-load ../../lib/hui/libhui.so.$H_VERSION
-load ../../lib/tcl/libhtclhui.so.$H_VERSION
+#load ../../lib/common/libh.so.$H_VERSION
+#load ../../lib/tcl/libhtcl.so.$H_VERSION
+#load ../../lib/file/libhfile.so.$H_VERSION
+#load ../../lib/hui/libhui.so.$H_VERSION
+#load ../../lib/tcl/libhtclhui.so.$H_VERSION
# ----------------------------------------------------------------------
--
Nathan Ahlstrom / nra@NetBSD.org / nra@FreeBSD.org / GPG: 0x67BC9D19
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-libh" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011212110150.A9600>
