Try building crypt.so with the -lcrypt flag so that Linux can find it later.
In the tclhttpd/src/Makefile, do something like this:


# Linux - probably needs -lcrypt
#CRYPT_LIB =
CRYPT_LIB = -lcrypt
LIBS =                  $(CRYPT_LIB) -ltcl8.0 -ldl  -lm -lc


>>>bboard-robot said:
 > 
 > Hi, Brent.  I'm running into a related problem.  When I follow the procedure
 > you suggested, here's what I get:
 > 
 > 
 > [root@SpeedyTortuga bin]# tclsh httpd.tcl -debug 1
 > No SNMP support
 > Running with 256 file descriptor limit
 > Running as user 50
 > httpd % puts $auto_path
 > /usr/lib/tcl8.0 /usr/lib /home/tclhttpd2.3.7/lib 
 > /home/tclhttpd2.3.7/lib/Binaries/Linux /home/tclhttpd2.3.7/lib 
 > /home/tclhttpd2.3.7/htdocs/libtml
 > 
 > httpd % exit
 > [root@SpeedyTortuga bin]# cd /home/tclhttpd2.3.7/lib/Binaries/Linux/
 > [root@SpeedyTortuga Linux]# l crypt* 
 > -rwxr-xr-x   1 105      users       15086 Apr 15  1998 crypt.so
 > 
 > [root@SpeedyTortuga Linux]# tclsh
 > % pkg_mkIndex -verbose . *.so
 > warning: error while loading crypt.so: couldn't load file "./crypt.so":
 > ./crypt.so: undefined symbol: crypt
 > processed limit.so
 > processed setuid.so
 > processed utime.so
 > % 
 > 
 > 
 > I've worked around this by editing the crypt reference back into pkgIndex.tc
     l
 > by hand and adding 
 > 
 > 
 > catch {load /usr/lib/libcrypt.so} err
 > 
 > to my tclhttpd.rc, since /usr/lib/libcrypt.so defines the symbol crypt. 
 > Without the catch, trying to load /usr/liblibcrypt.so causes a failure on
 > missing symbol CryptInit.
 > 
 > Should there be something in the pkgIndex.tcl pointing to
 > /usr/lib/libcrypt.so?
 > 
 > Thanks...
 > Tom Barron
 > 
 > ---------
 > 
 > To post a response, come back to the forum at
 > 
 > http://dev.scriptics.com/bboard/q-and-a.tcl?topic_id=26&topic=tcl%2dhttpd%20
     %2d%20Tcl%20Web%20Server
 > 
 >  (which is also the place to go if you want to edit your alerts and
 > stop these robotically sent messages)
 > 
 > 
 > 
 > If you are annoyed by this message then just enter the following URL
 > into a browser and you'll disable the alert that generated this mail:
 > 
 >  http://dev.scriptics.com/bboard/alert-disable.tcl?rowid=AAABIhAAGAAABrPAAP
 > 
 > 

--      Brent Welch     <[EMAIL PROTECTED]>
        http://www.scriptics.com
        Scriptics: The Tcl Platform Company

Reply via email to