nss buildfailure in latest git sources

Manuel Lauss manuel.lauss@gmail.com
Tue Jul 13 13:30:15 GMT 2021


>From the source of nss_module.c:

#if defined USE_NSCD && (!defined DO_STATIC_NSS || defined SHARED)
/* Nonzero if this is the nscd process.  */
static bool is_nscd;
/* The callback passed to the init functions when nscd is used.  */
static void (*nscd_init_cb) (size_t, struct traced_file *);
#endif
[...]
static bool
module_load_nss_files (struct nss_module *module)
{
 if (is_nscd)
   {
     void (*cb) (size_t, struct traced_file *) = nscd_init_cb;
#  ifdef PTR_DEMANGLE
     PTR_DEMANGLE (cb);
#  endif
     _nss_files_init (cb);
   }


configure --enable-stack-protector=no
--enable-stackguard-randomization --disable-cet --enable-kernel=3.2.0
--without-selinux --without-cvs --disable-werror --enable-bind-now
--buil
d=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --disable-profile
--without-gd --with-headers=/usr/include --prefix=/usr
--sysconfdir=/etc --localstatedir=/var --libdir=$(prefix)/lib64
--mandir=$(prefix)/share/man --infodir=$(prefix)/share/
info --libexecdir=$(libdir)/misc/glibc
--with-bugurl=https://bugs.gentoo.org/ --with-pkgversion="Gentoo
2.33-r1 p4" --disable-crypt --disable-static-pie --disable-systemtap
--disable-nscd libc_cv_complocaledir=${exec_prefix}/lib/locale libc_cv
_include_x86_isa_level=no libc_cv_have_x86_lahf_sahf=no
libc_cv_have_x86_movbe=no --disable-timezone-tools

Gentoo's default build.

Manuel

On Tue, Jul 13, 2021 at 3:26 PM Florian Weimer <fweimer@redhat.com> wrote:
>
> * Manuel Lauss:
>
> > Hello,
> > nss_module.c: In function ‘module_load_nss_files’:
> > nss_module.c:117:7: error: ‘is_nscd’ undeclared (first use in this function)
> >  117 |   if (is_nscd)
> >      |       ^~~~~~~
> > nss_module.c:117:7: note: each undeclared identifier is reported only
> > once for each function it appears in
> > nss_module.c:119:51: error: ‘nscd_init_cb’ undeclared (first use in
> > this function); did you mean ‘nscd_init’?
> >  119 |       void (*cb) (size_t, struct traced_file *) = nscd_init_cb;
> >      |                                                   ^~~~~~~~~~~~
> >      |                                                   nscd_init
> >
> > seems that  is_nscd   and  nscd_init_cb  are not always defined.
>
> We don't see this.  How do you configure glibc?
>
> Thanks,
> Florian
>


More information about the Libc-help mailing list