From owner-freebsd-libh Wed Dec 12 9: 2: 8 2001 Delivered-To: freebsd-libh@freebsd.org Received: from icicle.winternet.com (icicle.winternet.com [198.174.169.13]) by hub.freebsd.org (Postfix) with ESMTP id 96C3737B419 for ; Wed, 12 Dec 2001 09:01:59 -0800 (PST) Received: from tundra.winternet.com (nrahlstr@tundra.winternet.com [198.174.169.11]) by icicle.winternet.com (8.12.1/8.12.1/sci) with ESMTP id fBCH1qd0010153; Wed, 12 Dec 2001 11:01:52 -0600 (CST) SMTP "HELO" (ESMTP) greeting from tundra.winternet.com But _really_ from :: nrahlstr@tundra.winternet.com [198.174.169.11] SMTP "MAIL From:" = nrahlstr@mail.winternet.com (Nathan Ahlstrom) SMTP "RCPT To:" = We have no RCPT Received: (from nrahlstr@localhost) by tundra.winternet.com (8.8.7/8.8.4) id LAA09810; Wed, 12 Dec 2001 11:01:51 -0600 (CST) Date: Wed, 12 Dec 2001 11:01:51 -0600 From: Nathan Ahlstrom To: The Anarcat , freebsd-libh@FreeBSD.org Subject: Re: hello_world example error. Message-ID: <20011212110150.A9600@winternet.com> Mail-Followup-To: The Anarcat , freebsd-libh@FreeBSD.org References: <20011212093205.A8968@winternet.com> <20011212162420.GA65834@shall.anarcat.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20011212162420.GA65834@shall.anarcat.dyndns.org>; from anarcat@anarcat.dyndns.org on Wed, Dec 12, 2001 at 11:24:20AM -0500 Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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