Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2008-03-26
09:20 • Closed ticket [1865735fff]: tclInt.h can't be linked- hidden objects plu... artifact: 2210eae46c user: sf-robot
2008-03-12
03:05 • Pending ticket [1865735fff]. artifact: 9b74ff925e user: dgp
2008-01-18
06:54 • Ticket [1865735fff]: 4 changes artifact: 6a6919a5db user: nobody
2008-01-07
23:06 • Ticket [1865735fff]: 1 change artifact: fe7b90982e user: dkf
23:06 • Ticket [1865735fff]: 4 changes artifact: 2bcf9b04f5 user: dkf
22:17 • Ticket [1865735fff]: 4 changes artifact: ef2353e927 user: mmaslano
18:37 • Ticket [1865735fff]: 4 changes artifact: a744d6229b user: dkf
17:00 • Ticket [1865735fff]: 4 changes artifact: 69b68702da user: msofer
16:07 • Add attachment tcl-8.5.0-hidden.patch to ticket [1865735fffffffff|18657... artifact: af5a42e643 user: mmaslano
16:07 • Ticket [1865735fff] tclInt.h can't be linked- hidden objects status stil... artifact: 09e35071b9 user: mmaslano
09:07 • New ticket [1865735fff]. artifact: 89dc3a34d1 user: mmaslano

tclInt.h can't be linked- hidden objects

Closed / Invalid1865735fffffffffffffffffffffffffffffffffCreated 19 years agoUpdated 19 years ago
Descriptionplain2008-01-07 09:07:26
I run into problem with linking programmes with tcl8.5.0 because of hidden objects. The shared object tclInt.h is in tcl-devel package, but when I linked it into programme  like expect, no tclInt.h object was found. I don't know if this hidden objects are really needed. I solve this problem with patch in attachment. 

The second part of patch is about paths, because shared object can't be found with previous path.
mmaslanoplain2008-01-07 16:07:26
File Added - 261156: tcl-8.5.0-hidden.patch
msoferplain2008-01-07 17:00:07
Logged In: YES 
user_id=148712
Originator: NO

To clarify the issues:

(1) expect seems to need access to Tcl_CloseObjCmd() and Tcl_ReturnObjCmd(), these are declared MODULE_SCOPE

(2) generic/tclPort.h has
       #include "tclUnixPort.h"
    where it should be
       #include "../unix/tclUnixPort.h"
    Does this mean we are not really using any of tclUnixPort.h on any of our tested platforms?
dkfplain2008-01-07 18:37:48
Logged In: YES 
user_id=79902
Originator: NO

Re (2) it just means that it expects the unix dir to be on the include path, which is fairly reasonable.
mmaslanoplain2008-01-07 22:17:26
Logged In: YES 
user_id=1580598
Originator: YES

Re (1) sure the expect needs access to object Tcl_CloseObjCmd() and Tcl_ReturnObjCmd(), but that's not possible because of hidden whole object. Changing MODULE_SCOPE on extern is hack to do these objects accessible. It was functional in previous version of tcl-8.4.15.
dkfplain2008-01-07 23:06:03
Logged In: YES 
user_id=79902
Originator: NO

What's wrong with using Tcl_Eval? Direct access to Tcl command implementations is not supported.
dkf Ticket [1865735fff]: 1 change [History diff]2008-01-07 23:06:43
[email protected]plain2008-01-18 06:54:33
Logged In: NO 

re (1) Or there is also Tcl_GetCommandInfo() and pull the Tcl_ObjCmdProc* from the info struct.
dgpplain2008-03-12 03:05:52
Logged In: YES 
user_id=80530
Originator: NO


Appears that the bugs reported
here are in Expect, not Tcl.
sf-robotplain2008-03-26 09:20:35
Logged In: YES 
user_id=1312539
Originator: NO

This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).
Log in (anonymous is fine) to add a comment.

Attachments: