Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 713612

Summary: sys-auth/nss-pam-ldapd-0.9.12-r1 : /.../prototypes.h: error: unknown type name nss_status_t
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo musl team <musl>
Status: RESOLVED FIXED    
Severity: normal CC: chutzpah, prometheanfire
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/30167
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 713786    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
sys-auth:nss-pam-ldapd-0.9.11-r2:20200319-231907.log
temp.tbz2

Description Toralf Förster gentoo-dev 2020-03-20 14:48:43 UTC
In file included from /var/tmp/portage/sys-auth/nss-pam-ldapd-0.9.11-r2/work/nss-pam-ldapd-0.9.11/nss/aliases.c:28:
/var/tmp/portage/sys-auth/nss-pam-ldapd-0.9.11-r2/work/nss-pam-ldapd-0.9.11/nss/prototypes.h:60:1: error: unknown type name nss_status_t
   60 | nss_status_t NSS_NAME(getaliasbyname_r)(const char *name, struct aliasent *result, char *buffer, size_t buflen, int *errnop);
      | ^~~~~~~~~~~~
/var/tmp/portage/sys-auth/nss-pam-ldapd-0.9.11-r2/work/nss-pam-ldapd-0.9.11/nss/prototypes.h:61:1: error: unknown type name nss_status_t

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0_musl-20200316-165821

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-gentoo-linux-musl-9.3.0 *
clang version 10.0.0 
Target: x86_64-gentoo-linux-musl
Thread model: posix
InstalledDir: /usr/lib/llvm/10/bin
/usr/lib/llvm/10
10.0.0
Available Python interpreters, in order of preference:
  [1]   python3.8
  [2]   python3.7
  [3]   python3.6
  [4]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.41.1 *

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Wed, 18 Mar 2020 13:38:27 +0000
emerge -qpvO sys-auth/nss-pam-ldapd
[ebuild  N    ] sys-auth/nss-pam-ldapd-0.9.11-r2  USE="pam utils -debug -kerberos -pynslcd -sasl -test" PYTHON_TARGETS="python3_6"
Comment 1 Toralf Förster gentoo-dev 2020-03-20 14:48:46 UTC
Created attachment 623046 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-03-20 14:48:50 UTC
Created attachment 623048 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-03-20 14:48:53 UTC
Created attachment 623050 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-03-20 14:48:57 UTC
Created attachment 623052 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-03-20 14:49:00 UTC
Created attachment 623054 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-03-20 14:49:03 UTC
Created attachment 623056 [details]
sys-auth:nss-pam-ldapd-0.9.11-r2:20200319-231907.log
Comment 7 Toralf Förster gentoo-dev 2020-03-20 14:49:06 UTC
Created attachment 623058 [details]
temp.tbz2
Comment 8 Agostino Sarubbo gentoo-dev 2022-02-08 11:54:45 UTC
tinderbox_musl has reproduced this issue with version 0.9.12 - Updating summary.
Comment 9 Agostino Sarubbo gentoo-dev 2022-10-04 06:57:45 UTC
tinderbox_musl has reproduced this issue with version 0.9.12-r1 - Updating summary.
Comment 10 Larry the Git Cow gentoo-dev 2023-03-20 05:36:06 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=090dc863c60b149b5942951fb2326472c6e70281

commit 090dc863c60b149b5942951fb2326472c6e70281
Author:     Cristian Othón Martínez Vera <cfuga@cfuga.mx>
AuthorDate: 2023-03-16 22:42:35 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-03-20 05:29:33 +0000

    sys-auth/nss-pam-ldapd: fix musl build
    
    * add sys-libs/musl-nscd as dependency for musl, to fix ```unknown type name nss_status_t``` error
    * patch for missing NETDB_INTERNAL
    
    Closes: https://bugs.gentoo.org/713612
    Closes: https://bugs.gentoo.org/716272
    Signed-off-by: Cristian Othón Martínez Vera <cfuga@cfuga.mx>
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/nss-pam-ldapd-0.9.12-netdb-defines.patch |  26 ++++
 .../nss-pam-ldapd/nss-pam-ldapd-0.9.12-r3.ebuild   | 163 +++++++++++++++++++++
 2 files changed, 189 insertions(+)