public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Andrew Pinski <pinskia@gmail.com>
To: GNU C Library <libc-alpha@sourceware.org>
Subject: Build failure with --enable-static-nss in glibc 2.35
Date: Mon, 1 Aug 2022 10:09:34 -0700	[thread overview]
Message-ID: <CA+=Sn1muqDihAnX4-BcKarnx8Tb=MY6_5aakGDpk1_HFzL17+Q@mail.gmail.com> (raw)

Hi all, I get the following build failure if I use --enable-static-nss
while configuring:

nss_module.c: In function ‘module_load_nss_files’:
nss_module.c:153:7: error: ‘is_nscd’ undeclared (first use in this function)
  153 |   if (is_nscd)
      |       ^~~~~~~
nss_module.c:153:7: note: each undeclared identifier is reported only
once for each function it appears in
nss_module.c:155:51: error: ‘nscd_init_cb’ undeclared (first use in
this function); did you mean ‘nscd_init’?
  155 |       void (*cb) (size_t, struct traced_file *) = nscd_init_cb;
      |                                                   ^~~~~~~~~~~~
      |                                                   nscd_init
nss_module.c: In function ‘module_load’:
nss_module.c:248:7: error: ‘is_nscd’ undeclared (first use in this function)
  248 |   if (is_nscd)
      |       ^~~~~~~
nss_module.c:266:55: error: ‘nscd_init_cb’ undeclared (first use in
this function); did you mean ‘nscd_init’?
  266 |           void (*cb) (size_t, struct traced_file *) = nscd_init_cb;
      |                                                       ^~~~~~~~~~~~
      |                                                       nscd_init


is_nscd is conditional included by:
#if defined USE_NSCD && (!defined DO_STATIC_NSS || defined SHARED)
/* Nonzero if this is the nscd process.  */
static bool is_nscd;

But is conditional used by something different:
#ifdef USE_NSCD
  if (is_nscd)

The source has not changed on the head of the git repo either.

Thanks,
Andrew

                 reply	other threads:[~2022-08-01 17:09 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CA+=Sn1muqDihAnX4-BcKarnx8Tb=MY6_5aakGDpk1_HFzL17+Q@mail.gmail.com' \
    --to=pinskia@gmail.com \
    --cc=libc-alpha@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).