Tk Library Source Code

View Ticket
Login
Ticket UUID: 564670
Title: Package fails to load
Type: Bug Version: None
Submitter: gwlester Created on: 2002-06-05 02:02:53
Subsystem: None Assigned To: patthoyts
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2002-06-08 00:17:23
Resolution: Fixed Closed By: andreas_kupries
    Closed on: 2002-06-07 17:17:23
Description:
The dns pacakge fails to load on the first "package require".

It requires two "package require dns" to load; the first one fails with: 
          invalid command name "configure" 
              while executing 
          "configure -loglevel $options(loglevel)" 
              (in namespace eval "::dns" script line 17) 
              invoked from within 
          "namespace eval dns { 
              variable version 1.0 
              variable rcsid {$Id: dns.tcl,v 1.1 2002/03/02 01:37:46 patthoyts Exp $} 

              namespace export config..." 
              (file "D:/Program Files/ActiveState/Tcl/lib/tcllib1.3/dns/dns.tcl" line 29) 
              invoked from within 
          "source {D:/Program Files/ActiveState/Tcl/lib/tcllib1.3/dns/dns.tcl}" 
              ("package ifneeded" script) 
              invoked from within 
          "package require dns"
User Comments: andreas_kupries added on 2002-06-08 00:17:23:
Logged In: YES 
user_id=75003

Committed to head, and upped version number to 1.0.1.

andreas_kupries added on 2002-06-08 00:11:34:

File Added - 24607: 564670.diff

Logged In: YES 
user_id=75003

Reason for the problem: Usage of [dns::configure] during 
variable initialization, before the command is actually defined.
Moving code to the end. Patch enclosed.

Attachments: