Welcome! Log In Create A New Profile

Advanced

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

Francis Daly
February 09, 2020 04:48AM
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@daoine.org
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

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

Vincent Blondel February 08, 2020 12:22PM

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

Francis Daly February 09, 2020 04:48AM

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

Vincent Blondel February 09, 2020 08:10AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 134
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready