On Fri, Nov 23, 2012 at 11:03 AM, C. L. Martinez <carlopm...@gmail.com> wrote:
> Hi all,
>
>  I am trying to compile libcli (http://code.google.com/p/libcli/)
> library under OpenBSD 5.2 amd64, and returns me this error:
>
> gcc  -g -O3 -Wall -std=c99 -pedantic -Wformat-security
> -Wno-format-zero-length -Werror -Wwrite-strings -Wformat
> -fdiagnostics-show-option -Wextra -Wsign-compare -Wcast-align
> -Wno-unused-parameter -fPIC -o libcli.o -c libcli.c
> gcc -o libcli.so.1.9.6 libcli.o -shared -Wl,-soname,libcli.so.1.9 -lcrypt
> /usr/bin/ld: cannot find -lcrypt
> collect2: ld returned 1 exit status
> gmake: *** [libcli.so] Error 1
>
>  But according to this message
> http://old.nabble.com/-DBMail-0000554-%3A-%22-lcrypt%22-not-necessary-on-OpenBSD-td9783582.html,
> "-lcrypt" flag is not needed. Is it correct??

It is.
On OpenBSD, crypt() is part of libc.

Ciao,
David

Reply via email to