On Fri, May 24, 2013 at 04:11:54PM +0200, Alexander Burger wrote:
> Hi Jon,
> 
> > I believe there is a missing "o" at the end of line 104 in the
> > current scr/Makefile. Adding the "o" to make it "-lcrypto" helped me
> > build 32-bit PicoLisp, v. 3.1.2.9 C (on Mac OS X 10.8.3).
> 
> Under Linux it is "-lcrypt" (according to the man page of crypt(3)).
> Seems we must make src/Makefile aware of the OS-depenencies again :(
> 
> Does anybody know the difference between libcrypt.so and libcrypto.so?

I tried "-lcrypto" in src/Makefile, and it doesn't work for me under
Linux:

   $ ./pil lib/adm.l +
   : (de *Salt 16 . "$6$@1$")    
   -> *Salt
   : (passwd "abu")          
   !? (ext:Crypt Str (or Salt (salt)))
   ext:Crypt -- Undefined

In contrast, when using "-lcrypt", I get

   $ ./pil lib/adm.l +
   : (de *Salt 16 . "$6$@1$")
   -> *Salt
   : (passwd "abu")           
   -> 
"$6$9D6/zPbxJaZ/KdUf$x9z5RBCSdxDPcNdBu8tPb0xjUiTIPNb2PFhBOGBvBslggvW16PS3P.WkxsPcWU211y2VoBO3oZPFSUh9l3Wm//"


BTW, an analog problem will be on the 64-bit version in the 'native'
call too:

   : (pp 'passwd)
   (de passwd (Str Salt)
      (if *Salt
         (native "libcrypt.so" "crypt" 'S Str (or Salt (salt)))
         Str ) )
   -> passwd

Tedious! :(

♪♫ Alex
-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Reply via email to