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

Vincent Blondel vbl5968 at gmail.com
Sat Feb 8 17:21:34 UTC 2020

Hi all,

anybody know why make nginx 1.17.8 on cygwin fails with ...

$ make
make -f objs/Makefile
make[1]: Entering directory '/home/devel/nginx-1.17.8'
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g
 -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
        -o objs/src/os/unix/ngx_user.o \
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]
     value = crypt((char *) key, (char *) salt);
src/os/unix/ngx_user.c:53:11: error: assignment makes pointer from integer
without a cast [-Werror=int-conversion]
     value = crypt((char *) key, (char *) salt);
cc1: all warnings being treated as errors
make[1]: *** [objs/Makefile:788: objs/src/os/unix/ngx_user.o] Error 1
make[1]: Leaving directory '/home/devel/nginx-1.17.8'
make: *** [Makefile:8: build] Error 2

Thanks in advance for your help :-)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20200208/6e702752/attachment.htm>

More information about the nginx mailing list