Re: Package Require getting "wrong version"
- From: Neil Madden <nem@xxxxxxxxxxxxx>
- Date: Wed, 30 Apr 2008 20:52:30 +0100
Gerald W. Lester wrote:
Depending on what order package requires are done, I'm getting different versions of the http package (1.0 vs 2.5.3 -- I want 2.5.3). This is in a FreeBSD system with the ports build of Tcl 8.5. See below:
$ tclsh8.5
% set auto_path
/usr/local/lib/tcl8.5 /usr/local/lib
% package require Tcl 8.5
8.5.1
% package require http
2.5.3
% exit
$ tclsh8.5
% package require Tcl 8.5
8.5.1
% package require WS::Utils
1.1.0
% package require http
1.0
I also get this behaviour on Mac OS X. Very odd. Even odder:
% package ifneeded WS::Utils 1.0.8
source /usr/local/lib/WebServices/Utilities.tcl
% eval [package ifneeded WS::Utils 1.0.8]
% package require http
2.5.4
So it looks like it's not a problem with Utilities.tcl itself that causes the problem, or with any pkgIndex.tcl file (requiring other packages doesn't cause a problem). However, requiring any of the webservices packages through [package require] does indeed cause this problem. Note: if you require http 2.5 *before* WS::Utils then things work fine.
-- Neil
.
- Follow-Ups:
- Re: Package Require getting "wrong version"
- From: Donald G Porter
- Re: Package Require getting "wrong version"
- References:
- Package Require getting "wrong version"
- From: Gerald W. Lester
- Package Require getting "wrong version"
- Prev by Date: Re: Tcl extensions built with lcc-win32
- Next by Date: Re: Package Require getting "wrong version"
- Previous by thread: Re: Package Require getting "wrong version"
- Next by thread: Re: Package Require getting "wrong version"
- Index(es):
Relevant Pages
|