From: Wart <wa...@ko...> - 2004-11-04 02:48:55
|
The crypt extension causes a core dump on Fedora x86_64. Steps to reproduce: 1) Build and install tclhttpd on a Fedora x86_64 machine. 2) Start tcl and load the crypt extension bash# tclsh % package require crypt 1.0 % crypt foo ba Segmentation fault (core dumped) A compilation warning points to the problem: src/crypt.c: In function `Crypt_Cmd': src/crypt.c:63: warning: cast to pointer from integer of different size It seems that the #include "unistd.h" is working, but isn't providing the real declaration for crypt, as the compiler still thinks that it returns an int, not char *. Adding #include <crypt.h> fixes the problem. Perhaps we should be including crypt.h on systems where it's available? --Mike |