﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	uname	nginx_version
1469	nginx won't build under libxcrypt due to missing 'current_salt' in 'crypt_data' struct	fujimotos@…		"PROBLEM

In Fedora 28, the crypt library has been switched from glibc to libxcrypt.
In this system, nginx fails to build with following errors:

{{{
src/os/unix/ngx_user.c:36:7: error: 'struct crypt_data' has no member named 'current_salt'
cd.current_salt[0] = ~salt[0];
}}}

Also, this issue seems to be reproducable in Fedora's build system:

https://koji.fedoraproject.org/koji/taskinfo?taskID=24331452

SOLUTION

The following patch fixes this issue:

http://pkgs.fedoraproject.org/cgit/rpms/nginx.git/tree/0001-unix-ngx_user-Apply-fix-for-really-old-bug-in-glibc-.patch

RELATED ISSUES

I think this ticket is related to this problem:

https://trac.nginx.org/nginx/ticket/685
"	defect	closed	minor		nginx-core	1.13.x	fixed			Linux 4.15.0-0.rc8.git0.1.fc28.x86_64 #1 SMP Mon Jan 15 17:04:36 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux	"nginx version: nginx/1.13.8
built by gcc 7.2.1 20180104 (Red Hat 7.2.1-6) (GCC)"
