Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2004-04-07
20:12 • Closed ticket [930621ffff]: TCL_LIBRARY - invalid value plus 9 other changes artifact: fca835084d user: dgp
12:11 • Ticket [930621ffff]: 4 changes artifact: d648d91a61 user: tauvan
11:46 • Ticket [930621ffff]: 4 changes artifact: 13dd4f70c1 user: nobody
10:57 • Ticket [930621ffff]: 4 changes artifact: 383e16c351 user: tauvan
10:29 • Ticket [930621ffff]: 4 changes artifact: 9416d740f0 user: tauvan
10:22 • Ticket [930621ffff]: 4 changes artifact: a0f8a54fa1 user: tauvan
05:15 • Ticket [930621ffff]: 4 changes artifact: bb46ad495e user: dgp
05:03 • Ticket [930621ffff]: 4 changes artifact: 6375edb316 user: tauvan
04:21 • Ticket [930621ffff]: 4 changes artifact: 9486fb1694 user: dgp
04:14 • Ticket [930621ffff]: 4 changes artifact: 57bd9e405a user: tauvan
03:44 • Ticket [930621ffff]: 4 changes artifact: 471a799597 user: dgp
2004-04-06
18:49 • New ticket [930621ffff]. artifact: 93ff691bf7 user: tauvan

TCL_LIBRARY - invalid value

Closed / Duplicate930621ffffffffffffffffffffffffffffffffffCreated 23 years agoUpdated 23 years ago
Descriptionplain2004-04-06 18:49:19
machine: mac ppc G4 (1st PCI 400Mhz) OSX 10.1.5
also see:
 [910323] 20 failures with 8.4.6 on MacOS X 10.3, many env 
related

I knew I'd seen this one and was hard to reproduce.

First note in [910323]:
SHLVL=3
Second note you can only reproduce if you follow
the directions in "README" located in macosx folder.

So...
Start Terminal. It starts as local.
Login as root.
exec "sh" ........ now we're at SHLVL=3
  sidebar: doesn't matter if you built Tcl the non README 
way(not entering sh)
           `tcltest' is up to date.
exec "make -C tcl${ver}/macosx test"

viola: unixInit-2.8 FAILED
solution: Change "README"

ALSO: to fix [910323] "Actually, the tests got run twice,
for reasons which escape me; when run directly, they ran once."
solution: Change "README" to add
"make -C ./tcl${ver}/macosx test-develop"
"make -C ./tcl${ver}/macosx test-deploy"

PS if this is not Jeffrey Hobbs could you please inform him that 
[910323] initial comment being addressed
[910323] env failures see: [930530]
[910323] fileSystem failures see: [929534]
[910323] load failure see: [929562]
[910323] unixInit-3.1 Fixed for 8.4.7 and 8.5a2 (Don't know what 
decided 929808)
and only polite to try to inform Jonathan Leffler[910323]

I'm not sure how to.
Thanks; Steven - tauvan
dgpplain2004-04-07 03:44:51
Logged In: YES 
user_id=80530

I can't understand most of
what you've written.

But I look at Bug 910323
and I see your report that
test unixInit-2.8 fails.

Please add some [puts] 
in the [foreach] loop of
that test to find out what
directory on the search path
is not of file type "absolute".

Thanks.
tauvanplain2004-04-07 04:14:14
Logged In: YES 
user_id=1011552

First Bug 910323 was not my report
next there is no code for [puts] [foreach]
Can you read my text? It was pasted from Mac TexEdit.

Please advise. Thanks.
dgpplain2004-04-07 04:21:28
Logged In: YES 
user_id=80530

OK, I see in Jonathan Leffler's
report (910323) that unixInit-2.8
fails.

Now, which filename is not
absolute?
tauvanplain2004-04-07 05:03:23
Logged In: YES 
user_id=1011552

"absolute pathtype" was part of the
test unixInit-2.8 name
dgpplain2004-04-07 05:15:40
Logged In: YES 
user_id=80530

OK, let's try this a step at a time.
Take a look in the file
tests/unixInit.test and find test
unixInit-2.8.

Within the body of that test there's
a [foreach] loop:

    # Check that all directories in the library path are
absolute pathnames
    set allAbsolute 1
    foreach dir [getlibpath /tmp/sparkly/tcltest] {
        set allAbsolute [expr {$allAbsolute \
                && [string equal absolute [file pathtype
$dir]]}]
    }

Do you see that at some
point [file pathtype $dir]
is returning something
other than "absolute" ?

I need to know what the
value of $dir is that's causing
that to happen (and therefore
causing the test to fail).

Find out and report back.
tauvanplain2004-04-07 10:22:12
Logged In: YES 
user_id=1011552

I like you. Make him squash the bug!
Well guess what, I processed to squash,
then remembered I had to do this before.
Both times I had to fix the Makefile.

SUMMARY:
  could only create at SHLVL=3 (possibly higher?) and
  Makefile must read TCL_LIBRARY=@TCL_IN_FRAMEWORK@

SOLUTION:
  change Makefile to TCL_LIBRARY:= ${LIBDIR}

@TCL_IN_FRAMEWORK@ does not turn out to be an absolute path
and is added to the test of dir
tauvanplain2004-04-07 10:29:58
Logged In: YES 
user_id=1011552

Also I could only create fail by
 "make -C ./tcl8.4.6/macosx test-develop"
using
 "./build/tcl/tcltest ./tcl8.4.6/tests/unixInit.test"
would not create FAILED
tauvanplain2004-04-07 10:57:16
Logged In: YES 
user_id=1011552

Sorry, you should actually check with OSX
project person for TCL_LIBRARY location change
as my setup is totally different, in the development
state only, and as of yet unsubmitted.
And thanks for the baby steps I really did not understand
but it made sense later.
Thanks.
nobodyplain2004-04-07 11:46:51
Logged In: NO 

You lost me.

I missed it, what was the
answer to my question:

I need to know what the
value of $dir is that's causing
that to happen (and therefore
causing the test to fail).

Find out and report back.
tauvanplain2004-04-07 12:11:02
Logged In: YES 
user_id=1011552

The value that created the problem:

     @TCL_IN_FRAMEWORK@

which comes from the makefile.
That is the exact dir value being tested.
It is not being evaluted by the make system.
dgpplain2004-04-07 20:12:26
Logged In: YES 
user_id=80530


I see.  re-opened as separate bug report
931061.  Closing this one as a duplicate.
The Makefile maintainer(s) should
take it from here.
Log in (anonymous is fine) to add a comment.