Two different nss.h?
I am currently trying to compile libnss-mysql (https://github.com/saknopper/libnss-mysql) on alpine. The compilation works great on CentOS 8, but on alpine the nss headers seem to heavily differ and miss some types:
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/mysql -I/usr/include/mysql/mysql -g -O2 -MT libnss_mysql_la-nss_config.lo -MD -MP -MF .deps/libnss_mysql_la-nss_config.Tpo -c -o libnss_mysql_la-nss_config.lo `test -f 'nss_config.c' || echo './'`nss_config.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/mysql -I/usr/include/mysql/mysql -g -O2 -MT libnss_mysql_la-nss_config.lo -MD -MP -MF .deps/libnss_mysql_la-nss_config.Tpo -c nss_config.c -fPIC -DPIC -o .libs/libnss_mysql_la-nss_config.o
In file included from nss_config.c:22:
nss_mysql.h:31:2: error: #error I need either nss.h or nss_common.h!
31 | #error I need either nss.h or nss_common.h!
| ^~~~~
In file included from nss_config.c:22:
nss_mysql.h:242:1: error: unknown type name 'NSS_STATUS'
242 | NSS_STATUS _nss_mysql_init (void);
| ^~~~~~~~~~
nss_mysql.h:250:1: error: unknown type name 'NSS_STATUS'
250 | NSS_STATUS _nss_mysql_load_passwd (void *result, char *buffer, size_t buflen,
| ^~~~~~~~~~
However, on CentOS there are two nss.h header files centos-nss3.h (same as the file on alpine, except version numbers), centos-nss.h (not similar at all).
Where with the nss-dev package on alpine, only alpine-nss.h is provided.
Whats the best way to proceed here?