Tk Library Source Code

View Ticket
Login
Ticket UUID: 1218397
Title: "Can't find package md5c" error
Type: Bug Version: None
Submitter: jgodfrey Created on: 2005-06-10 18:16:02
Subsystem: smtp Assigned To: patthoyts
Priority: 8 Severity:
Status: Closed Last Modified: 2005-10-07 07:45:42
Resolution: Invalid Closed By: patthoyts
    Closed on: 2005-10-07 00:45:42
Description:
While using the (slightly modified - added username and
password switches) "send_simple_message" sample code
from the SMTP (v1.4) module's help file, I receive the
following error:

Error in startup script

can't find package md5c
while executing
"package require md5c"
invoked from within
"smtp::sendmessage $token -recipients $recipient
-servers...

Here's the actual code...

proc send_simple_message {recipient email_server
subject body} {
    package require smtp
    package require mime

    set token [mime::initialize -canonical text/plain \
    -string $body]
    mime::setheader $token Subject $subject
    smtp::sendmessage $token \
    -recipients $recipient -servers $email_server \
    -username <myusername> -password <mypassword>
    mime::finalize $token
}

send_simple_message <email> <myserver> \
                  "Auto Send" "This is an
auto-generated message"

Obviously, data between "<...>" contains real (though
somewhat sensitive) data in my case...

Jeff
User Comments: patthoyts added on 2005-10-07 07:45:42:
Logged In: YES 
user_id=202636

I'm going to junk this. I've never seen this occur and there
have been no other similar reports
Also, I'm just removing all the authentication code from
smtp.tcl and replacing it with code that delegates to the
SASL package for this purpose.

andreas_kupries added on 2005-10-01 06:24:59:
Logged In: YES 
user_id=75003

Does this still happen with the current CVS head of Tcllib ?

The only place I can think of where this can happend is the
procedure "md5_init" in smtp.tcl. Can you check that this
procedure is executed ? It does a regular "package require
md5". Was md5 loaded before ? If yes, what version. If not,
then we are likely getting v2, which is in md5/md5x.tcl, and
it tries to load md5c in md5::LoadAccelerator. However this
procedure catches any error from that, so you should never
see the 'no package md5c' error.

This part is however something which was rewritten some time
ago, so maybe the old way of looking for md5c did fail.

Hence my question at the beginning.

andreas_kupries added on 2005-06-11 01:24:36:
Logged In: YES 
user_id=75003

This is a problem for Pat. He maintains the md5 critcl
stuff, and has possibly integrated it into smtp. It might
also be a problem in the md5 package itself.