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

Bug 716272

Summary: sys-auth/nss-pam-ldapd-0.9.11-r2 : /.../hosts.c: error: NETDB_INTERNAL undeclared (first use in this function)
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:20200405-033900.log
temp.tbz2

Description Toralf Förster gentoo-dev 2020-04-05 09:08:55 UTC
/var/tmp/portage/sys-auth/nss-pam-ldapd-0.9.11-r2/work/nss-pam-ldapd-0.9.11/nss/hosts.c: In function read_one_hostent:
/var/tmp/portage/sys-auth/nss-pam-ldapd-0.9.11-r2/work/nss-pam-ldapd-0.9.11/nss/hosts.c:55:15: error: NETDB_INTERNAL undeclared (first use in this function)
   55 |   *h_errnop = NETDB_INTERNAL;                                               \
      |               ^~~~~~~~~~~~~~
/var/tmp/portage/sys-auth/nss-pam-ldapd-0.9.11-r2/work/nss-pam-ldapd-0.9.11/common/nslcd-prot.h:220:5: note: in expansion of macro ERROR_OUT_BUFERROR

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

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

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

  Please see the tracker bug for details.

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.42.0 *
The following VMs are available for generation-2:
Available Java Virtual Machines:
  (none found)


timestamp of HEAD at this tinderbox image:
/var/db/repos/gentoo	Sun Apr  5 00:39:13 UTC 2020
/var/db/repos/musl	Sat Apr  4 03:02:24 UTC 2020

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-04-05 09:08:58 UTC
Created attachment 630268 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-04-05 09:09:01 UTC
Created attachment 630270 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-04-05 09:09:04 UTC
Created attachment 630272 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-04-05 09:09:07 UTC
Created attachment 630274 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-04-05 09:09:09 UTC
Created attachment 630276 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-04-05 09:09:12 UTC
Created attachment 630278 [details]
sys-auth:nss-pam-ldapd-0.9.11-r2:20200405-033900.log
Comment 7 Toralf Förster gentoo-dev 2020-04-05 09:09:15 UTC
Created attachment 630280 [details]
temp.tbz2
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-04-05 09:17:33 UTC
NETDB_INTERNAL doesn't exist in musl (glibc only), can be solved with a copy&paste of the defs
Comment 9 Larry the Git Cow gentoo-dev 2023-03-20 05:36:02 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(+)