Re: ‘ngx_libc_crypt’ error: implicit declaration of function ‘crypt’

Vincent Blondel vbl5968 at gmail.com
Sun Feb 9 13:08:30 UTC 2020


thank You for the Support ... libcrypt-devel was the package missing in my
cygwin install. this is now working :-)

On Sun, Feb 9, 2020 at 10:46 AM Francis Daly <francis at daoine.org> wrote:

> On Sat, Feb 08, 2020 at 06:21:34PM +0100, Vincent Blondel wrote:
>
> Hi there,
>
> > anybody know why make nginx 1.17.8 on cygwin fails with ...
>
> > src/os/unix/ngx_user.c: In function ‘ngx_libc_crypt’:
> > src/os/unix/ngx_user.c:53:13: error: implicit declaration of function
> > ‘crypt’; did you mean ‘creat’? [-Werror=implicit-function-declaration]
>
> On a Linux system here, "man crypt" includes
>
> """
> SYNOPSIS
>        #define _XOPEN_SOURCE
>        #include <unistd.h>
>
>        char *crypt(const char *key, const char *salt);
> """
>
> And "implicit declaration of function" means that that explicit declaration
> did not happen.
>
> So - for some reason, at this stage in your build system, that "#include"
> is not present; or the suitable "#define" is not in place; or maybe it
> is reading a different unistd.h that does not include "crypt" at all.
>
> That's not an answer; but maybe points you where to look more.
>
> Perhaps your cygwin is different from this; perhaps your "configure"
> log or output contains something interesting about unistd.h or crypt.h?
>
> Mine shows, for example,
>
> checking for crypt() ... not found
> checking for crypt() in libcrypt ... found
>
> There is more information (probably) in objs/autoconf.err
>
> Good luck with it,
>
>         f
> --
> Francis Daly        francis at daoine.org
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20200209/03241d3a/attachment.htm>


More information about the nginx mailing list